From ad9dd643a605e4fbddce141ad29cbbaef8518d99 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Tue, 15 Sep 2020 08:22:16 -0400 Subject: [PATCH] fixing envelope example --- Tone/component/envelope/Envelope.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tone/component/envelope/Envelope.ts b/Tone/component/envelope/Envelope.ts index ccab544a..94ca0ac3 100644 --- a/Tone/component/envelope/Envelope.ts +++ b/Tone/component/envelope/Envelope.ts @@ -433,7 +433,7 @@ export class Envelope extends ToneAudioNode { * @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);