Control Surface
main
MIDI Control Surface library for Arduino
|
This example introduces smart bankable potentiometers to prevent values jumping around when changing banks.
Connect the left terminal of the potentiometer to ground, and the right one to VCC.
The internal pull-up resistors for the push buttons will be enabled.
If you move the potentiometer to, say, 60%, then switch to bank #2, move the potentiometer to 20%, and then switch back to bank #1, the potentiometer will be disabled, until you move it up to 60% again.
This prevents values jumping around in your DAW when cycling through the different banks.
Changing banks is done using the two push buttons. The push button on pin 2 increments the bank number, the push button on pin 3 decrements the bank number.
Select the Arduino as a custom MIDI controller in your DAW, and use the MIDI learn option to assign the potentiometer to a function, change the
bank using the buttons, and map the potentiometer again. It will send the MIDI Control Change Channel Volume parameter for channels 1, 2, 3 and 4 (for banks #1, #2, #3 and #4 respectively).
Written by PieterP, 2020-04-09
https://github.com/tttapa/Control-Surface