Ignore:
Timestamp:
Oct 19, 2009, 10:51:59 AM (15 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:
b14107f
Parents:
9f07d52
Message:

rename aubio_pitchdetection to aubio_pitch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/puredata/aubiopitch~.c

    r9f07d52 rca1abdd  
    2626        t_int bufsize;
    2727        t_int hopsize;
    28         aubio_pitchdetection_t *o;
     28        aubio_pitch_t *o;
    2929        fvec_t *vec;
    3030        fvec_t *pitchvec;
     
    4444                if (x->pos == x->hopsize-1) {         
    4545                        /* block loop */
    46                         aubio_pitchdetection_do(x->o,x->vec, x->pitchvec);
     46                        aubio_pitch_do(x->o,x->vec, x->pitchvec);
    4747                        outlet_float(x->pitch, x->pitchvec->data[0][0]);
    4848                        /* end of block loop */
     
    7777
    7878        //FIXME: get the real samplerate
    79     x->o = new_aubio_pitchdetection(s->s_name, x->bufsize,
     79    x->o = new_aubio_pitch(s->s_name, x->bufsize,
    8080            x->hopsize, 1, 44100.);
    81         aubio_pitchdetection_set_tolerance (x->o, 0.7);
     81        aubio_pitch_set_tolerance (x->o, 0.7);
    8282        x->vec = (fvec_t *)new_fvec(x->hopsize,1);
    8383        x->pitchvec = (fvec_t *)new_fvec(1,1);
     
    9292static void *aubiopitch_tilde_del(t_aubiopitch_tilde *x)
    9393{
    94         del_aubio_pitchdetection(x->o);
     94        del_aubio_pitch(x->o);
    9595        del_fvec(x->vec);
    9696        del_fvec(x->pitchvec);
Note: See TracChangeset for help on using the changeset viewer.