From f584335f28e9a1cfb3ae9966775e404440261432 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Nov 2021 21:48:26 -0700 Subject: [PATCH] follow Beats API change in MidiRegionView::paste_internal() --- 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 9f58acb5b7..20a76f4730 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -3689,7 +3689,7 @@ MidiRegionView::paste_internal (timepos_t const & pos, unsigned paste_count, flo const Temporal::Beats first_time = (*mcb.notes().begin())->time(); const Temporal::Beats last_time = (*mcb.notes().rbegin())->end_time(); const Temporal::Beats duration = last_time - first_time; - const Temporal::Beats snap_duration = duration.snap_to(snap_beats); + const Temporal::Beats snap_duration = duration.round_to_multiple (snap_beats); const Temporal::Beats paste_offset = snap_duration * int32_t (paste_count); const Temporal::Beats quarter_note = _region->absolute_time_to_source_beats (pos) + paste_offset; Temporal::Beats end_point;