diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-09-03 00:46:53 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-09-03 00:46:53 +0300 |
commit | add55f65c5727bfab338be16e6548f9af8756048 (patch) | |
tree | 3955e14974ffacab98a7939e1c23fb637c68fc30 /src/midi_sequencer.hpp | |
parent | 9d34329f81f9d2588c27d828aaaf3a3d5f222da3 (diff) | |
download | libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.tar.gz libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.tar.bz2 libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.zip |
Fixed an incorrect logic of CC121
Issue #227
Diffstat (limited to 'src/midi_sequencer.hpp')
-rw-r--r-- | src/midi_sequencer.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/midi_sequencer.hpp b/src/midi_sequencer.hpp index 7ff864c..69dead8 100644 --- a/src/midi_sequencer.hpp +++ b/src/midi_sequencer.hpp @@ -76,7 +76,7 @@ class BW_MidiSequencer //! System Exclusive message, type 2 T_SYSEX2 = 0xF7,//size == len //! Special event - T_SPECIAL = 0xFF + T_SPECIAL = 0xFF, }; /** * @brief Special MIDI event sub-types @@ -132,18 +132,21 @@ class BW_MidiSequencer //! [Non-Standard] Loop End point with support of multi-loops ST_LOOPSTACK_BREAK = 0xE6,//size == 0 <CUSTOM> //! [Non-Standard] Callback Trigger - ST_CALLBACK_TRIGGER = 0xE7//size == 1 <CUSTOM> + ST_CALLBACK_TRIGGER = 0xE7,//size == 1 <CUSTOM> + + // Built-in hooks + ST_SONG_BEGIN_HOOK = 0x101 }; //! Main type of event - uint8_t type; + uint_fast16_t type; //! Sub-type of the event - uint8_t subtype; + uint_fast16_t subtype; //! Targeted MIDI channel - uint8_t channel; + uint_fast16_t channel; //! Is valid event - uint8_t isValid; + uint_fast16_t isValid; //! Reserved 5 bytes padding - uint8_t __padding[4]; + uint_fast16_t __padding[4]; //! Absolute tick position (Used for the tempo calculation only) uint64_t absPosition; //! Raw data of this event |