mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
using floating point comparisons
This commit is contained in:
parent
abee380fc2
commit
e0248afb1c
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ export class Timeline<GenericEvent extends TimelineEvent> extends Tone {
|
|||
event.time = event.time.valueOf();
|
||||
if (this.increasing && this.length) {
|
||||
const lastValue = this._timeline[this.length - 1] as GenericEvent;
|
||||
this.assert(lastValue.time <= event.time, "The time must be greater than or equal to the last scheduled time");
|
||||
this.assert(GTE(event.time, lastValue.time), "The time must be greater than or equal to the last scheduled time");
|
||||
this._timeline.push(event);
|
||||
} else {
|
||||
const index = this._search(event.time);
|
||||
|
|
Loading…
Reference in a new issue