An iterator to move over contiguous raw MIDI data, which Allows iterating over a MidiBuffer using C++11 range-for syntax.
More...
#include <juce_MidiBuffer.h>
An iterator to move over contiguous raw MIDI data, which Allows iterating over a MidiBuffer using C++11 range-for syntax.
In the following example, we log all three-byte messages in a midi buffer.
{
if (metadata.numBytes == 3)
Logger::writeToLog (metadata.getMessage().getDescription());
}
A multi-channel buffer containing floating point audio samples.
Definition juce_AudioSampleBuffer.h:49
Acts as an application-wide logging class.
Definition juce_Logger.h:56
Holds a sequence of time-stamped midi events.
Definition juce_MidiBuffer.h:160
◆ difference_type
◆ value_type
◆ reference
◆ pointer
◆ iterator_category
◆ MidiBufferIterator() [1/2]
MidiBufferIterator::MidiBufferIterator |
( |
| ) |
|
|
default |
◆ MidiBufferIterator() [2/2]
MidiBufferIterator::MidiBufferIterator |
( |
const uint8 * | dataIn | ) |
|
|
explicitnoexcept |
Constructs an iterator pointing at the message starting at the byte dataIn
.
dataIn
must point to the start of a valid MIDI message. If it does not, calling other member functions on the iterator will result in undefined behaviour.
◆ operator++() [1/2]
Make this iterator point to the next message in the buffer.
◆ operator++() [2/2]
Create a copy of this object, make this iterator point to the next message in the buffer, then return the copy.
◆ operator==()
Return true if this iterator points to the same message as another iterator instance, otherwise return false.
◆ operator!=()
Return false if this iterator points to the same message as another iterator instance, otherwise returns true.
References operator==().
◆ operator*()
reference MidiBufferIterator::operator* |
( |
| ) |
const |
|
noexcept |
Return an instance of MidiMessageMetadata which describes the message to which the iterator is currently pointing.
The documentation for this class was generated from the following file: