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:
Paul Davis 2012-01-02 23:32:33 +00:00
parent 69c7dac1a1
commit f135947606
5 changed files with 320 additions and 409 deletions

View file

@ -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;