Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> frame_at_bbt()

This commit is contained in:
nick_m 2016-05-27 03:22:24 +10:00
parent b564f07635
commit 34c9ac9dd7
14 changed files with 62 additions and 52 deletions

View file

@ -402,9 +402,8 @@ BasicUI::jump_by_seconds (double secs)
void
BasicUI::jump_by_bars (double bars)
{
Timecode::BBT_Time bbt;
TempoMap& tmap (session->tempo_map());
tmap.bbt_time (session->transport_frame(), bbt);
Timecode::BBT_Time bbt (tmap.bbt_at_frame (session->transport_frame()));
bars += bbt.bars;
if (bars < 0) bars = 0;