fixing envelope example

This commit is contained in:
Yotam Mann 2020-09-15 08:22:16 -04:00
parent ada9646ed7
commit ad9dd643a6

View file

@ -433,7 +433,7 @@ export class Envelope extends ToneAudioNode<EnvelopeOptions> {
* @example
* const env = new Tone.Envelope(0.5, 1, 0.4, 2);
* env.triggerAttackRelease(2);
* setInterval(() => console.log(env.getValueAtTime), 100);
* setInterval(() => console.log(env.getValueAtTime(Tone.now())), 100);
*/
getValueAtTime(time: Time): NormalRange {
return this._sig.getValueAtTime(time);