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;
147 diff %=
bank.getTracksPerBank();
162 static bool inRange(uint8_t toMatch, uint8_t base, uint8_t length) {
163 return (base <= toMatch) && (toMatch - base < length);
197 default:
return false;
214 uint8_t length)
const {
237 default:
return false;
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
constexpr uint8_t getCableNumber() const
Get the cable number [0, 15].
constexpr bool isValid() const
Check if the MIDI address is valid.
#define BEGIN_CS_NAMESPACE
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Change the offset of the channel number of the element.
constexpr uint8_t getAddress() const
Get the address [0, 127].
Change the offset of the cable number of the element (experimental).
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 getRawChannel() const
Get the channel [0, 15].
A struct for selecting the bank of BankableMIDIInputs and the bank type.
Change the offset of the address (i.e.
constexpr Channel getChannel() const
Get the channel [CHANNEL_1, CHANNEL_16].