mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
passing in arguments as labelled
This commit is contained in:
parent
4d93b6c1b0
commit
9591fdedf8
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ export class ScaledEnvelope extends Envelope {
|
|||
constructor(attack?: Time, decay?: Time, sustain?: NormalRange, release?: Time);
|
||||
constructor(options?: Partial<ScaledEnvelopeOptions>)
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue