Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
One-Pot-Both-PB-and-CC.ino
One-Pot-Both-PB-and-CC
https://github.com/tttapa/Control-Surface/issues/40
#include <
Control_Surface.h
>
USBDebugMIDI_Interface
midi;
Bank<3>
bank;
IncrementDecrementSelector<3>
bankselector {bank, {2, 3},
Wrap::Wrap
};
constexpr
auto
no_address =
MIDIAddress::invalid
();
constexpr
auto
no_channel =
MIDIChannelCable::invalid
();
Bankable::ManyAddresses::CCPotentiometer<3>
ccpots[] {
{bank, A0, {91, no_address, 72}},
{bank, A1, {93, 1, 73}},
{bank, A2, {92, 2, 74}},
{bank, A3, {95, 5, 70}},
};
Bankable::ManyAddresses::PBPotentiometer<3>
pbpot {
bank,
A0,
{no_channel,
Channel_1
, no_channel},
};
void
setup() {
Control_Surface
.
begin
();
}
void
loop() {
Control_Surface
.
loop
();
}
Channel_1
constexpr Channel Channel_1
Definition
Channel.hpp:118
Control_Surface.h
The main header file that includes all Control-Surface header files.
Control_Surface
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
Definition
Control_Surface_Class.cpp:338
Wrap::Wrap
@ Wrap
When the maximum (minimum) setting is reached, wrap around to the minimum (maximum) setting.
Bank
A class that groups Bankable MIDI Output Elements and Bankable MIDI Input Elements,...
Definition
Bank.hpp:94
Bankable::ManyAddresses::CCPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition
ManyAddresses/CCPotentiometer.hpp:29
Bankable::ManyAddresses::PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition
ManyAddresses/PBPotentiometer.hpp:34
Control_Surface_::begin
void begin()
Initialize the Control_Surface.
Definition
Control_Surface_Class.cpp:22
Control_Surface_::loop
void loop()
Update all MIDI elements, send MIDI events and read MIDI input.
Definition
Control_Surface_Class.cpp:71
IncrementDecrementSelector
Selector with two buttons (one to increment, one to decrement).
Definition
IncrementDecrementSelector.hpp:69
MIDIAddress::invalid
static constexpr MIDIAddress invalid()
Return an invalid address.
Definition
MIDIAddress.hpp:250
MIDIChannelCable::invalid
static constexpr MIDIChannelCable invalid()
Definition
MIDIAddress.hpp:35
USBDebugMIDI_Interface
A class for debug MIDI interfaces sending and receiving human-readable MIDI messages over the USB CDC...
Definition
DebugMIDI_Interface.hpp:318
Generated by
1.10.0