setValueAtTime makes the attack less prone to clicks

not sure why.
This commit is contained in:
Yotam Mann 2015-12-06 21:39:59 -05:00
parent b8ca748275
commit 2626b19469

View file

@ -203,6 +203,7 @@ define(["Tone/core/Tone", "Tone/signal/TimelineSignal",
this._sig.exponentialRampToValueBetween(velocity, time, attack);
}
//decay
this._sig.setValueAtTime(velocity, attack);
this._sig.exponentialRampToValueAtTime(this.sustain * velocity, attack + decay);
return this;
};