mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
intermediate commit as all tempo/meter stuff starts to walk the precompute Bars|Beats list. Still have ::round_to_beat_subdivision() to fix. haven't really done any thorough testing at this point, but basic stuff seems OK
git-svn-id: svn://localhost/ardour2/branches/3.0@11131 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
69c7dac1a1
commit
f135947606
5 changed files with 320 additions and 409 deletions
|
|
@ -46,6 +46,24 @@ struct BBT_Time {
|
|||
(bars == other.bars && beats < other.beats) ||
|
||||
(bars == other.bars && beats == other.beats && ticks < other.ticks);
|
||||
}
|
||||
|
||||
bool operator<= (const BBT_Time& other) const {
|
||||
return bars < other.bars ||
|
||||
(bars <= other.bars && beats <= other.beats) ||
|
||||
(bars <= other.bars && beats <= other.beats && ticks <= other.ticks);
|
||||
}
|
||||
|
||||
bool operator> (const BBT_Time& other) const {
|
||||
return bars > other.bars ||
|
||||
(bars == other.bars && beats > other.beats) ||
|
||||
(bars == other.bars && beats == other.beats && ticks > other.ticks);
|
||||
}
|
||||
|
||||
bool operator>= (const BBT_Time& other) const {
|
||||
return bars > other.bars ||
|
||||
(bars >= other.bars && beats >= other.beats) ||
|
||||
(bars >= other.bars && beats >= other.beats && ticks >= other.ticks);
|
||||
}
|
||||
|
||||
bool operator== (const BBT_Time& other) const {
|
||||
return bars == other.bars && beats == other.beats && ticks == other.ticks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue