| 201 | |
| 202 | #if DISTRHO_PLUGIN_WANT_MIDI_INPUT |
| 203 | void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity) |
| 204 | { |
| 205 | if (fOscData.server == nullptr) |
| 206 | return; |
| 207 | if (channel > 0xF) |
| 208 | return; |
| 209 | |
| 210 | uint8_t mdata[4] = { |
| 211 | 0, |
| 212 | static_cast<uint8_t>(channel + (velocity != 0 ? 0x90 : 0x80)), |
| 213 | note, |
| 214 | velocity |
| 215 | }; |
| 216 | fOscData.send_midi(mdata); |
| 217 | } |
| 218 | #endif |
| 219 | |
| 220 | private: |
no test coverage detected