Changeset 1294862
- Timestamp:
- Oct 7, 2009, 7:33:51 PM (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:
- e5e693e
- Parents:
- 1b88289
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r1b88289 r1294862 46 46 isonset = aubio_peakpicker_do(parms, onset); 47 47 48 pitch = aubio_pitchdetection (pitchdet,ibuf);48 pitch = aubio_pitchdetection_do (pitchdet,ibuf); 49 49 if(median){ 50 50 note_append(note_buffer, pitch); -
python/aubio/aubioclass.py
r1b88289 r1294862 135 135 def __call__(self,myvec): 136 136 #self.filt(myvec) 137 return aubio_pitchdetection (self.pitchp,myvec())137 return aubio_pitchdetection_do(self.pitchp,myvec()) 138 138 139 139 class filter: -
src/pitch/pitchdetection.c
r1b88289 r1294862 196 196 } 197 197 198 smpl_t aubio_pitchdetection (aubio_pitchdetection_t *p, fvec_t * ibuf) {198 smpl_t aubio_pitchdetection_do (aubio_pitchdetection_t *p, fvec_t * ibuf) { 199 199 return p->freqconv(p->callback(p,ibuf),p->srate,p->bufsize); 200 200 } … … 204 204 aubio_filter_do(p->filter,ibuf); 205 205 aubio_pvoc_do(p->pv,ibuf,p->fftgrain); 206 pitch = aubio_pitchmcomb_d etect(p->mcomb,p->fftgrain);206 pitch = aubio_pitchmcomb_do(p->mcomb,p->fftgrain); 207 207 /** \bug should move the >0 check within aubio_bintofreq */ 208 208 if (pitch>0.) { … … 230 230 smpl_t pitch = 0.; 231 231 aubio_pitchdetection_slideblock(p,ibuf); 232 pitch = aubio_pitchyinfft_d etect(p->yinfft,p->buf,p->yinthres);232 pitch = aubio_pitchyinfft_do(p->yinfft,p->buf,p->yinthres); 233 233 if (pitch>0) { 234 234 pitch = p->srate/(pitch+0.); … … 241 241 smpl_t aubio_pitchdetection_fcomb(aubio_pitchdetection_t *p, fvec_t *ibuf){ 242 242 aubio_pitchdetection_slideblock(p,ibuf); 243 return aubio_pitchfcomb_d etect(p->fcomb,p->buf);243 return aubio_pitchfcomb_do(p->fcomb,p->buf); 244 244 } 245 245 246 246 smpl_t aubio_pitchdetection_schmitt(aubio_pitchdetection_t *p, fvec_t *ibuf){ 247 247 aubio_pitchdetection_slideblock(p,ibuf); 248 return aubio_pitchschmitt_d etect(p->schmitt,p->buf);249 } 248 return aubio_pitchschmitt_do(p->schmitt,p->buf); 249 } -
src/pitch/pitchdetection.h
r1b88289 r1294862 59 59 60 60 */ 61 smpl_t aubio_pitchdetection (aubio_pitchdetection_t * p, fvec_t * ibuf);61 smpl_t aubio_pitchdetection_do (aubio_pitchdetection_t * p, fvec_t * ibuf); 62 62 63 63 /** change yin or yinfft tolerance threshold -
src/pitch/pitchfcomb.c
r1b88289 r1294862 59 59 60 60 /* input must be stepsize long */ 61 smpl_t aubio_pitchfcomb_d etect(aubio_pitchfcomb_t * p, fvec_t * input)61 smpl_t aubio_pitchfcomb_do (aubio_pitchfcomb_t * p, fvec_t * input) 62 62 { 63 63 uint_t k, l, maxharm = 0; -
src/pitch/pitchfcomb.h
r1b88289 r1294862 48 48 49 49 */ 50 smpl_t aubio_pitchfcomb_d etect(aubio_pitchfcomb_t *p, fvec_t * input);50 smpl_t aubio_pitchfcomb_do (aubio_pitchfcomb_t *p, fvec_t * input); 51 51 /** creation of the pitch detection object 52 52 -
src/pitch/pitchmcomb.c
r1b88289 r1294862 90 90 91 91 92 smpl_t aubio_pitchmcomb_d etect(aubio_pitchmcomb_t * p, cvec_t * fftgrain) {92 smpl_t aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain) { 93 93 uint_t i=0,j; 94 94 smpl_t instfreq; -
src/pitch/pitchmcomb.h
r1b88289 r1294862 49 49 50 50 */ 51 smpl_t aubio_pitchmcomb_d etect(aubio_pitchmcomb_t * p, cvec_t * fftgrain);51 smpl_t aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain); 52 52 /** select the best candidates */ 53 53 uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands); -
src/pitch/pitchschmitt.c
r1b88289 r1294862 43 43 } 44 44 45 smpl_t aubio_pitchschmitt_d etect(aubio_pitchschmitt_t *p, fvec_t * input)45 smpl_t aubio_pitchschmitt_do (aubio_pitchschmitt_t *p, fvec_t * input) 46 46 { 47 47 uint_t i; -
src/pitch/pitchschmitt.h
r1b88289 r1294862 48 48 49 49 */ 50 smpl_t aubio_pitchschmitt_d etect(aubio_pitchschmitt_t *p, fvec_t * input);50 smpl_t aubio_pitchschmitt_do (aubio_pitchschmitt_t *p, fvec_t * input); 51 51 /** creation of the pitch detection object 52 52 -
src/pitch/pitchyinfft.c
r1b88289 r1294862 88 88 } 89 89 90 smpl_t aubio_pitchyinfft_d etect(aubio_pitchyinfft_t * p, fvec_t * input, smpl_t tol) {90 smpl_t aubio_pitchyinfft_do (aubio_pitchyinfft_t * p, fvec_t * input, smpl_t tol) { 91 91 uint_t tau, l = 0; 92 92 uint_t halfperiod; -
src/pitch/pitchyinfft.h
r1b88289 r1294862 49 49 50 50 */ 51 smpl_t aubio_pitchyinfft_d etect(aubio_pitchyinfft_t *p, fvec_t * input, smpl_t tol);51 smpl_t aubio_pitchyinfft_do (aubio_pitchyinfft_t *p, fvec_t * input, smpl_t tol); 52 52 /** creation of the pitch detection object 53 53 -
swig/aubio.i
r1b88289 r1294862 163 163 /* filterbank */ 164 164 aubio_filterbank_t * new_aubio_filterbank(uint_t win_s, uint_t channels); 165 void aubio_filterbank_set_mel_coeffs(aubio_filterbank_t *fb, fvec_t *freqs, uint_t samplerate);165 void aubio_filterbank_set_mel_coeffs(aubio_filterbank_t *fb, uint_t samplerate, fvec_t *freqs); 166 166 void aubio_filterbank_set_mel_coeffs_slaney(aubio_filterbank_t *fb, uint_t samplerate); 167 167 void del_aubio_filterbank(aubio_filterbank_t * fb); … … 233 233 } aubio_pitchdetection_mode; 234 234 235 smpl_t aubio_pitchdetection (aubio_pitchdetection_t * p, fvec_t * ibuf);235 smpl_t aubio_pitchdetection_do (aubio_pitchdetection_t * p, fvec_t * ibuf); 236 236 237 237 void aubio_pitchdetection_set_yinthresh(aubio_pitchdetection_t *p, smpl_t thres); … … 249 249 /* pitch mcomb */ 250 250 aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate); 251 smpl_t aubio_pitchmcomb_d etect(aubio_pitchmcomb_t * p, cvec_t * fftgrain);251 smpl_t aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain); 252 252 uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands); 253 253 void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p); … … 261 261 /* pitch schmitt */ 262 262 aubio_pitchschmitt_t * new_aubio_pitchschmitt (uint_t size, uint_t samplerate); 263 smpl_t aubio_pitchschmitt_d etect(aubio_pitchschmitt_t *p, fvec_t * input);263 smpl_t aubio_pitchschmitt_do (aubio_pitchschmitt_t *p, fvec_t * input); 264 264 void del_aubio_pitchschmitt (aubio_pitchschmitt_t *p); 265 265 266 266 /* pitch fcomb */ 267 267 aubio_pitchfcomb_t * new_aubio_pitchfcomb (uint_t size, uint_t hopsize, uint_t samplerate); 268 smpl_t aubio_pitchfcomb_d etect(aubio_pitchfcomb_t *p, fvec_t * input);268 smpl_t aubio_pitchfcomb_do (aubio_pitchfcomb_t *p, fvec_t * input); 269 269 void del_aubio_pitchfcomb (aubio_pitchfcomb_t *p); 270 270
Note: See TracChangeset
for help on using the changeset viewer.