mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
temporal: when resetting the map, position BBT markers in beat time (and stop reset there)
This commit is contained in:
parent
12b672492e
commit
c505024a4b
1 changed files with 7 additions and 0 deletions
|
|
@ -1275,6 +1275,13 @@ TempoMap::reset_starting_at (superclock_t sc)
|
|||
p->set (sc, metric.meter().quarters_at (p->bbt()), p->bbt());
|
||||
} else {
|
||||
DEBUG_TRACE (DEBUG::MapReset, "\tnot recomputing this one\n");
|
||||
/* Retain the audio time and BBT time for this music
|
||||
time point, but reset the beat time position to
|
||||
reflect the previous tempo & meter.
|
||||
*/
|
||||
p->set (p->sclock(), metric.meter().quarters_at (p->bbt()), p->bbt());
|
||||
/* We reached a BBT marker ... we should stop resetting */
|
||||
break;
|
||||
}
|
||||
|
||||
/* Now ensure that metric is correct moving forward */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue