diff options
author | nick_m <mainsbridge@gmail.com> | 2017-01-07 05:28:56 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-01-07 05:28:56 +1100 |
commit | 9e048851c1e4629800c5ab33df7bb0a65206cfc3 (patch) | |
tree | b225157ebf19e1f2137242c4f6bd93d2af50a9e6 /libs/ardour | |
parent | bacb93493df5c6baee5cc1e23a98e31646480309 (diff) |
amend massive thinko in last commit (actually works).
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/midi_region.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<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 (); |