Correctly mark Lollipops for Percussive events as hits

This commit is contained in:
Robin Gareus 2024-08-08 21:35:00 +02:00
parent 21610015ed
commit c07c865b1d
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -216,6 +216,9 @@ MidiGhostRegion::GhostEvent::GhostEvent (NoteBase* e, ArdourCanvas::Container* g
, is_hit (false) , is_hit (false)
{ {
velocity_while_editing = event->note()->velocity(); velocity_while_editing = event->note()->velocity();
if (dynamic_cast<Hit*>(e)) {
is_hit = true;
}
} }
MidiGhostRegion::GhostEvent::GhostEvent (NoteBase* e, ArdourCanvas::Container* g) MidiGhostRegion::GhostEvent::GhostEvent (NoteBase* e, ArdourCanvas::Container* g)