spessasynth_core 3.26.36 → 3.26.37

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.36",
3
+ "version": "3.26.37",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -35,11 +35,6 @@ export function resetAllControllers(log = true)
35
35
  const ch = this.midiAudioChannels[channelNumber];
36
36
 
37
37
  ch.resetControllers();
38
- // safety net
39
- if (!ch.preset)
40
- {
41
- continue;
42
- }
43
38
  // if preset is unlocked, switch to non-drums and call event
44
39
  if (!ch.lockPreset)
45
40
  {
@@ -70,7 +65,11 @@ export function resetAllControllers(log = true)
70
65
  isDrumChannel: ch.drumChannel
71
66
  });
72
67
  }
73
-
68
+ // safety net
69
+ if (!ch.preset)
70
+ {
71
+ continue;
72
+ }
74
73
  const presetBank = ch.preset?.bank;
75
74
  // call program change
76
75
  this.callEvent("programchange", {