67 void clear() noexcept;
74 void clear (
int start,
int numSamples);
79 bool isEmpty()
const noexcept;
87 int getNumEvents()
const noexcept;
100 void addEvent (
const MidiMessage& midiMessage,
int sampleNumber);
118 void addEvent (
const void* rawMidiData,
119 int maxBytesOfMidiData,
136 void addEvents (
const MidiBuffer& otherBuffer,
139 int sampleDeltaToAdd);
144 int getFirstEventTime()
const noexcept;
149 int getLastEventTime()
const noexcept;
163 void ensureSize (
size_t minimumNumBytes);
191 void setNextSamplePosition (
int samplePosition) noexcept;
203 int& samplePosition) noexcept;
218 bool getNextEvent (const uint8* &midiData,
219 int& numBytesOfMidiData,
220 int& samplePosition) noexcept;
Holds a resizable array of primitive or copy-by-value objects.
Used to iterate through the events in a MidiBuffer.
Iterator(const Iterator &)=default
Creates a copy of an iterator.
Holds a sequence of time-stamped midi events.
Encapsulates a MIDI message.
#define JUCE_API
This macro is added to all JUCE public class declarations.