From 9591fdedf8b6a11ea47f915095bc6695d115f5d7 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Mon, 28 Oct 2019 12:19:22 -0400 Subject: [PATCH] passing in arguments as labelled --- Tone/component/envelope/ScaledEnvelope.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tone/component/envelope/ScaledEnvelope.ts b/Tone/component/envelope/ScaledEnvelope.ts index c3b20cb3..27ec5a68 100644 --- a/Tone/component/envelope/ScaledEnvelope.ts +++ b/Tone/component/envelope/ScaledEnvelope.ts @@ -51,8 +51,8 @@ export class ScaledEnvelope extends Envelope { constructor(attack?: Time, decay?: Time, sustain?: NormalRange, release?: Time); constructor(options?: Partial) constructor() { - super(optionsFromArguments(ScaledEnvelope.getDefaults(), arguments, ["attack", "decay", "sustain", "release", "min", "max", "exponent"])); - const options = optionsFromArguments(ScaledEnvelope.getDefaults(), arguments, ["min", "max", "exponent"]); + super(optionsFromArguments(ScaledEnvelope.getDefaults(), arguments, ["attack", "decay", "sustain", "release"])); + const options = optionsFromArguments(ScaledEnvelope.getDefaults(), arguments, ["attack", "decay", "sustain", "release"]); this._exponent = this.input = new Pow({ context: this.context,