diff --git a/include/Modulate.h b/include/Modulate.h index e1fe515..c668cc3 100644 --- a/include/Modulate.h +++ b/include/Modulate.h @@ -41,6 +41,9 @@ class Modulate : public Generator //! Set the periodic (vibrato) gain. void setVibratoGain( StkFloat gain ) { vibratoGain_ = gain; }; + //! Set the periodic (vibrato) rate or frequency in Hz. + void setRandomRate( StkFloat rate ) { noiseRate_ = (unsigned int) ( rate * Stk::sampleRate() / 22050.0 ); }; + //! Set the random modulation gain. void setRandomGain( StkFloat gain );