spessasynth_lib 3.14.0 → 3.14.2

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.14.0",
3
+ "version": "3.14.2",
4
4
  "description": "No compromise MIDI and SoundFont2 Synthesizer library",
5
5
  "browser": "index.js",
6
6
  "types": "@types/index.d.ts",
@@ -133,6 +133,11 @@ export class Preset {
133
133
  return memorized;
134
134
  }
135
135
 
136
+ if(this.presetZones.length < 1)
137
+ {
138
+ return [];
139
+ }
140
+
136
141
  function isInRange(min, max, number) {
137
142
  return number >= min && number <= max;
138
143
  }
@@ -191,6 +196,10 @@ export class Preset {
191
196
 
192
197
  presetZonesInRange.forEach(zone =>
193
198
  {
199
+ if(zone.instrument.instrumentZones.length < 1)
200
+ {
201
+ return;
202
+ }
194
203
  let presetGenerators = zone.generators;
195
204
  let presetModulators = zone.modulators;
196
205
  /**