mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Handle choke events in MidiInverter
This commit is contained in:
@@ -73,6 +73,17 @@ impl Plugin for MidiInverter {
|
||||
note: 127 - note,
|
||||
velocity: 1.0 - velocity,
|
||||
}),
|
||||
NoteEvent::Choke {
|
||||
timing,
|
||||
voice_id,
|
||||
channel,
|
||||
note,
|
||||
} => context.send_event(NoteEvent::Choke {
|
||||
timing,
|
||||
voice_id,
|
||||
channel: 15 - channel,
|
||||
note: 127 - note,
|
||||
}),
|
||||
NoteEvent::PolyPressure {
|
||||
timing,
|
||||
voice_id,
|
||||
|
||||
Reference in New Issue
Block a user