JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MidiMessageSequence::MidiEventHolder Class Reference

Structure used to hold midi events in the sequence. More...

#include <juce_MidiMessageSequence.h>

Collaboration diagram for juce::MidiMessageSequence::MidiEventHolder:

Public Member Functions

 ~MidiEventHolder ()
 Destructor. More...
 

Public Attributes

MidiMessage message
 The message itself, whose timestamp is used to specify the event's time. More...
 
MidiEventHoldernoteOffObject = nullptr
 The matching note-off event (if this is a note-on event). More...
 

Private Member Functions

 MidiEventHolder (const MidiMessage &)
 
 MidiEventHolder (MidiMessage &&)
 

Friends

class MidiMessageSequence
 

Detailed Description

Structure used to hold midi events in the sequence.

These structures act as 'handles' on the events as they are moved about in the list, and make it quick to find the matching note-offs for note-on events.

See also
MidiMessageSequence::getEventPointer

Constructor & Destructor Documentation

◆ ~MidiEventHolder()

juce::MidiMessageSequence::MidiEventHolder::~MidiEventHolder ( )

Destructor.

◆ MidiEventHolder() [1/2]

juce::MidiMessageSequence::MidiEventHolder::MidiEventHolder ( const MidiMessage )
private

◆ MidiEventHolder() [2/2]

juce::MidiMessageSequence::MidiEventHolder::MidiEventHolder ( MidiMessage &&  )
private

Friends And Related Function Documentation

◆ MidiMessageSequence

friend class MidiMessageSequence
friend

Member Data Documentation

◆ message

MidiMessage juce::MidiMessageSequence::MidiEventHolder::message

The message itself, whose timestamp is used to specify the event's time.

◆ noteOffObject

MidiEventHolder* juce::MidiMessageSequence::MidiEventHolder::noteOffObject = nullptr

The matching note-off event (if this is a note-on event).

If this isn't a note-on, this pointer will be nullptr.

Use the MidiMessageSequence::updateMatchedPairs() method to keep these note-offs up-to-date after events have been moved around in the sequence or deleted.


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