JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::MidiMessageMetadata Struct Reference

A view of MIDI message data stored in a contiguous buffer. More...

#include "juce_MidiBuffer.h"

Public Member Functions

 MidiMessageMetadata (const uint8 *dataIn, int numBytesIn, int positionIn) noexcept
 
MidiMessage getMessage () const
 Constructs a new MidiMessage instance from the data that this object is viewing.
 

Public Attributes

const uint8data
 Pointer to the first byte of a MIDI message.
 
int numBytes
 The number of bytes in the MIDI message.
 
int samplePosition
 The MIDI message's timestamp.
 

Detailed Description

A view of MIDI message data stored in a contiguous buffer.

Instances of this class do not own the midi data bytes that they point to. Instead, they expect the midi data to live in a separate buffer that outlives the MidiMessageMetadata instance.

@tags{Audio}

Definition at line 36 of file juce_MidiBuffer.h.

Constructor & Destructor Documentation

◆ MidiMessageMetadata()

juce::MidiMessageMetadata::MidiMessageMetadata ( const uint8 dataIn,
int  numBytesIn,
int  positionIn 
)
noexcept

Definition at line 40 of file juce_MidiBuffer.h.

Member Function Documentation

◆ getMessage()

MidiMessage juce::MidiMessageMetadata::getMessage ( ) const

Constructs a new MidiMessage instance from the data that this object is viewing.

Note that MidiMessage owns its data storage, whereas MidiMessageMetadata does not.

Definition at line 49 of file juce_MidiBuffer.h.

Member Data Documentation

◆ data

const uint8* juce::MidiMessageMetadata::data

Pointer to the first byte of a MIDI message.

Definition at line 52 of file juce_MidiBuffer.h.

◆ numBytes

int juce::MidiMessageMetadata::numBytes

The number of bytes in the MIDI message.

Definition at line 55 of file juce_MidiBuffer.h.

◆ samplePosition

int juce::MidiMessageMetadata::samplePosition

The MIDI message's timestamp.

Definition at line 58 of file juce_MidiBuffer.h.


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