place lollipops in correct location on timeline

It is not immediately clear to me why the + radius expression is reqired
This commit is contained in:
Paul Davis 2023-09-08 16:16:15 -06:00
parent 4ff8cff024
commit aca5d7d988
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ VelocityGhostRegion::set_size_and_position (GhostEvent& ev)
ArdourCanvas::Lollipop* l = dynamic_cast<ArdourCanvas::Lollipop*> (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