Changeset 59c046d for tests


Ignore:
Timestamp:
Oct 19, 2009, 1:52:04 PM (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:
b01bd4a
Parents:
b14107f
Message:

src/spectral/filter.c, src/temporal/filterbank_mel.c: move samplerate to the end

Location:
tests/src
Files:
3 edited

Legend:

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

    rb14107f r59c046d  
    1111
    1212  for ( samplerate = rates[i]; i < nrates ; i++ ) {
    13     f = new_aubio_filter_a_weighting (samplerate, channels);
     13    f = new_aubio_filter_a_weighting (channels, samplerate);
    1414    del_aubio_filter (f);
    1515
    16     f = new_aubio_filter (samplerate, 7, channels*2);
    17     aubio_filter_set_a_weighting (f);
     16    f = new_aubio_filter (7, channels*2);
     17    aubio_filter_set_a_weighting (f, samplerate);
    1818    del_aubio_filter (f);
    1919  }
    2020
    2121  // samplerate unknown
    22   f = new_aubio_filter_a_weighting (12089, channels);
     22  f = new_aubio_filter_a_weighting (channels, 4200);
    2323  del_aubio_filter (f);
    2424
    2525  // order to small
    26   f = new_aubio_filter (samplerate, 2, channels*2);
    27   aubio_filter_set_a_weighting (f);
     26  f = new_aubio_filter (2, channels*2);
     27  aubio_filter_set_a_weighting (f, samplerate);
    2828  del_aubio_filter (f);
    2929
    3030  // order to big
    31   f = new_aubio_filter (samplerate, 12, channels*2);
    32   aubio_filter_set_a_weighting (f);
     31  f = new_aubio_filter (12, channels*2);
     32  aubio_filter_set_a_weighting (f, samplerate);
    3333  del_aubio_filter (f);
    3434
  • tests/src/temporal/test-cweighting.c

    rb14107f r59c046d  
    1111
    1212  for ( samplerate = rates[i]; i < nrates ; i++ ) {
    13     f = new_aubio_filter_c_weighting (samplerate, channels);
     13    f = new_aubio_filter_c_weighting (channels, samplerate);
    1414    del_aubio_filter (f);
    1515
    16     f = new_aubio_filter (samplerate, 5, channels*2);
    17     aubio_filter_set_c_weighting (f);
     16    f = new_aubio_filter (5, channels*2);
     17    aubio_filter_set_c_weighting (f, samplerate);
    1818    del_aubio_filter (f);
    1919  }
    2020
    2121  // samplerate unknown
    22   f = new_aubio_filter_c_weighting (12089, channels);
     22  f = new_aubio_filter_c_weighting (channels, 4200);
    2323  del_aubio_filter (f);
    2424
    2525  // order to small
    26   f = new_aubio_filter (samplerate, 2, channels*2);
    27   aubio_filter_set_c_weighting (f);
     26  f = new_aubio_filter (2, channels*2);
     27  aubio_filter_set_c_weighting (f, samplerate);
    2828  del_aubio_filter (f);
    2929
    3030  // order to big
    31   f = new_aubio_filter (samplerate, 12, channels*2);
    32   aubio_filter_set_c_weighting (f);
     31  f = new_aubio_filter (12, channels*2);
     32  aubio_filter_set_c_weighting (f, samplerate);
    3333  del_aubio_filter (f);
    3434
  • tests/src/test-filter.c

    rb14107f r59c046d  
    1111
    1212
    13   aubio_filter_t *o = new_aubio_filter_c_weighting (44100, channels);
     13  aubio_filter_t *o = new_aubio_filter_c_weighting (channels, 44100);
    1414  in->data[0][12] = 0.5;
    1515  fvec_print (in);
     
    1818  del_aubio_filter (o);
    1919
    20   o = new_aubio_filter_c_weighting (44100, channels);
     20  o = new_aubio_filter_c_weighting (channels, 44100);
    2121  in->data[0][12] = 0.5;
    2222  fvec_print (in);
     
    2525  del_aubio_filter (o);
    2626
    27   o = new_aubio_filter_c_weighting (44100, channels);
     27  o = new_aubio_filter_c_weighting (channels, 44100);
    2828  in->data[0][12] = 0.5;
    2929  fvec_print (in);
Note: See TracChangeset for help on using the changeset viewer.