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 +1 -1
- package/soundfont/read/presets.js +9 -0
- package/synthetizer/worklet_processor.min.js +6 -6
- package/synthetizer/worklet_system/main_processor.js +10 -0
- package/synthetizer/worklet_system/worklet_methods/note_on.js +8 -3
- package/synthetizer/worklet_system/worklet_methods/reset_controllers.js +7 -0
- package/synthetizer/worklet_system/worklet_methods/system_exclusive.js +35 -27
- package/synthetizer/worklet_system/worklet_methods/voice_control.js +10 -1
- package/synthetizer/worklet_system/worklet_utilities/wavetable_oscillator.js +13 -4
package/package.json
CHANGED
|
@@ -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
|
/**
|