From aca5d7d98874c692644250dea283c6ee56cd9def Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 8 Sep 2023 16:16:15 -0600 Subject: [PATCH] place lollipops in correct location on timeline It is not immediately clear to me why the + radius expression is reqired --- gtk2_ardour/velocity_ghost_region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/velocity_ghost_region.cc b/gtk2_ardour/velocity_ghost_region.cc index 5328c3a2f8..a346d3b0bc 100644 --- a/gtk2_ardour/velocity_ghost_region.cc +++ b/gtk2_ardour/velocity_ghost_region.cc @@ -151,7 +151,7 @@ VelocityGhostRegion::set_size_and_position (GhostEvent& ev) ArdourCanvas::Lollipop* l = dynamic_cast (ev.item); const double available_height = base_rect->y1(); const double actual_height = (ev.event->note()->velocity() / 127.0) * available_height; - l->set (ArdourCanvas::Duple (ev.event->x0() - 1.0, base_rect->y1() - actual_height), actual_height, lollipop_radius); + l->set (ArdourCanvas::Duple (ev.event->x0() + lollipop_radius, base_rect->y1() - actual_height), actual_height, lollipop_radius); } void