Changeset e5757cf for tests


Ignore:
Timestamp:
Oct 8, 2009, 8:07:20 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:
f162cf9
Parents:
8040cca
Message:

src/pitch/pitchmcomb.{c,h}: remove unused samplerate parameter, make multichannel, update prototypes

File:
1 edited

Legend:

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

    r8040cca re5757cf  
    55        uint_t win_s      = 1024;                       /* window size */
    66        uint_t hop_s      = win_s/4;                    /* hop size */
    7         uint_t samplerate = 44100;
    87        uint_t channels   = 1;                          /* number of channel */
    98        cvec_t * in       = new_cvec (win_s, channels); /* input buffer */
    10         aubio_pitchmcomb_t * o  = new_aubio_pitchmcomb(
    11           win_s, hop_s, channels, samplerate );
     9        fvec_t * out      = new_fvec (1, channels); /* input buffer */
     10
     11        aubio_pitchmcomb_t * o  = new_aubio_pitchmcomb(win_s, hop_s, channels);
    1212        uint_t i = 0;
    1313
    1414        while (i < 1000) {
    15           aubio_pitchmcomb_do (o,in);
     15          aubio_pitchmcomb_do (o,in, out);
    1616          i++;
    1717        };
     
    1919        del_aubio_pitchmcomb(o);
    2020        del_cvec(in);
     21        del_fvec(out);
    2122        aubio_cleanup();
    2223
Note: See TracChangeset for help on using the changeset viewer.