diff --git a/src/spessasynth_lib/sequencer/sequencer.js b/src/spessasynth_lib/sequencer/sequencer.js index f6a0534d..ea9a9c9b 100644 --- a/src/spessasynth_lib/sequencer/sequencer.js +++ b/src/spessasynth_lib/sequencer/sequencer.js @@ -159,6 +159,10 @@ export class Sequencer { set currentTime(time) { + if(this.onTimeChange) + { + this.onTimeChange(time); + } if(time < 0 || time > this.duration || time === 0) { // time is 0 @@ -176,10 +180,6 @@ export class Sequencer { this.renderer.noteStartTime = this.absoluteStartTime; this.resetRendererIndexes(); } - if(this.onTimeChange) - { - this.onTimeChange(time); - } } resetRendererIndexes()