A class for saving a MIDI channel and cable number. More...
#include <Def/MIDICNChannelAddress.hpp>
Public Member Functions | |
constexpr | MIDICNChannel () |
constexpr | MIDICNChannel (Channel channel, int cableNumber=0) |
constexpr Channel | getChannel () const |
Get the channel [1, 16]. More... | |
constexpr uint8_t | getRawChannel () const |
Get the channel as an integer [0, 15]. More... | |
constexpr uint8_t | getCableNumber () const |
Get the cable number [0, 15]. More... | |
constexpr bool | isValid () const |
Check if the MIDI address is valid. More... | |
constexpr | operator bool () const |
Check if the MIDI address is valid. More... | |
Static Public Member Functions | |
constexpr static MIDICNChannel | invalid () |
Private Attributes | |
RawMIDICNChannelAddress | addresses |
A class for saving a MIDI channel and cable number.
Definition at line 19 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Definition at line 23 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Definition at line 24 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Get the channel [1, 16].
Definition at line 33 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Get the channel as an integer [0, 15].
Definition at line 38 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Get the cable number [0, 15].
Definition at line 41 of file MIDICNChannelAddress.hpp.
|
inlineconstexpr |
Check if the MIDI address is valid.
Definition at line 44 of file MIDICNChannelAddress.hpp.
|
inlineexplicitconstexpr |
Check if the MIDI address is valid.
Definition at line 48 of file MIDICNChannelAddress.hpp.
|
inlinestaticconstexpr |
Definition at line 50 of file MIDICNChannelAddress.hpp.
|
private |
Definition at line 53 of file MIDICNChannelAddress.hpp.