void process_block (fvec_t *ibuf, fvec_t *obuf)
{
+ smpl_t new_pitch, curlevel;
fvec_zeros(obuf);
aubio_onset_do(o, ibuf, onset);
aubio_pitch_do (pitch, ibuf, pitch_obuf);
- smpl_t new_pitch = fvec_get_sample(pitch_obuf, 0);
+ new_pitch = fvec_get_sample(pitch_obuf, 0);
if(median){
note_append(note_buffer, new_pitch);
}
/* curlevel is negatif or 1 if silence */
- smpl_t curlevel = aubio_level_detection(ibuf, silence_threshold);
+ curlevel = aubio_level_detection(ibuf, silence_threshold);
if (fvec_get_sample(onset, 0)) {
/* test for silence */
if (curlevel == 1.) {
void process_block(fvec_t * ibuf, fvec_t * obuf)
{
+ smpl_t freq;
aubio_pitch_do (o, ibuf, pitch);
if ( !usejack && ! sink_uri ) return;
fvec_zeros(obuf);
- smpl_t freq = fvec_get_sample(pitch, 0);
+ freq = fvec_get_sample(pitch, 0);
aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
aubio_wavetable_set_freq ( wavetable, freq );
if (mix_input)