25 explicit MidiChannel (
int channelNumber1to16) noexcept : channel ((
uint8_t) channelNumber1to16)
27 jassert (channelNumber1to16 > 0 && channelNumber1to16 <= 16);
31 : channel ((
uint8_t)
static_cast<int> (storedChannel))
37 static MidiChannel fromChannelOrZero (
int channel)
noexcept
39 jassert (channel >= 0 && channel <= 16);
46 int getChannelNumber()
const noexcept {
return (
int) channel; }
48 bool isValid()
const noexcept {
return channel != 0; }
50 bool operator== (
const MidiChannel& other)
const noexcept {
return channel == other.channel; }
51 bool operator!= (
const MidiChannel& other)
const noexcept {
return channel != other.channel; }