NoteChordButton
This is an example of the NoteChordButton
class of the Control_Surface library.
- Boards: 🛈
- AVR, AVR USB, Nano Every, Due, Nano 33 IoT, Nano 33 BLE, UNO R4, Pi Pico, Teensy 3.x, ESP32, ESP8266
Connect 7 momentary push buttons between pins 2-8 and ground. These will play chords when pressed.
Connect a rotary encoder to pins 0 & 1. This will transpose the MIDI chords.
Written by Pieter P, 15-04-2019
https://github.com/tttapa/Control-Surface
};
void setup() {
}
void loop() {
}
constexpr Channel Channel_1
The main header file that includes all Control-Surface header files.
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
A type-safe class for MIDI channels.
void begin()
Initialize the Control_Surface.
void loop()
Update all MIDI elements, send MIDI events and read MIDI input.
Selector that reads from a rotary encoder.
Class for transposing the address of NoteButton and other MIDI elements.
static constexpr setting_t N
A class for MIDI interfaces sending MIDI messages over a USB MIDI connection.
const Chord< 2 > MajorSecondInv
const Chord< 2 > MajorFirstInv
const Chord< 2 > MinorSecondInv
const Chord< 2 > Diminished