Ignore:
Timestamp:
Mar 3, 2013, 7:40:05 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
2fcb973
Parents:
9547247
Message:

tests/src/temporal/: improve examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/temporal/test-resampler.c

    r9547247 r3684ab4  
    1 #include <stdio.h>
    21#include <aubio.h>
    32
    4 int
    5 main ()
     3int main ()
    64{
    7   /* allocate some memory */
    8   uint_t win_s = 1024;          /* window size */
     5  uint_t win_s = 1024; // window size
    96  smpl_t ratio = 0.5;
    10   fvec_t *in = new_fvec (win_s);      /* input buffer */
    11   fvec_t *out = new_fvec ((uint_t) (win_s * ratio));  /* input buffer */
     7  fvec_t *in = new_fvec (win_s); // input buffer
     8  fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); // output buffer
    129  aubio_resampler_t *o = new_aubio_resampler (0.5, 0);
    1310  uint_t i = 0;
Note: See TracChangeset for help on using the changeset viewer.