mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
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:
parent
ee5a37a306
commit
f09524b9d3
13 changed files with 86 additions and 55 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue