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