OpenShot Audio Library | OpenShotAudio: juce::MidiMessageSequence::MidiEventHolder Class Reference

OpenShot Audio Library | OpenShotAudio 0.3.1

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::MidiMessageSequence::MidiEventHolder Class Reference

`#include <juce_MidiMessageSequence.h>`

## Public Member Functions
| ~MidiEventHolder ()

## Public Attributes
MidiMessage | message
MidiEventHolder * | noteOffObject = nullptr

## 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

Definition at line 67 of file juce_MidiMessageSequence.h.

## Constructor & Destructor Documentation

## ◆ ~MidiEventHolder()

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

Destructor.

Definition at line 28 of file juce_MidiMessageSequence.cpp.

## Member Data Documentation

## ◆ message

MidiMessage juce::MidiMessageSequence::MidiEventHolder::message

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

Definition at line 75 of file juce_MidiMessageSequence.h.

Referenced by juce::MidiMessageSequence::createControllerUpdatesForTime(), and juce::MidiMessageSequence::getTimeOfMatchingKeyUp().

## ◆ 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.

Definition at line 85 of file juce_MidiMessageSequence.h.

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

- juce_MidiMessageSequence.h
- juce_MidiMessageSequence.cpp