spessasynth_core 4.0.14 → 4.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3907,7 +3907,8 @@ function processTick() {
3907
3907
  this.setTimeTicks(this._midiData.loop.start);
3908
3908
  return;
3909
3909
  }
3910
- if (nextTrack.events.length <= this.eventIndexes[nextTrackIndex]) {
3910
+ if (nextTrack.events.length <= this.eventIndexes[nextTrackIndex] || // https://github.com/spessasus/spessasynth_core/issues/21
3911
+ event.ticks >= this._midiData.lastVoiceEventTick) {
3911
3912
  this.songIsFinished();
3912
3913
  return;
3913
3914
  }