Changeset 9bfecce3


Ignore:
Timestamp:
May 15, 2008, 8:20:06 PM (16 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
92c70f6
Parents:
954585a
Message:

plugins/puredata/aubio_setup.c: add aubio_new function to clean up loading of the aubio external with [aubio], indent, bump version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/puredata/aubio_setup.c

    r954585a r9bfecce3  
    22#include <m_pd.h>
    33
    4 char aubio_version[] = "aubio external for pd, version 0.1";
     4char aubio_version[] = "aubio external for pd, version 0.2";
    55
     6static t_class *aubio_class;
     7
     8typedef struct aubio
     9{
     10    t_object x_ob;
     11} t_aubio;
     12
     13void *aubio_new (void);
    614void aubio_setup (void);
    715extern void aubioonset_tilde_setup (void);
     
    1119extern void aubiopitch_tilde_setup (void);
    1220
     21void *aubio_new (void)
     22{
     23    t_aubio *x = (t_aubio *)pd_new(aubio_class);
     24    return (void *)x;
     25}
     26
    1327void aubio_setup (void)
    1428{
    15         post(aubio_version);
    16         aubioonset_tilde_setup();
    17         aubiotempo_tilde_setup();
    18         aubiotss_tilde_setup();
    19         aubioquiet_tilde_setup();
    20         aubiopitch_tilde_setup();
     29    post(aubio_version);
     30    aubioonset_tilde_setup();
     31    aubiotempo_tilde_setup();
     32    aubiotss_tilde_setup();
     33    aubioquiet_tilde_setup();
     34    aubiopitch_tilde_setup();
     35    aubio_class = class_new(gensym("aubio"), (t_newmethod)aubio_new, 0,
     36            sizeof(t_aubio), 0, 0);
    2137}
Note: See TracChangeset for help on using the changeset viewer.