mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
canceling next events on stop
This commit is contained in:
parent
33df9eec3a
commit
f0857f2e08
1 changed files with 1 additions and 0 deletions
|
@ -225,6 +225,7 @@ define(["Tone/core/Tone", "Tone/core/Transport", "Tone/core/Type", "Tone/core/Ti
|
|||
* @return {Tone.Event} this
|
||||
*/
|
||||
Tone.Event.prototype.stop = function(time){
|
||||
this.cancel(time);
|
||||
time = this.toTicks(time);
|
||||
if (this._state.getStateAtTime(time) === Tone.State.Started){
|
||||
this._state.setStateAtTime(Tone.State.Stopped, time);
|
||||
|
|
Loading…
Reference in a new issue