add offleds listener on OSC
This commit is contained in:
parent
81211ea2d2
commit
adf1755049
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue