feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since eb089fb 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
|
Line | |
---|
1 | |
---|
2 | #include <m_pd.h> |
---|
3 | |
---|
4 | char aubio_version[] = "aubio external for pd, version 0.2"; |
---|
5 | |
---|
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); |
---|
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); |
---|
19 | extern void aubiopitch_tilde_setup (void); |
---|
20 | extern void aubiozcr_tilde_setup (void); |
---|
21 | |
---|
22 | void *aubio_new (void) |
---|
23 | { |
---|
24 | t_aubio *x = (t_aubio *)pd_new(aubio_class); |
---|
25 | return (void *)x; |
---|
26 | } |
---|
27 | |
---|
28 | void aubio_setup (void) |
---|
29 | { |
---|
30 | post(aubio_version); |
---|
31 | aubioonset_tilde_setup(); |
---|
32 | aubiotempo_tilde_setup(); |
---|
33 | aubiotss_tilde_setup(); |
---|
34 | aubioquiet_tilde_setup(); |
---|
35 | aubiopitch_tilde_setup(); |
---|
36 | aubiozcr_tilde_setup(); |
---|
37 | aubio_class = class_new(gensym("aubio"), (t_newmethod)aubio_new, 0, |
---|
38 | sizeof(t_aubio), 0, 0); |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.