MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
6 #include <Settings/NamespaceSettings.hpp>
38 return Channel{uint8_t(oneBasedChannel - 1)};
107 constexpr
Channel operator"" _ch(
unsigned long long ch) {
constexpr Channel CHANNEL_13
A type-safe class for MIDI channels.
constexpr bool operator==(const Channel &rhs) const
Check if two channels are the same.
constexpr Channel CHANNEL_3
constexpr Channel CHANNEL_6
Channel & operator-=(uint8_t rhs)
Subtract an offset.
#define BEGIN_CS_NAMESPACE
constexpr Channel CHANNEL_11
Channel & operator+=(uint8_t rhs)
Add an offset.
Channel operator-(uint8_t rhs) const
Subtract an offset from a channel.
constexpr Channel CHANNEL_8
constexpr Channel CHANNEL_12
constexpr Channel CHANNEL_7
constexpr Channel CHANNEL_15
constexpr Channel CHANNEL_16
constexpr Channel CHANNEL_5
constexpr Channel CHANNEL_4
constexpr Channel CHANNEL_10
constexpr Channel CHANNEL_9
static constexpr Channel createChannel(uint8_t oneBasedChannel)
Create a channel.
constexpr Channel CHANNEL_14
constexpr Channel(uint8_t zeroBasedChannel)
Create a MIDI Channel object.
constexpr Channel CHANNEL_2
constexpr uint8_t getRaw() const
Get the channel as an integer.
Channel operator+(uint8_t rhs) const
Add an offset to a channel.
constexpr Channel CHANNEL_1