Changeset f162cf9 for tests


Ignore:
Timestamp:
Oct 8, 2009, 8:20:19 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
2ba3440
Parents:
e5757cf
Message:

src/pitch/pitchschmitt.c: remove unneeded samplerate parameter, update prototypes, make multichannel

File:
1 edited

Legend:

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

    re5757cf rf162cf9  
    44        /* allocate some memory */
    55        uint_t win_s      = 1024;                       /* window size */
    6         uint_t samplerate = 44100;                          /* number of channel */
    76        fvec_t * in       = new_fvec (win_s, 1); /* input buffer */
    8         aubio_pitchschmitt_t * o  = new_aubio_pitchschmitt(
    9           win_s, samplerate );
     7        fvec_t * out = new_fvec (1, 1); /* input buffer */
     8        aubio_pitchschmitt_t * o  = new_aubio_pitchschmitt(win_s);
    109        uint_t i = 0;
    1110
    1211        while (i < 1000) {
    13           aubio_pitchschmitt_do (o,in);
     12          aubio_pitchschmitt_do (o,in, out);
    1413          i++;
    1514        };
     
    1716        del_aubio_pitchschmitt(o);
    1817        del_fvec(in);
     18        del_fvec(out);
    1919        aubio_cleanup();
    2020
Note: See TracChangeset for help on using the changeset viewer.