spessasynth_lib 3.27.2 → 3.27.4

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_lib",
3
- "version": "3.27.2",
3
+ "version": "3.27.4",
4
4
  "description": "MIDI and SoundFont2/DLS library for the browsers with no compromises",
5
5
  "browser": "index.js",
6
6
  "type": "module",
@@ -204,7 +204,8 @@ class WorkletSpessaProcessor extends AudioWorkletProcessor
204
204
  // autoplay is ignored
205
205
  try
206
206
  {
207
- this.sequencer.loadNewSongList([startRenderingData.parsedMIDI]);
207
+ // cloned objects don't have methods
208
+ this.sequencer.loadNewSongList([BasicMIDI.copyFrom(startRenderingData.parsedMIDI)]);
208
209
  }
209
210
  catch (e)
210
211
  {
@@ -387,7 +388,8 @@ class WorkletSpessaProcessor extends AudioWorkletProcessor
387
388
  {
388
389
  if (s.duration)
389
390
  {
390
- return s;
391
+ // cloned objects don't have methods
392
+ return BasicMIDI.copyFrom(s);
391
393
  }
392
394
  return new MIDI(s.binary, s.altName);
393
395
  });