diff --git a/src/state/index.mjs b/src/state/index.mjs index cb03537..904391d 100644 --- a/src/state/index.mjs +++ b/src/state/index.mjs @@ -1371,8 +1371,8 @@ let OctaviaDevice = class extends CustomEventSource { let notes = new Map(); let upThis = this; upThis.#poly.forEach(function (e, i) { - let realCh = Math.floor(e / 128), - realNote = e % 128; + let realCh = e >> 7, + realNote = e & 127; if (channel == realCh && upThis.#velo[e] > 0) { notes.set(realNote, { v: upThis.#velo[e], // Short for velocity