spessasynth_core 3.26.7 → 3.26.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_core",
3
- "version": "3.26.7",
3
+ "version": "3.26.8",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -334,6 +334,10 @@ export function play(resetTime = false)
334
334
  */
335
335
  export function setTimeTicks(ticks)
336
336
  {
337
+ if (!this.midiData)
338
+ {
339
+ return;
340
+ }
337
341
  this.stop();
338
342
  this.playingNotes = [];
339
343
  this.pausedTime = undefined;
@@ -208,6 +208,10 @@ class SpessaSynthSequencer
208
208
 
209
209
  set currentTime(time)
210
210
  {
211
+ if (!this.midiData)
212
+ {
213
+ return;
214
+ }
211
215
  if (time > this.duration || time < 0)
212
216
  {
213
217
  // time is 0