Changeset fe87823
- Timestamp:
- Dec 31, 2013, 12:17:37 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:
- c21acb9
- Parents:
- 0546c1f3
- Location:
- examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r0546c1f3 rfe87823 48 48 void process_block (fvec_t *ibuf, fvec_t *obuf) 49 49 { 50 smpl_t new_pitch, curlevel; 50 51 fvec_zeros(obuf); 51 52 aubio_onset_do(o, ibuf, onset); 52 53 53 54 aubio_pitch_do (pitch, ibuf, pitch_obuf); 54 smpl_tnew_pitch = fvec_get_sample(pitch_obuf, 0);55 new_pitch = fvec_get_sample(pitch_obuf, 0); 55 56 if(median){ 56 57 note_append(note_buffer, new_pitch); … … 58 59 59 60 /* curlevel is negatif or 1 if silence */ 60 smpl_tcurlevel = aubio_level_detection(ibuf, silence_threshold);61 curlevel = aubio_level_detection(ibuf, silence_threshold); 61 62 if (fvec_get_sample(onset, 0)) { 62 63 /* test for silence */ -
examples/aubiopitch.c
r0546c1f3 rfe87823 31 31 void process_block(fvec_t * ibuf, fvec_t * obuf) 32 32 { 33 smpl_t freq; 33 34 aubio_pitch_do (o, ibuf, pitch); 34 35 if ( !usejack && ! sink_uri ) return; 35 36 fvec_zeros(obuf); 36 smpl_tfreq = fvec_get_sample(pitch, 0);37 freq = fvec_get_sample(pitch, 0); 37 38 aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) ); 38 39 aubio_wavetable_set_freq ( wavetable, freq ); -
examples/utils.c
r0546c1f3 rfe87823 149 149 } else { 150 150 /* phasevoc */ 151 uint_t total_read = 0; 151 152 blocks = 0; 152 uint_t total_read = 0;153 153 154 154 do {
Note: See TracChangeset
for help on using the changeset viewer.