feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since e5f49af was
56ef7e1,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
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
|
-
Property mode set to
100644
|
File size:
716 bytes
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | |
---|
3 | int main(){ |
---|
4 | /* allocate some memory */ |
---|
5 | uint_t win_s = 1024; /* window size */ |
---|
6 | uint_t channels = 1; /* number of channel */ |
---|
7 | fvec_t * in = new_fvec (win_s, channels); /* input buffer */ |
---|
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); |
---|
11 | |
---|
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); |
---|
16 | |
---|
17 | del_aubio_peakpicker(o); |
---|
18 | del_fvec(in); |
---|
19 | return 0; |
---|
20 | } |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.