Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback. More...
#include <juce_MidiDataConcatenator.h>
Public Member Functions | |
MidiDataConcatenator (int initialBufferSize) | |
template<typename UserDataType , typename CallbackType > | |
void | pushMidiData (const void *inputData, int numBytes, double time, UserDataType *input, CallbackType &callback) |
void | reset () |
Private Member Functions | |
template<typename UserDataType , typename CallbackType > | |
void | processSysex (const uint8 *&d, int &numBytes, double time, UserDataType *input, CallbackType &callback) |
Static Private Member Functions | |
static bool | isInitialByte (uint8 byte) |
static bool | isRealtimeMessage (uint8 byte) |
static bool | isStatusByte (uint8 byte) |
Private Attributes | |
uint8 | currentMessage [3] |
int | currentMessageLen = 0 |
MemoryBlock | pendingSysexData |
int | pendingSysexSize = 0 |
double | pendingSysexTime = 0 |
Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback.
@tags{Audio}
|
inline |
References isStatusByte().
Referenced by pushMidiData().
Referenced by pushMidiData().
Referenced by isInitialByte(), and processSysex().
|
inlineprivate |
References juce::MemoryBlock::ensureSize(), juce::MemoryBlock::getData(), juce::gl::input, isStatusByte(), juce::gl::m, pendingSysexData, pendingSysexSize, pendingSysexTime, and juce::UnitTestCategories::time.
Referenced by pushMidiData().
|
inline |
|
inline |
References currentMessageLen, pendingSysexSize, and pendingSysexTime.
|
private |
Referenced by pushMidiData().
|
private |
Referenced by pushMidiData(), and reset().
|
private |
Referenced by processSysex().
|
private |
Referenced by processSysex(), pushMidiData(), and reset().
|
private |
Referenced by processSysex(), and reset().