Learn How to Build a MIDI Controller! This is a MIDI controller and not a standalone mixer; requires software to control. Features 26 retro arcade game butttons with color options 96 assignable buttons accessible via 4 banks 20 assignable potentiometers accessible via 4 banks Dedicated Bank Select buttons Ultra-compact design lets you create anywhere USB-powered;…
// Function that checks if a given button is pressed
auto checkButtonPressed = [](const Bankable::NoteButton &button) {
return button.getButtonState() == Button::Pressed;
};
// If any of the push buttons is pressed
bool pressed = std::any_of(std::begin(muteButtons), std::end(muteButtons),
checkButtonPressed);
// Turn on the LED
digitalWrite(ledPin, pressed);
}