Changeset d770fd2 for tests


Ignore:
Timestamp:
Oct 15, 2013, 6:49:00 PM (11 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:
c0fe2a9
Parents:
08bd8e0
Message:

tests/src/temporal/test-filter.c: improve

File:
1 edited

Legend:

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

    r08bd8e0 rd770fd2  
    33int main ()
    44{
    5   uint_t win_s = 32; // window size
     5  uint_t win_s = 16; // window size
     6  uint_t impulse_at = win_s / 2;
    67  fvec_t *in = new_fvec (win_s); // input buffer
    78  fvec_t *out = new_fvec (win_s); // input buffer
    89
    910  aubio_filter_t *o = new_aubio_filter_c_weighting (44100);
    10   in->data[12] = 0.5;
     11  in->data[impulse_at] = 0.5;
    1112  fvec_print (in);
    1213  aubio_filter_do (o, in);
     
    1516
    1617  o = new_aubio_filter_a_weighting (32000);
    17   in->data[12] = 0.5;
     18  in->data[impulse_at] = 0.5;
    1819  fvec_print (in);
    1920  aubio_filter_do_outplace (o, in, out);
     
    2122
    2223  aubio_filter_set_a_weighting (o, 32000);
    23   in->data[12] = 0.5;
     24  in->data[impulse_at] = 0.5;
    2425  fvec_print (in);
    2526  aubio_filter_do_filtfilt (o, in, out);
Note: See TracChangeset for help on using the changeset viewer.