spessasynth_lib 3.24.36 → 3.24.38

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.24.36",
3
+ "version": "3.24.38",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "browser": "index.js",
6
6
  "type": "module",
@@ -8,6 +8,7 @@ import {
8
8
  } from "../../utils/loggin.js";
9
9
  import { MIDIData } from "../../midi_parser/midi_data.js";
10
10
  import { MIDI } from "../../midi_parser/midi_loader.js";
11
+ import { BasicMIDI } from "../../midi_parser/basic_midi.js";
11
12
 
12
13
 
13
14
  /**
@@ -164,7 +165,7 @@ export function loadNewSongList(midiBuffers, autoPlay = true)
164
165
  {
165
166
  if (b.duration)
166
167
  {
167
- mids.push(b);
168
+ mids.push(BasicMIDI.copyFrom(b));
168
169
  return mids;
169
170
  }
170
171
  try
@@ -16,7 +16,7 @@ export function getReverbProcessor(context, reverbBuffer = undefined)
16
16
  else
17
17
  {
18
18
  // decode
19
- context.decodeAudioData(reverbBufferBinary.buffer).then(b =>
19
+ context.decodeAudioData(reverbBufferBinary).then(b =>
20
20
  {
21
21
  convolver.buffer = b;
22
22
  });