mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
enabling the value to ramp exponentially ramp below 0
This commit is contained in:
parent
78452c65d2
commit
92b70176a1
1 changed files with 2 additions and 1 deletions
|
@ -321,7 +321,8 @@ export class Param<TypeName extends UnitName = "number">
|
|||
|
||||
exponentialRampToValueAtTime(value: UnitMap[TypeName], endTime: Time): this {
|
||||
let numericValue = this._fromType(value);
|
||||
numericValue = Math.max(this._minOutput, numericValue);
|
||||
// the value can't be 0
|
||||
numericValue = EQ(numericValue, 0) ? this._minOutput : numericValue;
|
||||
this._assertRange(numericValue);
|
||||
const computedTime = this.toSeconds(endTime);
|
||||
assert(isFinite(numericValue) && isFinite(computedTime),
|
||||
|
|
Loading…
Reference in a new issue