JUCE  v5.1.1-3-g1a0b28c73
JUCE API
MidiDataConcatenator Class Reference

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>

Collaboration diagram for MidiDataConcatenator:

Public Member Functions

 MidiDataConcatenator (const 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)
 

Private Attributes

int pendingBytes
 
MemoryBlock pendingData
 
double pendingDataTime
 
uint8 runningStatus
 

Detailed Description

Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback.

Constructor & Destructor Documentation

◆ MidiDataConcatenator()

MidiDataConcatenator::MidiDataConcatenator ( const int  initialBufferSize)
inline

Member Function Documentation

◆ processSysex()

template<typename UserDataType , typename CallbackType >
void MidiDataConcatenator::processSysex ( const uint8 *&  d,
int numBytes,
double  time,
UserDataType *  input,
CallbackType &  callback 
)
inlineprivate

◆ pushMidiData()

template<typename UserDataType , typename CallbackType >
void MidiDataConcatenator::pushMidiData ( const void *  inputData,
int  numBytes,
double  time,
UserDataType *  input,
CallbackType &  callback 
)
inline

◆ reset()

void MidiDataConcatenator::reset ( )
inline

Member Data Documentation

◆ pendingBytes

int MidiDataConcatenator::pendingBytes
private

Referenced by processSysex(), pushMidiData(), and reset().

◆ pendingData

MemoryBlock MidiDataConcatenator::pendingData
private

Referenced by processSysex().

◆ pendingDataTime

double MidiDataConcatenator::pendingDataTime
private

Referenced by processSysex(), and reset().

◆ runningStatus

uint8 MidiDataConcatenator::runningStatus
private

Referenced by pushMidiData(), and reset().


The documentation for this class was generated from the following file: