source: plugins/puredata/aubio_setup.c @ 0b48dcb

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 0b48dcb 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
4char aubio_version[] = "aubio external for pd, version 0.2";
5
6static t_class *aubio_class;
7
8typedef struct aubio
9{
10    t_object x_ob;
11} t_aubio;
12
13void *aubio_new (void);
14void aubio_setup (void);
15extern void aubioonset_tilde_setup (void);
16extern void aubiotempo_tilde_setup (void);
17extern void aubiotss_tilde_setup (void);
18extern void aubioquiet_tilde_setup (void);
19extern void aubiopitch_tilde_setup (void);
20extern void aubiozcr_tilde_setup (void);
21
22void *aubio_new (void)
23{
24    t_aubio *x = (t_aubio *)pd_new(aubio_class);
25    return (void *)x;
26}
27
28void 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.