From 9089694e369be893e3d2b24b8ab636e7b0b92599 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 Jan 2023 22:35:16 -0700 Subject: [PATCH] pops visible and somewhat responsive to note changes --- gtk2_ardour/velocity_ghost_region.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/velocity_ghost_region.cc b/gtk2_ardour/velocity_ghost_region.cc index e50ef9f88f..f44dc2df6f 100644 --- a/gtk2_ardour/velocity_ghost_region.cc +++ b/gtk2_ardour/velocity_ghost_region.cc @@ -80,18 +80,20 @@ VelocityGhostRegion::add_note (NoteBase* n) if (!n->item()->visible()) { event->item->hide(); } else { - l->set (ArdourCanvas::Duple (n->x0(), n->y0()), n->note()->velocity() / 127.0 * base_rect->y1(), 10); + l->set (ArdourCanvas::Duple (n->x0(), base_rect->y1()), n->note()->velocity() / 127.0 * base_rect->y1(), 10); } } } void -VelocityGhostRegion::update_note (GhostEvent* note) +VelocityGhostRegion::update_note (GhostEvent* n) { + ArdourCanvas::Lollipop* l = dynamic_cast (n->item); + l->set (ArdourCanvas::Duple (n->event->x0(), base_rect->y1()), n->event->note()->velocity() / 127.0 * base_rect->y1(), 10); } void -VelocityGhostRegion::update_hit (GhostEvent* hit) +VelocityGhostRegion::update_hit (GhostEvent* n) { }