spessasynth_lib 3.9.16 → 3.9.18
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.
|
@@ -12,7 +12,7 @@ export function getUsedProgramsAndKeys(mid, soundfont)
|
|
|
12
12
|
SpessaSynthGroupCollapsed("%cSearching for all used programs and keys...",
|
|
13
13
|
consoleColors.info);
|
|
14
14
|
// find every bank:program combo and every key:velocity for each. Make sure to care about ports and drums
|
|
15
|
-
const channelsAmount = 16 +
|
|
15
|
+
const channelsAmount = 16 + mid.midiPortChannelOffsets.reduce((max, cur) => cur > max ? cur: max);
|
|
16
16
|
/**
|
|
17
17
|
* @type {{program: number, bank: number, drums: boolean, string: string}[]}
|
|
18
18
|
*/
|
|
@@ -155,6 +155,7 @@ export function getUsedProgramsAndKeys(mid, soundfont)
|
|
|
155
155
|
// that's a note off
|
|
156
156
|
continue;
|
|
157
157
|
}
|
|
158
|
+
updateString(ch);
|
|
158
159
|
usedProgramsAndKeys[ch.string].add(`${event.messageData[0]}-${event.messageData[1]}`);
|
|
159
160
|
break;
|
|
160
161
|
|