Fix incorrect start_pulse in MidiRegion copy-with-offset ctor.
This commit is contained in:
parent
11a68f7dd3
commit
16ae7d9a6d
@ -121,8 +121,8 @@ MidiRegion::MidiRegion (boost::shared_ptr<const MidiRegion> other, frameoffset_t
|
|||||||
, _start_pulse (Properties::start_pulse, 0)
|
, _start_pulse (Properties::start_pulse, 0)
|
||||||
, _length_pulse (Properties::length_pulse, other->_length_pulse)
|
, _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_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_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);
|
update_length_beats (sub_num);
|
||||||
register_properties ();
|
register_properties ();
|
||||||
|
Loading…
Reference in New Issue
Block a user