mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
parent
33e14d06eb
commit
0b7a352f7a
1 changed files with 0 additions and 2 deletions
|
@ -167,8 +167,6 @@ export class ToneEvent<ValueType = any> extends ToneWithContext<ToneEventOptions
|
||||||
duration = Math.min(duration, nextEvent.time - startTick);
|
duration = Math.min(duration, nextEvent.time - startTick);
|
||||||
}
|
}
|
||||||
if (duration !== Infinity) {
|
if (duration !== Infinity) {
|
||||||
// schedule a stop since it's finite duration
|
|
||||||
this._state.setStateAtTime("stopped", startTick + duration + 1, { id: -1 });
|
|
||||||
duration = new TicksClass(this.context, duration);
|
duration = new TicksClass(this.context, duration);
|
||||||
}
|
}
|
||||||
const interval = new TicksClass(this.context, this._getLoopDuration());
|
const interval = new TicksClass(this.context, this._getLoopDuration());
|
||||||
|
|
Loading…
Reference in a new issue