Skip to content

Commit

Permalink
fix lyrics resetting after time change
Browse files Browse the repository at this point in the history
this is a very old bug and it has a stupidly easy fix
  • Loading branch information
spessasus committed May 20, 2024
1 parent 814e067 commit d23aac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spessasynth_lib/sequencer/sequencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -176,10 +180,6 @@ export class Sequencer {
this.renderer.noteStartTime = this.absoluteStartTime;
this.resetRendererIndexes();
}
if(this.onTimeChange)
{
this.onTimeChange(time);
}
}

resetRendererIndexes()
Expand Down

0 comments on commit d23aac5

Please sign in to comment.