spessasynth_core 3.26.37 → 3.26.39

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.37",
3
+ "version": "3.26.39",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -378,7 +378,7 @@ export class SoundFont2 extends BasicSoundBank
378
378
  // adjust zone counts
379
379
  presets.forEach((preset, i) =>
380
380
  {
381
- if (i < instruments.length - 1)
381
+ if (i < presets.length - 1)
382
382
  {
383
383
  preset.zonesCount = presets[i + 1].zoneStartIndex - preset.zoneStartIndex;
384
384
  }