#include <Def/Channel.hpp>
◆ Channel()
constexpr Channel |
( |
uint8_t | zeroBasedChannel | ) |
|
|
inlineexplicitconstexpr |
Create a MIDI Channel object.
- Parameters
-
zeroBasedChannel | The zero-based channel (0 is the first channel). |
Definition at line 21 of file Channel.hpp.
◆ getRaw()
constexpr uint8_t getRaw |
( |
| ) |
const |
|
inlineconstexpr |
Get the channel as an integer.
- Returns
- The zero-based channel (0 is the first channel).
Definition at line 29 of file Channel.hpp.
◆ getOneBased()
constexpr uint8_t getOneBased |
( |
| ) |
const |
|
inlineconstexpr |
◆ createChannel()
static constexpr Channel createChannel |
( |
uint8_t | oneBasedChannel | ) |
|
|
inlinestaticconstexpr |
Create a channel.
- Parameters
-
oneBasedChannel | The channel number (1 is the first channel). |
Definition at line 44 of file Channel.hpp.
◆ operator==()
constexpr bool operator== |
( |
const Channel & | rhs | ) |
const |
|
inlineconstexpr |
Check if two channels are the same.
- Parameters
-
rhs | The other channel to compare this channel to. |
Definition at line 54 of file Channel.hpp.
◆ operator!=()
constexpr bool operator!= |
( |
const Channel & | rhs | ) |
const |
|
inlineconstexpr |
Check if two channels are the different.
- Parameters
-
rhs | The other channel to compare this channel to. |
Definition at line 64 of file Channel.hpp.
◆ operator+=()
Channel & operator+= |
( |
uint8_t | rhs | ) |
|
|
inline |
Add an offset.
- Parameters
-
rhs | The offset to add to this channel. |
Definition at line 74 of file Channel.hpp.
◆ operator+()
Channel operator+ |
( |
uint8_t | rhs | ) |
const |
|
inline |
Add an offset to a channel.
- Parameters
-
rhs | The offset to add to the channel. |
Definition at line 85 of file Channel.hpp.
◆ operator-=()
Channel & operator-= |
( |
uint8_t | rhs | ) |
|
|
inline |
Subtract an offset.
- Parameters
-
rhs | The offset to subtract from this channel. |
Definition at line 97 of file Channel.hpp.
◆ operator-()
Channel operator- |
( |
uint8_t | rhs | ) |
const |
|
inline |
Subtract an offset from a channel.
- Parameters
-
rhs | The offset to subtract from the channel. |
Definition at line 108 of file Channel.hpp.
◆ zeroBasedChannel
The documentation for this class was generated from the following file: