summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/midi_ring_buffer.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-30 18:33:22 -0500
committerDavid Robillard <d@drobilla.net>2014-11-30 23:56:19 -0500
commit008bfceb77298f21c592a3860d75d5cc4b315e4d (patch)
tree34e19194b2d450daa3b77aa0cf1c3062314bad0e /libs/ardour/ardour/midi_ring_buffer.h
parent0f72ea4a349480cf1272571395f63c10b6152b4f (diff)
Clean up state tracking of raw MIDI.
Diffstat (limited to 'libs/ardour/ardour/midi_ring_buffer.h')
-rw-r--r--libs/ardour/ardour/midi_ring_buffer.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/libs/ardour/ardour/midi_ring_buffer.h b/libs/ardour/ardour/midi_ring_buffer.h
index 78d14b9185..13588e4f04 100644
--- a/libs/ardour/ardour/midi_ring_buffer.h
+++ b/libs/ardour/ardour/midi_ring_buffer.h
@@ -57,25 +57,7 @@ public:
void flush (framepos_t start, framepos_t end);
void reset_tracker ();
- void loop_resolve (MidiBuffer& dst, framepos_t);
-
-protected:
- inline bool is_channel_event(uint8_t event_type_byte) {
- // mask out channel information
- event_type_byte &= 0xF0;
- // midi channel events range from 0x80 to 0xE0
- return (0x80 <= event_type_byte) && (event_type_byte <= 0xE0);
- }
-
- inline bool is_note_on(uint8_t event_type_byte) {
- // mask out channel information
- return (event_type_byte & 0xF0) == MIDI_CMD_NOTE_ON;
- }
-
- inline bool is_note_off(uint8_t event_type_byte) {
- // mask out channel information
- return (event_type_byte & 0xF0) == MIDI_CMD_NOTE_OFF;
- }
+ void loop_resolve (MidiBuffer& dst, framepos_t);
private:
MidiStateTracker _tracker;