mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
TempoMap::pulse_at_frame() handles separated musical sections as per beat_at_frame().
This commit is contained in:
parent
11431b828e
commit
0b3112f94c
1 changed files with 4 additions and 0 deletions
|
|
@ -1706,6 +1706,10 @@ TempoMap::pulse_at_frame_locked (const Metrics& metrics, const framepos_t& frame
|
||||||
if (prev_t && t->frame() > frame) {
|
if (prev_t && t->frame() > frame) {
|
||||||
/*the previous ts is the one containing the frame */
|
/*the previous ts is the one containing the frame */
|
||||||
const double ret = prev_t->pulse_at_frame (frame, _frame_rate);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
prev_t = t;
|
prev_t = t;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue