- Timestamp:
- Oct 19, 2009, 10:59:32 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:
- 59c046d
- Parents:
- ca1abdd
- Location:
- examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
rca1abdd rb14107f 25 25 smpl_t curlevel = 0.; 26 26 27 aubio_pitch detection_t *pitchdet;27 aubio_pitch_t *pitchdet; 28 28 29 29 fvec_t *note_buffer = NULL; … … 35 35 unsigned int pos = 0; /*frames%dspblocksize*/ 36 36 37 aubio_pitch detection_t *pitchdet;37 aubio_pitch_t *pitchdet; 38 38 aubio_onset_t *o; 39 39 fvec_t *onset; … … 62 62 aubio_onset_do(o, ibuf, onset); 63 63 64 aubio_pitch detection_do (pitchdet, ibuf, pitch_obuf);64 aubio_pitch_do (pitchdet, ibuf, pitch_obuf); 65 65 pitch = fvec_read_sample(pitch_obuf, 0, 0); 66 66 if(median){ … … 150 150 onset = new_fvec (1, channels); 151 151 152 pitchdet = new_aubio_pitch detection(pitch_mode, buffer_size * 4,152 pitchdet = new_aubio_pitch (pitch_mode, buffer_size * 4, 153 153 overlap_size, channels, samplerate); 154 aubio_pitch detection_set_tolerance (pitchdet, 0.7);154 aubio_pitch_set_tolerance (pitchdet, 0.7); 155 155 pitch_obuf = new_fvec (1, channels); 156 156 if (median) { … … 162 162 163 163 send_noteon (curnote, 0); 164 del_aubio_pitch detection(pitchdet);164 del_aubio_pitch (pitchdet); 165 165 if (median) { 166 166 del_fvec (note_buffer);
Note: See TracChangeset
for help on using the changeset viewer.