Changeset 21234ee for examples/aubiopitch.c
- Timestamp:
- Dec 18, 2013, 8:07:27 AM (11 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:
- 6465d7f
- Parents:
- 1573b16 (diff), c3c6305 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiopitch.c
r1573b16 r21234ee 33 33 fvec_zeros(obuf); 34 34 aubio_pitch_do (o, ibuf, pitch); 35 smpl_t freq = fvec_ read_sample(pitch, 0);35 smpl_t freq = fvec_get_sample(pitch, 0); 36 36 aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) ); 37 37 aubio_wavetable_set_freq ( wavetable, freq ); … … 45 45 void 46 46 process_print (void) { 47 smpl_t pitch_found = fvec_ read_sample(pitch, 0);47 smpl_t pitch_found = fvec_get_sample(pitch, 0); 48 48 outmsg("%f %f\n",(blocks) 49 49 *hop_size/(float)samplerate, pitch_found); … … 64 64 65 65 o = new_aubio_pitch (pitch_method, buffer_size, hop_size, samplerate); 66 if (pitch_tolerance != 0.) aubio_pitch_set_tolerance (o, pitch_tolerance); 67 if (pitch_unit != NULL) aubio_pitch_set_unit (o, pitch_unit); 66 if (pitch_tolerance != 0.) 67 aubio_pitch_set_tolerance (o, pitch_tolerance); 68 if (silence_threshold != -90.) 69 aubio_pitch_set_silence (o, silence_threshold); 70 if (pitch_unit != NULL) 71 aubio_pitch_set_unit (o, pitch_unit); 72 68 73 pitch = new_fvec (1); 69 74
Note: See TracChangeset
for help on using the changeset viewer.