JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::midi_ci::ChannelAddress Class Reference

Identifies a channel or set of channels in a multi-group MIDI endpoint. More...

#include <juce_CIChannelAddress.h>

Collaboration diagram for juce::midi_ci::ChannelAddress:

Public Member Functions

ChannelInGroup getChannel () const
 Returns the channel in the group.
 
uint8_t getGroup () const
 Returns the group.
 
bool isBlock () const
 Returns true if this address refers to all channels in the function block containing the specified group.
 
bool isGroup () const
 Returns true if this address refers to all channels in the specified group.
 
bool isSingleChannel () const
 Returns true if this address refers to a single channel.
 
bool operator!= (const ChannelAddress &other) const
 
bool operator< (const ChannelAddress &other) const
 
bool operator<= (const ChannelAddress &other) const
 
bool operator== (const ChannelAddress &other) const
 
bool operator> (const ChannelAddress &other) const
 
bool operator>= (const ChannelAddress &other) const
 
ChannelAddress withChannel (ChannelInGroup c) const
 Returns a copy of this object with the specified channel.
 
ChannelAddress withGroup (int g) const
 Returns a copy of this object with the specified group.
 

Private Member Functions

auto tie () const
 

Private Attributes

ChannelInGroup channel {}
 A set of channels related to specified group.
 
uint8_t group {}
 A group within a MIDI endpoint, where 0 <= group && group < 16.
 

Detailed Description

Identifies a channel or set of channels in a multi-group MIDI endpoint.

@tags{Audio}

Member Function Documentation

◆ getChannel()

ChannelInGroup juce::midi_ci::ChannelAddress::getChannel ( ) const
inline

Returns the channel in the group.

References channel.

◆ getGroup()

uint8_t juce::midi_ci::ChannelAddress::getGroup ( ) const
inline

Returns the group.

References group.

◆ isBlock()

bool juce::midi_ci::ChannelAddress::isBlock ( ) const
inline

Returns true if this address refers to all channels in the function block containing the specified group.

References channel, and juce::midi_ci::wholeBlock.

Referenced by isSingleChannel().

◆ isGroup()

bool juce::midi_ci::ChannelAddress::isGroup ( ) const
inline

Returns true if this address refers to all channels in the specified group.

References channel, and juce::midi_ci::wholeGroup.

Referenced by isSingleChannel().

◆ isSingleChannel()

bool juce::midi_ci::ChannelAddress::isSingleChannel ( ) const
inline

Returns true if this address refers to a single channel.

References isBlock(), and isGroup().

◆ operator!=()

bool juce::midi_ci::ChannelAddress::operator!= ( const ChannelAddress other) const
inline

References operator==().

◆ operator<()

bool juce::midi_ci::ChannelAddress::operator< ( const ChannelAddress other) const
inline

References tie().

◆ operator<=()

bool juce::midi_ci::ChannelAddress::operator<= ( const ChannelAddress other) const
inline

References tie().

◆ operator==()

bool juce::midi_ci::ChannelAddress::operator== ( const ChannelAddress other) const
inline

References tie().

Referenced by operator!=().

◆ operator>()

bool juce::midi_ci::ChannelAddress::operator> ( const ChannelAddress other) const
inline

References tie().

◆ operator>=()

bool juce::midi_ci::ChannelAddress::operator>= ( const ChannelAddress other) const
inline

References tie().

◆ tie()

auto juce::midi_ci::ChannelAddress::tie ( ) const
inlineprivate

References channel, and group.

Referenced by operator<(), operator<=(), operator==(), operator>(), and operator>=().

◆ withChannel()

ChannelAddress juce::midi_ci::ChannelAddress::withChannel ( ChannelInGroup  c) const
inline

Returns a copy of this object with the specified channel.

References channel, and juce::withMember().

◆ withGroup()

ChannelAddress juce::midi_ci::ChannelAddress::withGroup ( int  g) const
inline

Returns a copy of this object with the specified group.

References group, juce::isPositiveAndBelow(), jassert, and juce::withMember().

Member Data Documentation

◆ channel

ChannelInGroup juce::midi_ci::ChannelAddress::channel {}
private

A set of channels related to specified group.

Referenced by getChannel(), isBlock(), isGroup(), tie(), and withChannel().

◆ group

uint8_t juce::midi_ci::ChannelAddress::group {}
private

A group within a MIDI endpoint, where 0 <= group && group < 16.

Referenced by getGroup(), tie(), and withGroup().


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