Changeset ca1abdd for plugins/puredata
- Timestamp:
- Oct 19, 2009, 10:51:59 AM (15 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/puredata/aubiopitch~.c
r9f07d52 rca1abdd 26 26 t_int bufsize; 27 27 t_int hopsize; 28 aubio_pitch detection_t *o;28 aubio_pitch_t *o; 29 29 fvec_t *vec; 30 30 fvec_t *pitchvec; … … 44 44 if (x->pos == x->hopsize-1) { 45 45 /* block loop */ 46 aubio_pitch detection_do(x->o,x->vec, x->pitchvec);46 aubio_pitch_do(x->o,x->vec, x->pitchvec); 47 47 outlet_float(x->pitch, x->pitchvec->data[0][0]); 48 48 /* end of block loop */ … … 77 77 78 78 //FIXME: get the real samplerate 79 x->o = new_aubio_pitch detection(s->s_name, x->bufsize,79 x->o = new_aubio_pitch(s->s_name, x->bufsize, 80 80 x->hopsize, 1, 44100.); 81 aubio_pitch detection_set_tolerance (x->o, 0.7);81 aubio_pitch_set_tolerance (x->o, 0.7); 82 82 x->vec = (fvec_t *)new_fvec(x->hopsize,1); 83 83 x->pitchvec = (fvec_t *)new_fvec(1,1); … … 92 92 static void *aubiopitch_tilde_del(t_aubiopitch_tilde *x) 93 93 { 94 del_aubio_pitch detection(x->o);94 del_aubio_pitch(x->o); 95 95 del_fvec(x->vec); 96 96 del_fvec(x->pitchvec);
Note: See TracChangeset
for help on using the changeset viewer.