From 9e048851c1e4629800c5ab33df7bb0a65206cfc3 Mon Sep 17 00:00:00 2001 From: nick_m Date: Sat, 7 Jan 2017 05:28:56 +1100 Subject: amend massive thinko in last commit (actually works). --- libs/ardour/midi_region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index dcd084d2a6..7511aadce8 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -111,7 +111,7 @@ MidiRegion::MidiRegion (boost::shared_ptr other, frameoffset_t _start_beats = (_session.tempo_map().exact_qn_at_frame (other->_position + offset, sub_num) - other->_quarter_note) + other->_start_beats; update_length_beats (sub_num); /* we've potentially shifted _start_beats, now reset _start frames to match */ - _start = _session.tempo_map().frame_at_quarter_note (other->_quarter_note - other->_start_beats); + _start = _session.tempo_map().frames_between_quarter_notes (_quarter_note - _start_beats, _quarter_note); } register_properties (); -- cgit v1.2.3