feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since d57c879 was
6f9615c,
checked in by Paul Brossier <piem@piem.org>, 16 years ago
|
plugins/puredata/aubiozcr~.c: add aubiozcr~, computing zero crossing rate
|
-
Property mode set to
100644
|
File size:
906 bytes
|
Rev | Line | |
---|
[cf83555] | 1 | |
---|
| 2 | #include <m_pd.h> |
---|
| 3 | |
---|
[9bfecce3] | 4 | char aubio_version[] = "aubio external for pd, version 0.2"; |
---|
[cf83555] | 5 | |
---|
[9bfecce3] | 6 | static t_class *aubio_class; |
---|
| 7 | |
---|
| 8 | typedef struct aubio |
---|
| 9 | { |
---|
| 10 | t_object x_ob; |
---|
| 11 | } t_aubio; |
---|
| 12 | |
---|
| 13 | void *aubio_new (void); |
---|
[cf83555] | 14 | void aubio_setup (void); |
---|
| 15 | extern void aubioonset_tilde_setup (void); |
---|
| 16 | extern void aubiotempo_tilde_setup (void); |
---|
| 17 | extern void aubiotss_tilde_setup (void); |
---|
| 18 | extern void aubioquiet_tilde_setup (void); |
---|
[660c1d82] | 19 | extern void aubiopitch_tilde_setup (void); |
---|
[6f9615c] | 20 | extern void aubiozcr_tilde_setup (void); |
---|
[cf83555] | 21 | |
---|
[9bfecce3] | 22 | void *aubio_new (void) |
---|
| 23 | { |
---|
| 24 | t_aubio *x = (t_aubio *)pd_new(aubio_class); |
---|
| 25 | return (void *)x; |
---|
| 26 | } |
---|
| 27 | |
---|
[cf83555] | 28 | void aubio_setup (void) |
---|
| 29 | { |
---|
[9bfecce3] | 30 | post(aubio_version); |
---|
| 31 | aubioonset_tilde_setup(); |
---|
| 32 | aubiotempo_tilde_setup(); |
---|
| 33 | aubiotss_tilde_setup(); |
---|
| 34 | aubioquiet_tilde_setup(); |
---|
| 35 | aubiopitch_tilde_setup(); |
---|
[6f9615c] | 36 | aubiozcr_tilde_setup(); |
---|
[9bfecce3] | 37 | aubio_class = class_new(gensym("aubio"), (t_newmethod)aubio_new, 0, |
---|
| 38 | sizeof(t_aubio), 0, 0); |
---|
[cf83555] | 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.