diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-31 05:05:30 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-31 23:12:11 +1000 |
commit | 16ae7d9a6d846fa692cbe1f70566d219e913f66e (patch) | |
tree | 04e4cfec08f4dd911e2260b5d9e0cf1fd05542fc /libs/ardour/midi_region.cc | |
parent | 11a68f7dd38e72c3e497569a60cb0740a33b78cf (diff) |
Fix incorrect start_pulse in MidiRegion copy-with-offset ctor.
Diffstat (limited to 'libs/ardour/midi_region.cc')
-rw-r--r-- | libs/ardour/midi_region.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index eb06a6eee3..57c78e312f 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -121,8 +121,8 @@ MidiRegion::MidiRegion (boost::shared_ptr<const MidiRegion> other, frameoffset_t , _start_pulse (Properties::start_pulse, 0) , _length_pulse (Properties::length_pulse, other->_length_pulse) { - _start_beats = Evoral::Beats (_session.tempo_map().exact_beat_at_frame ((other->_position + offset), sub_num) - other->beat()) + other->_start_beats; - _start_pulse = (_session.tempo_map().exact_qn_at_frame (other->_position + offset, sub_num) / 4.0) - (other->pulse() + other->_start_pulse); + _start_beats = Evoral::Beats (_session.tempo_map().exact_beat_at_frame (other->_position + offset, sub_num) - other->beat()) + other->_start_beats; + _start_pulse = ((_session.tempo_map().exact_qn_at_frame (other->_position + offset, sub_num) / 4.0) - other->_pulse) + other->_start_pulse; update_length_beats (sub_num); register_properties (); |