13
0

TempoMap::pulse_at_frame() handles separated musical sections as per beat_at_frame().

This commit is contained in:
nick_m 2016-08-31 22:45:25 +10:00
parent e82482e8e9
commit b2190cc4ff

View File

@ -1706,6 +1706,10 @@ TempoMap::pulse_at_frame_locked (const Metrics& metrics, const framepos_t& frame
if (prev_t && t->frame() > frame) {
/*the previous ts is the one containing the frame */
const double ret = prev_t->pulse_at_frame (frame, _frame_rate);
/* audio locked section in new meter*/
if (t->pulse() < ret) {
return t->pulse();
}
return ret;
}
prev_t = t;