|
Gin
|
Simple MIDI buffer for time-shifting MIDI events within a single thread. More...
#include <gin_midififo.h>
Public Member Functions | |
| MidiFifo ()=default | |
| void | clear () |
| int | getSamplesUsed () |
| void | write (const juce::MidiBuffer &midiSrc, int numSamples) |
| void | read (juce::MidiBuffer &midiDst, int numSamples) |
Simple MIDI buffer for time-shifting MIDI events within a single thread.
MidiFifo provides a simple buffer for storing and retrieving MIDI messages with automatic time offset adjustment. This is NOT thread-safe and should only be used within a single thread for buffering MIDI events across processing boundaries.
Unlike AudioFifo, this is a simple time-shifted buffer that shifts MIDI event timestamps as data is written and read. It's useful for delaying MIDI events or accumulating MIDI across multiple processing blocks.
Key Features:
Thread Safety:
Usage:
|
default |
| void MidiFifo::clear | ( | ) |
| int MidiFifo::getSamplesUsed | ( | ) |