mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Tempo ramps - fixes bbt wrt frame-locked tempo sections in the tempo dialog
This commit is contained in:
parent
c4fe85dd7c
commit
0f81899280
1 changed files with 7 additions and 2 deletions
|
|
@ -839,13 +839,18 @@ TempoMap::replace_c_func_from_tempo_and_beat (const double& bpm, const double& b
|
|||
|
||||
for (Metrics::iterator i = metrics.begin(); i != metrics.end(); ++i) {
|
||||
if ((t = dynamic_cast<TempoSection*> (*i)) != 0) {
|
||||
if (prev_ts && beat < t->beat()) {
|
||||
if (prev_ts) {
|
||||
prev_ts->set_c_func_from_tempo_and_beat (bpm, beat, _frame_rate);
|
||||
break;
|
||||
|
||||
if (beat < t->beat()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
prev_ts = t;
|
||||
}
|
||||
}
|
||||
/* there is always at least one tempo section */
|
||||
prev_ts->set_c_func_from_tempo_and_beat (bpm, beat, _frame_rate);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue