80 using Ptr =
const uint8*;
156 void clear() noexcept;
163 void clear (
int start,
int numSamples);
168 bool isEmpty() const noexcept;
176 int getNumEvents() const noexcept;
191 bool addEvent (const
MidiMessage& midiMessage,
int sampleNumber);
211 bool addEvent (const
void* rawMidiData,
212 int maxBytesOfMidiData,
229 void addEvents (const
MidiBuffer& otherBuffer,
232 int sampleDeltaToAdd);
237 int getFirstEventTime() const noexcept;
242 int getLastEventTime() const noexcept;
256 void ensureSize (
size_t minimumNumBytes);
286 class [[deprecated]] JUCE_API Iterator
297 void setNextSamplePosition (
int samplePosition)
noexcept;
309 int& samplePosition)
noexcept;
324 bool getNextEvent (
const uint8* &midiData,
325 int& numBytesOfMidiData,
326 int& samplePosition)
noexcept;
Holds a resizable array of primitive or copy-by-value objects.
An iterator to move over contiguous raw MIDI data, which Allows iterating over a MidiBuffer using C++...
MidiBufferIterator(const uint8 *dataIn) noexcept
Constructs an iterator pointing at the message starting at the byte dataIn.
Holds a sequence of time-stamped midi events.
MidiBufferIterator cbegin() const noexcept
Get a read-only iterator pointing to the beginning of this buffer.
MidiBufferIterator cend() const noexcept
Get a read-only iterator pointing one past the end of this buffer.
MidiBuffer() noexcept=default
Creates an empty MidiBuffer.
Array< uint8 > data
The raw data holding this buffer.
MidiBufferIterator end() const noexcept
Get a read-only iterator pointing one past the end of this buffer.
Encapsulates a MIDI message.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
const DirectoryEntry & operator*(const DirectoryEntry &e) noexcept
A convenience operator so that the expression *it++ works correctly when it is an instance of RangedD...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
unsigned char uint8
A platform-independent 8-bit unsigned integer type.