bbt duration clock tweak.
This commit is contained in:
parent
146072ec61
commit
99fbdee0d8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user