| 546 | |
| 547 | # if DISTRHO_PLUGIN_WANT_MIDI_INPUT |
| 548 | void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity) |
| 549 | { |
| 550 | uint8_t midiData[3]; |
| 551 | midiData[0] = (velocity != 0 ? 0x90 : 0x80) | channel; |
| 552 | midiData[1] = note; |
| 553 | midiData[2] = velocity; |
| 554 | fNotesRingBuffer.writeCustomData(midiData, 3); |
| 555 | fNotesRingBuffer.commitWrite("PluginJack::sendNote"); |
| 556 | } |
| 557 | # endif |
| 558 | |
| 559 | # if DISTRHO_PLUGIN_WANT_STATE |