This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| code61 [2026/03/14 20:40] – Yuki | code61 [2026/03/14 21:33] (current) – Yuki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | MIDI port: < | + | MIDI port: < |
| <WRAP tabs> | <WRAP tabs> | ||
| Line 24: | Line 24: | ||
| <option value=" | <option value=" | ||
| </ | </ | ||
| - | |XY pad curve|< | + | |XY pad curve|< |
| <option value=" | <option value=" | ||
| <option value=" | <option value=" | ||
| Line 36: | Line 36: | ||
| <option value=" | <option value=" | ||
| </ | </ | ||
| - | |Mackie Control / HUI|< | + | |Mackie Control / HUI|< |
| <option value=" | <option value=" | ||
| <option value=" | <option value=" | ||
| </ | </ | ||
| - | |Key Octave|< | + | |Key Octave|< |
| - | |Key Transpose|< | + | |Key Transpose|< |
| - | |Key Curve|< | + | |Key Curve|< |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| - | <option value=" | + | <option value=" |
| </ | </ | ||
| - | |Pad Octave|< | + | |Pad Octave|< |
| - | |Pad Transpose|< | + | |Pad Transpose|< |
| - | |Pad Curve|< | + | |Pad Curve|< |
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | <option value=" | ||
| + | </ | ||
| + | |Encoder | ||
| + | <option value=" | ||
| <option value=" | <option value=" | ||
| <option value=" | <option value=" | ||
| <option value=" | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | </ | ||
| - | |Encoder Curve|< | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| - | <option value=" | ||
| </ | </ | ||
| |Program|< | |Program|< | ||
| Line 80: | Line 80: | ||
| < | < | ||
| <button onclick=" | <button onclick=" | ||
| - | <button onclick=" | + | <button onclick=" |
| </ | </ | ||
| </ | </ | ||
| Line 101: | Line 101: | ||
| } | } | ||
| function getOutput(){ | function getOutput(){ | ||
| - | return WebMidi.getOutputByName(getInput().name); | + | |
| + | | ||
| } | } | ||
| function onEnabled() { | function onEnabled() { | ||
| Line 107: | Line 108: | ||
| document.querySelector("# | document.querySelector("# | ||
| }); | }); | ||
| - | getInput().addListener(" | + | |
| + | { | ||
| + | | ||
| + | sendDeviceQuery(); | ||
| + | } | ||
| document.querySelector("# | document.querySelector("# | ||
| getInput().removeListener(" | getInput().removeListener(" | ||
| keybDetected = false; | keybDetected = false; | ||
| + | document.querySelector("# | ||
| index = document.querySelector("# | index = document.querySelector("# | ||
| getInput().addListener(" | getInput().addListener(" | ||
| Line 119: | Line 125: | ||
| if(e.message.manufacturerId.compare([126]) && e.dataBytes.slice(0, | if(e.message.manufacturerId.compare([126]) && e.dataBytes.slice(0, | ||
| keybDetected = true; | keybDetected = true; | ||
| + | document.querySelector("# | ||
| sendUnlock(); | sendUnlock(); | ||
| } | } | ||
| Line 124: | Line 131: | ||
| var address = e.dataBytes[6]*128+e.dataBytes[7]; | var address = e.dataBytes[6]*128+e.dataBytes[7]; | ||
| var value = e.dataBytes[8]*128+e.dataBytes[9]; | var value = e.dataBytes[8]*128+e.dataBytes[9]; | ||
| + | if(address == 5 || address == 8) value -= 5; | ||
| + | if(address == 6 || address == 9) value -= 12; | ||
| document.querySelector("# | document.querySelector("# | ||
| console.log([address, | console.log([address, | ||
| Line 138: | Line 147: | ||
| var lsb = id % 128; | var lsb = id % 128; | ||
| getOutput().sendSysex([0, | getOutput().sendSysex([0, | ||
| + | } | ||
| + | function sendSetting(id, | ||
| + | var amsb = id / 128 % 128; | ||
| + | var alsb = id % 128; | ||
| + | var vmsb = value / 128 % 128; | ||
| + | var vlsb = value % 128; | ||
| + | getOutput().sendSysex([0, | ||
| } | } | ||
| function getSettings() { | function getSettings() { | ||
| [0, | [0, | ||
| + | } | ||
| + | function setSettings() { | ||
| + | [0, | ||
| + | var value = document.querySelector("# | ||
| + | if(address == 5 || address == 8) value += 5; | ||
| + | if(address == 6 || address == 9) value += 12; | ||
| + | sendSetting(address, | ||
| + | }); | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||