Changeset d4791e5 for examples/aubiopitch.c
- Timestamp:
- Jan 3, 2014, 12:47:22 AM (10 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (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
r89e9e71 rd4791e5 29 29 fvec_t *pitch; 30 30 31 void 32 process_block(fvec_t * ibuf, fvec_t * obuf) { 31 void process_block(fvec_t * ibuf, fvec_t * obuf) 32 { 33 smpl_t freq; 34 aubio_pitch_do (o, ibuf, pitch); 35 if ( !usejack && ! sink_uri ) return; 33 36 fvec_zeros(obuf); 34 aubio_pitch_do (o, ibuf, pitch); 35 smpl_t freq = fvec_get_sample(pitch, 0); 37 freq = fvec_get_sample(pitch, 0); 36 38 aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) ); 37 39 aubio_wavetable_set_freq ( wavetable, freq ); 38 39 40 if (mix_input) 40 41 aubio_wavetable_do (wavetable, ibuf, obuf); … … 43 44 } 44 45 45 void 46 process_print (void){46 void process_print (void) 47 { 47 48 smpl_t pitch_found = fvec_get_sample(pitch, 0); 48 49 outmsg("%f %f\n",(blocks)
Note: See TracChangeset
for help on using the changeset viewer.