move ticks per beat from Meter to Timecode::BBT_Time, add new constructor for BBT_Time based on a double value; reduce BeatFramesConverted to 1 liners pending likely removal

git-svn-id: svn://localhost/ardour2/branches/3.0@8277 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-12-14 20:28:37 +00:00
parent ee5a37a306
commit f09524b9d3
13 changed files with 86 additions and 55 deletions

View file

@ -27,6 +27,8 @@ namespace Timecode {
/** Bar, Beat, Tick Time (i.e. Tempo-Based Time) */
struct BBT_Time {
static const double ticks_per_beat;
uint32_t bars;
uint32_t beats;
uint32_t ticks;
@ -36,6 +38,8 @@ struct BBT_Time {
BBT_Time (uint32_t ba, uint32_t be, uint32_t t)
: bars (ba), beats (be), ticks (t) {}
BBT_Time (double beats);
bool operator< (const BBT_Time& other) const {
return bars < other.bars ||