add offleds listener on OSC

This commit is contained in:
Rik Berkelder 2026-01-27 04:08:01 +01:00
parent 81211ea2d2
commit adf1755049

View file

@ -175,6 +175,7 @@ class OSCDevice {
if (msg.address !== listener.address) continue; if (msg.address !== listener.address) continue;
listener.handler(msg); listener.handler(msg);
} }
}) })
this.port.open(); this.port.open();
@ -263,6 +264,7 @@ const feedbackOff = () => {
} }
const offButton = mdev.addControl(MessageType.NoteOn, { channel: 0, note: 39 }, { noPageFeedback: true }) const offButton = mdev.addControl(MessageType.NoteOn, { channel: 0, note: 39 }, { noPageFeedback: true })
offButton.addOutput(ALL_PAGES, (d) => feedbackOff()); offButton.addOutput(ALL_PAGES, (d) => feedbackOff());
odev.addListener('/offleds', () => feedbackOff());
// PAGE SWITCHING // PAGE SWITCHING
const pageFeedback = () => { const pageFeedback = () => {