From 1868c4cac5fbabffee42fa4dd13d608fa5c2e65b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Mar 2021 19:54:51 -0600 Subject: [PATCH] fix drawing percussive notes in MidiRegionView following nutempo SNAFU with relative time calc. --- gtk2_ardour/midi_region_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 4aad3eaab4..7d970d5b23 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1735,7 +1735,7 @@ MidiRegionView::update_hit (Hit* ev, bool update_ghost_regions) boost::shared_ptr note = ev->note(); const timepos_t note_time = _region->source_beats_to_absolute_time (note->time()); - const double x = trackview.editor().time_to_pixel(note_time); + const double x = trackview.editor().time_to_pixel(note_time) - trackview.editor().time_to_pixel (_region->position()); const double diamond_size = std::max(1., floor(note_height()) - 2.); const double y = 1.5 + floor(note_to_y(note->note())) + diamond_size * .5;