uint_t aubio_wavetable_stop ( aubio_wavetable_t * s ) { //aubio_wavetable_set_freq (s, 0.); aubio_wavetable_set_amp (s, 0.); //s->last_pos = 0; return aubio_wavetable_set_playing (s, 1); }
void process_block(fvec_t * ibuf, fvec_t * obuf) { fvec_zeros(obuf); aubio_pitch_do (o, ibuf, pitch); smpl_t freq = fvec_read_sample(pitch, 0); aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) ); aubio_wavetable_set_freq ( wavetable, freq ); if (mix_input) aubio_wavetable_do (wavetable, ibuf, obuf); else aubio_wavetable_do (wavetable, obuf, obuf); }
uint_t aubio_wavetable_play ( aubio_wavetable_t * s ) { aubio_wavetable_set_amp (s, 0.7); return aubio_wavetable_set_playing (s, 1); }