- Timestamp:
- Oct 8, 2009, 8:54:49 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:
- 3027c6e
- Parents:
- 05773a2c
- Location:
- examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r05773a2c r61316a6 46 46 isonset = aubio_peakpicker_do(parms, onset); 47 47 48 pitch = aubio_pitchdetection_do (pitchdet,ibuf); 48 aubio_pitchdetection_do (pitchdet, ibuf, pitch_obuf); 49 pitch = fvec_read_sample(pitch_obuf, 0, 0); 49 50 if(median){ 50 51 note_append(note_buffer, pitch); -
examples/utils.c
r05773a2c r61316a6 62 62 fvec_t *ibuf; 63 63 fvec_t *obuf; 64 fvec_t *pitch_obuf; 64 65 cvec_t *fftgrain; 65 66 fvec_t *woodblock; … … 319 320 pitchdet = new_aubio_pitchdetection (buffer_size * 4, 320 321 overlap_size, channels, samplerate, type_pitch, mode_pitch); 321 aubio_pitchdetection_set_yinthresh (pitchdet, 0.7); 322 aubio_pitchdetection_set_tolerance (pitchdet, 0.7); 323 pitch_obuf = new_fvec (1, channels); 322 324 323 325 if (median) { … … 350 352 del_fvec (note_buffer2); 351 353 } 354 del_fvec (pitch_obuf); 352 355 } 353 356 if (usedoubled) { -
examples/utils.h
r05773a2c r61316a6 95 95 extern fvec_t *ibuf; 96 96 extern fvec_t *obuf; 97 extern fvec_t *pitch_obuf; 97 98 extern cvec_t *fftgrain; 98 99 extern fvec_t *woodblock;
Note: See TracChangeset
for help on using the changeset viewer.