commit 03ef2b8d6ed5c589844faf9bdaa9963857e87384
parent 30ce2eab57de9562e6f0a07885859365f83dbe57
Author: falkTX <falktx@gmail.com>
Date: Sat, 25 Jan 2014 14:28:50 +0000
Add BBT info to TimePos struct
Diffstat:
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp
@@ -139,12 +139,36 @@ struct MidiEvent {
struct TimePos {
bool playing;
uint64_t frame;
- double bpm;
+
+ struct BeatBarTick {
+ bool valid;
+
+ int32_t bar; /*!< current bar */
+ int32_t beat; /*!< current beat-within-bar */
+ int32_t tick; /*!< current tick-within-beat */
+ double barStartTick;
+
+ float beatsPerBar; /*!< time signature "numerator" */
+ float beatType; /*!< time signature "denominator" */
+
+ double ticksPerBeat;
+ double beatsPerMinute;
+
+ BeatBarTick() noexcept
+ : valid(false),
+ bar(0),
+ beat(0),
+ tick(0),
+ barStartTick(0.0),
+ beatsPerBar(0.0f),
+ beatType(0.0f),
+ ticksPerBeat(0.0),
+ beatsPerMinute(0.0) {}
+ } bbt;
TimePos() noexcept
: playing(false),
- frame(0),
- bpm(120.0) {}
+ frame(0) {}
};
// -----------------------------------------------------------------------