Changeset 56ef7e1 for tests


Ignore:
Timestamp:
Oct 18, 2009, 3:08:59 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:
e5f49af
Parents:
74516f7
Message:

Change peakpicker to match API specs, make quadint per channel

  • src/mathutils.c
    • add per channel mean and median
    • update moving thres and adapt_thres accordingly
    • change quadint unused span argument to a channel argument
  • src/onset/onset.c:
    • make wasonset a vector for multi channel, use new peakpicker
  • src/onset/peakpick.c:
    • update peakpicker do for multi channeling
  • src/pitch/: update use to fvec_quadint
  • src/tempo/beattracking.c: update calls to fvec_quadint
  • src/tempo/tempo.c: update peakpicker usage
  • tests/src/test-peakpick.c: update peakpicker usage
File:
1 edited

Legend:

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

    r74516f7 r56ef7e1  
    66        uint_t channels   = 1;                          /* number of channel */
    77        fvec_t * in       = new_fvec (win_s, channels); /* input buffer */
    8         aubio_peakpicker_t * o = new_aubio_peakpicker(0.3);
     8        fvec_t * out      = new_fvec (1, channels); /* input buffer */
     9        aubio_peakpicker_t * o = new_aubio_peakpicker(1);
     10        aubio_peakpicker_set_threshold (o, 0.3);
    911
    10         aubio_peakpicker_do(o, in);
    11         aubio_peakpicker_do(o, in);
    12         aubio_peakpicker_do(o, in);
    13         aubio_peakpicker_do(o, in);
     12        aubio_peakpicker_do(o, in, out);
     13        aubio_peakpicker_do(o, in, out);
     14        aubio_peakpicker_do(o, in, out);
     15        aubio_peakpicker_do(o, in, out);
    1416
    1517        del_aubio_peakpicker(o);
Note: See TracChangeset for help on using the changeset viewer.