From 5ce5febd168440707966400c88ddf03ebb77f8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Sat, 11 Nov 2023 03:55:34 +0000 Subject: [PATCH] Add support for NS5R part type. --- src/state/index.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/state/index.mjs b/src/state/index.mjs index b6b0dc26..e5d4f77a 100644 --- a/src/state/index.mjs +++ b/src/state/index.mjs @@ -4032,10 +4032,15 @@ let OctaviaDevice = class extends CustomEventSource { console.info(`NS5R CH${part + 1} receives from CH${ch + 1}.`); upThis.buildRchTree(); }; + break; }; case 7: { // 0 for melodic, 1 for drum, 2~5 for mod drums 1~4 // KORG has multiple MSBs for drums, well... + upThis.#chType[part] = e; + upThis.dispatchEvent("voice", { + part + }); break; }; case 8: {