mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
BBT duration clock can only compare musical times.
This commit is contained in:
parent
8ae0c1b36c
commit
a32aea4201
1 changed files with 4 additions and 0 deletions
|
|
@ -1254,6 +1254,10 @@ AudioClock::set_bbt (framepos_t when, framecnt_t offset, bool /*force*/)
|
||||||
BBT.ticks = 0;
|
BBT.ticks = 0;
|
||||||
} else {
|
} else {
|
||||||
TempoMap& tmap (_session->tempo_map());
|
TempoMap& tmap (_session->tempo_map());
|
||||||
|
|
||||||
|
/* if offset is before beat 0, it is meaningless */
|
||||||
|
offset = max (offset, tmap.frame_at_beat (0.0));
|
||||||
|
|
||||||
const double divisions = tmap.meter_section_at_frame (offset).divisions_per_bar();
|
const double divisions = tmap.meter_section_at_frame (offset).divisions_per_bar();
|
||||||
Timecode::BBT_Time sub_bbt;
|
Timecode::BBT_Time sub_bbt;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue