spessasynth_core 3.26.38 → 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
|
@@ -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 <
|
|
381
|
+
if (i < presets.length - 1)
|
|
382
382
|
{
|
|
383
383
|
preset.zonesCount = presets[i + 1].zoneStartIndex - preset.zoneStartIndex;
|
|
384
384
|
}
|