TracktionEngine
Loading...
Searching...
No Matches
engine::MidiChannel Struct Reference

Represents a MIDI channel 1-16, and also contains extra ID bits to encode info about the event's origin. More...

#include <tracktion_MidiChannel.h>

Public Member Functions

 MidiChannel ()=default
 MidiChannel (const MidiChannel &)=default
MidiChannel & operator= (const MidiChannel &)=default
 MidiChannel (int channelNumber1to16) noexcept
 MidiChannel (const juce::var &storedChannel) noexcept
int getChannelNumber () const noexcept
bool isValid () const noexcept
bool operator== (const MidiChannel &other) const noexcept
bool operator!= (const MidiChannel &other) const noexcept
 operator juce::var () const

Static Public Member Functions

static MidiChannel fromChannelOrZero (int channel) noexcept

Detailed Description

Represents a MIDI channel 1-16, and also contains extra ID bits to encode info about the event's origin.

Constructor & Destructor Documentation

◆ MidiChannel() [1/4]

engine::MidiChannel::MidiChannel ( )
default

◆ MidiChannel() [2/4]

engine::MidiChannel::MidiChannel ( const MidiChannel & )
default

References MidiChannel().

◆ MidiChannel() [3/4]

engine::MidiChannel::MidiChannel ( int channelNumber1to16)
explicitnoexcept

◆ MidiChannel() [4/4]

engine::MidiChannel::MidiChannel ( const juce::var & storedChannel)
explicitnoexcept

References isValid().

Member Function Documentation

◆ operator=()

MidiChannel & engine::MidiChannel::operator= ( const MidiChannel & )
default

References MidiChannel().

◆ fromChannelOrZero()

MidiChannel engine::MidiChannel::fromChannelOrZero ( int channel)
staticnoexcept

References MidiChannel().

◆ getChannelNumber()

int engine::MidiChannel::getChannelNumber ( ) const
noexcept

Referenced by operator juce::var().

◆ isValid()

bool engine::MidiChannel::isValid ( ) const
noexcept

Referenced by MidiChannel().

◆ operator==()

bool engine::MidiChannel::operator== ( const MidiChannel & other) const
noexcept

References MidiChannel().

◆ operator!=()

bool engine::MidiChannel::operator!= ( const MidiChannel & other) const
noexcept

References MidiChannel().

◆ operator juce::var()

engine::MidiChannel::operator juce::var ( ) const

References getChannelNumber().


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