| 315 | |
| 316 | #if DISTRHO_PLUGIN_WANT_MIDI_INPUT |
| 317 | void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity) |
| 318 | { |
| 319 | uint8_t midiData[3]; |
| 320 | midiData[0] = (velocity != 0 ? 0x90 : 0x80) | channel; |
| 321 | midiData[1] = note; |
| 322 | midiData[2] = velocity; |
| 323 | fNotesRingBuffer.writeCustomData(midiData, 3); |
| 324 | fNotesRingBuffer.commitWrite(); |
| 325 | } |
| 326 | #endif |
| 327 | |
| 328 | #if DISTRHO_PLUGIN_WANT_STATE |