mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
setValueAtTime makes the attack less prone to clicks
not sure why.
This commit is contained in:
parent
b8ca748275
commit
2626b19469
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@ define(["Tone/core/Tone", "Tone/signal/TimelineSignal",
|
||||||
this._sig.exponentialRampToValueBetween(velocity, time, attack);
|
this._sig.exponentialRampToValueBetween(velocity, time, attack);
|
||||||
}
|
}
|
||||||
//decay
|
//decay
|
||||||
|
this._sig.setValueAtTime(velocity, attack);
|
||||||
this._sig.exponentialRampToValueAtTime(this.sustain * velocity, attack + decay);
|
this._sig.exponentialRampToValueAtTime(this.sustain * velocity, attack + decay);
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue