Ignore:
Timestamp:
Dec 4, 2009, 1:47:17 AM (15 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:
f7b05d4
Parents:
4621cd6
Message:

tests/src: switch to mono

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/test-filter.c

    r4621cd6 raea235c  
    66  /* allocate some memory */
    77  uint_t win_s = 32;            /* window size */
    8   uint_t channels = 1;          /* number of channel */
    9   fvec_t *in = new_fvec (win_s, channels);      /* input buffer */
    10   fvec_t *out = new_fvec (win_s, channels);     /* input buffer */
     8  fvec_t *in = new_fvec (win_s);      /* input buffer */
     9  fvec_t *out = new_fvec (win_s);     /* input buffer */
    1110
    1211
    13   aubio_filter_t *o = new_aubio_filter_c_weighting (channels, 44100);
    14   in->data[0][12] = 0.5;
     12  aubio_filter_t *o = new_aubio_filter_c_weighting (44100);
     13  in->data[12] = 0.5;
    1514  fvec_print (in);
    1615  aubio_filter_do (o, in);
     
    1817  del_aubio_filter (o);
    1918
    20   o = new_aubio_filter_c_weighting (channels, 44100);
    21   in->data[0][12] = 0.5;
     19  o = new_aubio_filter_c_weighting (44100);
     20  in->data[12] = 0.5;
    2221  fvec_print (in);
    2322  aubio_filter_do_outplace (o, in, out);
     
    2524  del_aubio_filter (o);
    2625
    27   o = new_aubio_filter_c_weighting (channels, 44100);
    28   in->data[0][12] = 0.5;
     26  o = new_aubio_filter_c_weighting (44100);
     27  in->data[12] = 0.5;
    2928  fvec_print (in);
    3029  aubio_filter_do_filtfilt (o, in, out);
Note: See TracChangeset for help on using the changeset viewer.