|
Control Surface
main
MIDI Control Surface library for Arduino
|
This example shows how to dynamically enable or disable specific MIDI elements.
The internal pull-up resistor for the button will be enabled automatically. Connect the left terminal of the potentiometer to ground, and the right one to VCC.
At program start-up, the potentiometer is enabled, and it sends MIDI Pitch Bend messages when its position changes. By pressing the push button, the potentiometer is disabled (this is indicated by the on-board LED turning off). When disabled, Control Surface stops sampling the analog input of the potentiometer, and no Pitch Bend messages are sent for this MIDI output element (any other elements are unaffected). Pressing the push button again enables the potentiometer again.
Written by PieterP, 2018-07-26
https://github.com/tttapa/Control-Surface