MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
20 template <setting_t N>
76 bank.getTracksPerBank();
79 bank.getTracksPerBank();
82 bank.getTracksPerBank();
114 uint8_t diff = toMatch - base;
115 return toMatch >= base && diff < N *
bank.getTracksPerBank() &&
116 diff %
bank.getTracksPerBank() == 0;
133 uint8_t length)
const {
134 uint8_t diff = toMatch - base;
135 return toMatch >= base && diff < N *
bank.getTracksPerBank() &&
136 diff %
bank.getTracksPerBank() < length;
146 diff %=
bank.getTracksPerBank();
161 static bool inRange(uint8_t toMatch, uint8_t base, uint8_t length) {
162 return (base <= toMatch) && (toMatch - base < length);
196 default:
return false;
213 uint8_t length)
const {
237 default:
return false;
constexpr uint8_t getRawChannel() const
Get the channel as an integer [0, 15].
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
constexpr Cable getCableNumber() const
Get the cable number [CABLE_1, CABLE_16].
#define BEGIN_CS_NAMESPACE
@ CHANGE_CHANNEL
Change the offset of the channel number of the element.
constexpr bool isValid() const
Check if the MIDI address is valid.
@ CHANGE_CABLENB
Change the offset of the cable number of the element.
BankType
An enumeration of the different bank types.
uint8_t setting_t
The type used for Selectors.
A class that can be inherited from to allow inserting into a DoublyLinkedList.
constexpr uint8_t getAddress() const
Get the address [0, 127].
constexpr Channel getChannel() const
Get the channel [CHANNEL_1, CHANNEL_16].
constexpr uint8_t getRawCableNumber() const
Get the cable number as an integer [0, 15].
@ CHANGE_ADDRESS
Change the offset of the address (i.e.