36 void reset(
void ) { lastFrame_[0] = 0.0; };
51 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
54 StkFloat
tick(
void );
68 void sampleRateChanged( StkFloat newRate, StkFloat oldRate );
73 StkFloat vibratoGain_;
75 unsigned int noiseRate_;
76 unsigned int noiseCounter_;
83 lastFrame_[0] = vibratoGain_ * vibrato_.
tick();
84 if ( noiseCounter_++ >= noiseRate_ ) {
94 #if defined(_STK_DEBUG_)
95 if ( channel >= frames.
channels() ) {
96 oStream_ <<
"Modulate::tick(): channel and StkFrames arguments are incompatible!";
101 StkFloat *samples = &frames[channel];
102 unsigned int hop = frames.
channels();
103 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )