13
0

bbt duration clock tweak.

This commit is contained in:
nick_m 2016-10-21 02:49:04 +11:00
parent 146072ec61
commit 99fbdee0d8

View File

@ -1246,10 +1246,6 @@ AudioClock::set_bbt (framepos_t when, framecnt_t offset, bool /*force*/)
negative = true;
}
if (offset == 0) {
offset = bbt_reference_time;
}
/* handle a common case */
if (is_duration) {
if (when == 0) {
@ -1259,6 +1255,10 @@ AudioClock::set_bbt (framepos_t when, framecnt_t offset, bool /*force*/)
} else {
TempoMap& tmap (_session->tempo_map());
if (offset == 0) {
offset = bbt_reference_time;
}
const double divisions = tmap.meter_section_at_frame (offset).divisions_per_bar();
Timecode::BBT_Time sub_bbt;