| 214 | |
| 215 | midi::InputQueue inputQueue; |
| 216 | void requestParamOverSysex(uint8_t row, uint8_t col, uint8_t mode) { |
| 217 | |
| 218 | midi::Message msg; |
| 219 | msg.bytes.resize(8); |
| 220 | // F0 7D 17 00 01 03 00 nm pp F7 |
| 221 | uint8_t port = 3 * row + col; |
| 222 | //Where n is: |
| 223 | // 0 = Full configuration request. The module will send only pre def, port functions and modified parameters |
| 224 | // 2 = Send Port configuration |
| 225 | // 4 = Send MIDI Channel configuration |
| 226 | // 6 = Send Voice Configuration |
| 227 | |
| 228 | uint8_t n = mode * 16; |
| 229 | uint8_t m = port; // element number: 0-11 port number, 1-16 channel or voice number |
| 230 | uint8_t pp = 2; |
| 231 | msg.bytes = {0xF0, 0x7D, 0x17, 0x00, 0x01, 0x03, 0x00, static_cast<uint8_t>(n + m), pp, 0xF7}; |
| 232 | midiOut.sendMessage(msg); |
| 233 | // DEBUG("API request mode msg sent: port %d, pp %s", port, msg.toString().c_str()); |
| 234 | } |
| 235 | |
| 236 | int getVoltageMode(uint8_t row, uint8_t col) { |
| 237 | // -1 because menu is zero indexed but enum is not |
nothing calls this directly
no outgoing calls
no test coverage detected