aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-23 23:42:19 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-23 23:42:19 +0300
commit70b7fd4c17864c6ce5f5d883fe2b42b6efe1c100 (patch)
treefa99930753f3abc683cbdd0f1f74a663963c684b /src/adlmidi_private.hpp
parenta8dde37099558dc805dfa07eb870c2baf66f4fec (diff)
downloadlibADLMIDI-70b7fd4c17864c6ce5f5d883fe2b42b6efe1c100.tar.gz
libADLMIDI-70b7fd4c17864c6ce5f5d883fe2b42b6efe1c100.tar.bz2
libADLMIDI-70b7fd4c17864c6ce5f5d883fe2b42b6efe1c100.zip
Experimental time position calculation based on in-track tempo events
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r--src/adlmidi_private.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index a6ea6ae..d7065f8 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -340,9 +340,10 @@ private:
uint8_t subtype;
//! Targeted MIDI channel
uint8_t channel;
-
//! Reserved 5 bytes padding
uint8_t __padding[5];
+ //! Absolute tick position (Used for the tempo calculation only)
+ uint64_t absPosition;
//! Raw data of this event
std::vector<uint8_t> data;
};
@@ -362,6 +363,8 @@ private:
double time;
//! Delay to next event in ticks
uint64_t delay;
+ //! Absolute position in ticks
+ uint64_t absPos;
//! Delay to next event in seconds
double timeDelay;
std::vector<MidiEvent> events;