Changeset 407bba9 for tests/src


Ignore:
Timestamp:
Oct 17, 2009, 2:38:47 PM (14 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:
74516f7
Parents:
858cfa7
Message:

src/mathutils.c: use a string for window type, making enum private

Location:
tests/src
Files:
2 edited

Legend:

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

    r858cfa7 r407bba9  
    77  for (length = 1; length < 10; length ++ ) {
    88    aubio_hist_t *o = new_aubio_hist(0, 1, length, 5);
    9     fvec_t *t = new_aubio_window(length,aubio_win_hanning);
     9    fvec_t *t = new_aubio_window("hanning", length);
    1010    aubio_hist_do(o,t);
    1111    fvec_print(t);
     
    1515    fvec_print(t);
    1616    del_fvec(t);
    17     t = new_aubio_window(length,aubio_win_hanningz);
     17    t = new_aubio_window("hanningz", length);
    1818    aubio_hist_do(o,t);
    1919    fvec_print(t);
  • tests/src/test-window.c

    r858cfa7 r407bba9  
    77  for (length = 2; length <= 5; length++)
    88  {
    9     fvec_t *t = new_aubio_window(length,aubio_win_rectangle);
     9    fvec_t *t = new_aubio_window("rectangle", length);
    1010    del_fvec(t);
    11     t = new_aubio_window(length,aubio_win_hamming);
     11    t = new_aubio_window("hamming", length);
    1212    fvec_print(t);
    1313    del_fvec(t);
    14     t = new_aubio_window(length,aubio_win_hanning);
     14    t = new_aubio_window("hanning", length);
    1515    fvec_print(t);
    1616    del_fvec(t);
    17     t = new_aubio_window(length,aubio_win_hanningz);
     17    t = new_aubio_window("hanningz", length);
    1818    fvec_print(t);
    1919    del_fvec(t);
    20     t = new_aubio_window(length,aubio_win_blackman);
     20    t = new_aubio_window("blackman", length);
    2121    fvec_print(t);
    2222    del_fvec(t);
    23     t = new_aubio_window(length,aubio_win_blackman_harris);
     23    t = new_aubio_window("blackman_harris", length);
    2424    fvec_print(t);
    2525    del_fvec(t);
    26     t = new_aubio_window(length,aubio_win_gaussian);
     26    t = new_aubio_window("gaussian", length);
    2727    fvec_print(t);
    2828    del_fvec(t);
    29     t = new_aubio_window(length,aubio_win_welch);
     29    t = new_aubio_window("welch", length);
    3030    fvec_print(t);
    3131    del_fvec(t);
    32     t = new_aubio_window(length,aubio_win_parzen);
     32    t = new_aubio_window("parzen", length);
     33    fvec_print(t);
     34    del_fvec(t);
     35    t = new_aubio_window("default", length);
    3336    fvec_print(t);
    3437    del_fvec(t);
Note: See TracChangeset for help on using the changeset viewer.