feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since e8ae95ac was
c159aeb,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
src/temporal: rename adesign/adsgn to a_weighting, idem for c_weighting
|
-
Property mode set to
100644
|
File size:
841 bytes
|
Rev | Line | |
---|
[a4364b8] | 1 | #include <aubio.h> |
---|
| 2 | |
---|
| 3 | int main(){ |
---|
| 4 | |
---|
| 5 | aubio_filter_t * f; |
---|
| 6 | |
---|
| 7 | uint_t rates[] = { 8000, 16000, 22050, 44100, 96000, 192000}; |
---|
| 8 | uint_t nrates = 6; |
---|
| 9 | uint_t samplerate, i = 0; |
---|
| 10 | uint_t channels = 2; |
---|
| 11 | |
---|
| 12 | for ( samplerate = rates[i]; i < nrates ; i++ ) { |
---|
[c159aeb] | 13 | f = new_aubio_filter_a_weighting (samplerate, channels); |
---|
[a4364b8] | 14 | del_aubio_filter (f); |
---|
| 15 | |
---|
| 16 | f = new_aubio_filter (samplerate, 7, channels*2); |
---|
[c159aeb] | 17 | aubio_filter_set_a_weighting (f); |
---|
[a4364b8] | 18 | del_aubio_filter (f); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | // samplerate unknown |
---|
[c159aeb] | 22 | f = new_aubio_filter_a_weighting (12089, channels); |
---|
[a4364b8] | 23 | del_aubio_filter (f); |
---|
| 24 | |
---|
| 25 | // order to small |
---|
| 26 | f = new_aubio_filter (samplerate, 2, channels*2); |
---|
[c159aeb] | 27 | aubio_filter_set_a_weighting (f); |
---|
[a4364b8] | 28 | del_aubio_filter (f); |
---|
| 29 | |
---|
| 30 | // order to big |
---|
| 31 | f = new_aubio_filter (samplerate, 12, channels*2); |
---|
[c159aeb] | 32 | aubio_filter_set_a_weighting (f); |
---|
[a4364b8] | 33 | del_aubio_filter (f); |
---|
| 34 | |
---|
| 35 | return 0; |
---|
| 36 | } |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.