13
0

Tempo ramps - clean up negative beat handling in beats_to_bbt_locked ()

This commit is contained in:
nick_m 2016-03-22 02:55:24 +11:00
parent cab7335d58
commit ba3ae54f51

View File

@ -1599,11 +1599,11 @@ TempoMap::beats_to_bbt (const double& beats)
}
Timecode::BBT_Time
TempoMap::beats_to_bbt_locked (const Metrics& metrics, const double& beats) const
TempoMap::beats_to_bbt_locked (const Metrics& metrics, const double& b) const
{
/* CALLER HOLDS READ LOCK */
MeterSection* prev_ms = 0;
const double beats = (b < 0.0) ? 0.0 : b;
uint32_t accumulated_bars = 0;
double accumulated_beats = 0.0;