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:
parent
4ff8cff024
commit
aca5d7d988
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user