Control Surface  1.2.0
MIDI Control Surface library for Arduino
Bank-Button-Matrix.ino

Bank-Button-Matrix

https://github.com/tttapa/Control-Surface/issues/38

Bank<4> bank = {6}; // 4 banks, 6 addresse per banks
IncrementDecrementSelector<4> selector = {bank, {A0, A1}, Wrap::Wrap};
{0, 1, 2},
{3, 4, 5},
}};
bank, //
{2, 3}, // row pins (outputs, driven low-Z low !)
{4, 5, 6}, // column pins (inputs, hi-Z)
notes, //
};
{bank, 7, {notes[0][0], CHANNEL_1}}, //
{bank, 8, {notes[0][1], CHANNEL_1}}, //
{bank, 9, {notes[0][2], CHANNEL_1}}, //
{bank, 10, {notes[1][0], CHANNEL_1}}, //
{bank, 11, {notes[1][1], CHANNEL_1}}, //
{bank, 12, {notes[1][2], CHANNEL_1}}, //
};
void setup() {
}
void loop() {
}
USBMIDI_Interface
A class for MIDI interfaces sending MIDI messages over a USB MIDI connection.
Definition: USBMIDI_Interface.hpp:41
Bank
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
Definition: Bank.hpp:75
Bankable::NoteValueLED
Definition: NoteCCRangeLEDs.hpp:213
IncrementDecrementSelector
Selector with two buttons (one to increment, one to decrement).
Definition: IncrementDecrementSelector.hpp:70
Control_Surface.h
The main header file that includes all Control-Surface header files.
Control_Surface_::loop
void loop()
Update all MIDI elements, send MIDI events and read MIDI input.
Definition: Control_Surface_Class.cpp:68
Wrap
Wrap
An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maxim...
Definition: Selector.hpp:14
Control_Surface
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
Definition: Control_Surface_Class.cpp:203
AddressMatrix
Array2D< uint8_t, nb_rows, nb_cols > AddressMatrix
Definition: Def.hpp:27
Bankable::NoteButtonMatrix
A class of MIDIOutputElements that read the input from a matrix of momentary push buttons or switches...
Definition: Bankable/NoteButtonMatrix.hpp:31
CHANNEL_1
constexpr Channel CHANNEL_1
Definition: Channel.hpp:111
Control_Surface_::begin
void begin()
Initialize the Control_Surface.
Definition: Control_Surface_Class.cpp:25