6#include <Settings/NamespaceSettings.hpp>
45 return Channel{uint8_t(oneBasedChannel - 1)};
constexpr Channel CHANNEL_2
constexpr Channel CHANNEL_1
constexpr Channel CHANNEL_11
constexpr Channel CHANNEL_10
constexpr Channel CHANNEL_12
constexpr Channel CHANNEL_15
constexpr Channel CHANNEL_6
constexpr Channel CHANNEL_9
constexpr Channel CHANNEL_13
constexpr Channel CHANNEL_3
constexpr Channel CHANNEL_4
constexpr Channel CHANNEL_14
constexpr Channel CHANNEL_5
constexpr Channel CHANNEL_7
constexpr Channel CHANNEL_16
constexpr Channel CHANNEL_8
#define BEGIN_CS_NAMESPACE
A type-safe class for MIDI channels.
Channel & operator+=(uint8_t rhs)
Add an offset.
constexpr Channel(uint8_t zeroBasedChannel)
Create a MIDI Channel object.
Channel operator+(uint8_t rhs) const
Add an offset to a channel.
static constexpr Channel createChannel(uint8_t oneBasedChannel)
Create a channel.
constexpr uint8_t getOneBased() const
Get the channel as an integer.
constexpr bool operator!=(const Channel &rhs) const
Check if two channels are the different.
constexpr uint8_t getRaw() const
Get the channel as an integer.
Channel & operator-=(uint8_t rhs)
Subtract an offset.
Channel operator-(uint8_t rhs) const
Subtract an offset from a channel.
constexpr bool operator==(const Channel &rhs) const
Check if two channels are the same.
Print & operator<<(Print &os, Quaternion e)
Printing.