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