mirror of
https://github.com/thestk/stk
synced 2026-04-19 22:16:54 +00:00
Update to Modulate to allow noise rate control.
This commit is contained in:
@@ -41,6 +41,9 @@ class Modulate : public Generator
|
|||||||
//! Set the periodic (vibrato) gain.
|
//! Set the periodic (vibrato) gain.
|
||||||
void setVibratoGain( StkFloat gain ) { vibratoGain_ = 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.
|
//! Set the random modulation gain.
|
||||||
void setRandomGain( StkFloat gain );
|
void setRandomGain( StkFloat gain );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user