amend massive thinko in last commit (actually works).
authornick_m <mainsbridge@gmail.com>
Fri, 6 Jan 2017 18:28:56 +0000 (05:28 +1100)
committernick_m <mainsbridge@gmail.com>
Fri, 6 Jan 2017 18:28:56 +0000 (05:28 +1100)
libs/ardour/midi_region.cc

index dcd084d2a626cb4e81b917b9d0459cc09fa269d2..7511aadce86b6631665c7a20ca2404eec664ee14 100644 (file)
@@ -111,7 +111,7 @@ MidiRegion::MidiRegion (boost::shared_ptr<const MidiRegion> 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 ();