source: plugins/puredata/aubio_setup.c @ f3bee79

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since f3bee79 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
RevLine 
[cf83555]1
2#include <m_pd.h>
3
[9bfecce3]4char aubio_version[] = "aubio external for pd, version 0.2";
[cf83555]5
[9bfecce3]6static t_class *aubio_class;
7
8typedef struct aubio
9{
10    t_object x_ob;
11} t_aubio;
12
13void *aubio_new (void);
[cf83555]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);
[660c1d82]19extern void aubiopitch_tilde_setup (void);
[6f9615c]20extern void aubiozcr_tilde_setup (void);
[cf83555]21
[9bfecce3]22void *aubio_new (void)
23{
24    t_aubio *x = (t_aubio *)pd_new(aubio_class);
25    return (void *)x;
26}
27
[cf83555]28void 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.