36 void reset(
void ) { lastFrame_[0] = 0.0; };
48 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
51 StkFloat
tick(
void );
65 void sampleRateChanged( StkFloat newRate, StkFloat oldRate );
70 StkFloat vibratoGain_;
72 unsigned int noiseRate_;
73 unsigned int noiseCounter_;
80 lastFrame_[0] = vibratoGain_ * vibrato_.
tick();
81 if ( noiseCounter_++ >= noiseRate_ ) {
91 #if defined(_STK_DEBUG_)
92 if ( channel >= frames.
channels() ) {
93 oStream_ <<
"Modulate::tick(): channel and StkFrames arguments are incompatible!";
98 StkFloat *samples = &frames[channel];
99 unsigned int hop = frames.
channels();
100 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )