start the gain

This commit is contained in:
Yotam Mann 2020-05-06 22:10:35 -04:00
parent c4e4b61d93
commit 9864a79a25

View file

@ -20,7 +20,7 @@ interface GainOptions<TypeName extends UnitName> extends ToneAudioNodeOptions {
* @offline 0.7 1
* @example
* const gainNode = new Tone.Gain(0).toDestination();
* const osc = new Tone.Oscillator().connect(gainNode);
* const osc = new Tone.Oscillator(30).connect(gainNode).start();
* gainNode.gain.rampTo(1, 0.1);
* gainNode.gain.rampTo(0, 0.4, 0.2);
*/