Changeset 8040cca for tests


Ignore:
Timestamp:
Oct 8, 2009, 7:46:46 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:
e5757cf
Parents:
6fc103d
Message:

src/pitch/pitchfcomb.c: update prototypes, make multichannel, remove unneeded samplerate parameter, now returns bin

File:
1 edited

Legend:

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

    r6fc103d r8040cca  
    55        uint_t win_s      = 1024;                       /* window size */
    66        uint_t hop_s      = win_s/4;                    /* hop size */
    7         uint_t samplerate = 44100;                      /* samplerate */
    8         uint_t channels   = 1;                          /* number of channel */
     7        uint_t channels   = 3;                          /* number of channel */
    98        fvec_t * in       = new_fvec (hop_s, channels); /* input buffer */
     9        fvec_t * out      = new_fvec (1, channels);
    1010        aubio_pitchfcomb_t * o  = new_aubio_pitchfcomb (
    11           win_s, hop_s, samplerate
    12           );
     11          win_s, hop_s, channels);
    1312        uint_t i = 0;
    1413
    15         while (i < 1000) {
    16           aubio_pitchfcomb_do (o,in);
     14        while (i < 2) {
     15          aubio_pitchfcomb_do (o,in, out);
    1716          i++;
    1817        };
Note: See TracChangeset for help on using the changeset viewer.