November 11, 2020
Description
#include
USBMIDI_Interface midi;
// The potentiometers are sharing 5V and Ground, the middle pin of each pot goes to analog 0 - 4
CCPotentiometer pot = { A0, {MIDI_CC::Effects_1, CHANNEL_1} };
CCPotentiometer pot2 = { A1, {MIDI_CC::Effects_2 , CHANNEL_1} };
CCPotentiometer pot3 = { A2, {MIDI_CC::Effects_3 , CHANNEL_1} };
CCPotentiometer pot4 = { A3, {MIDI_CC::Effects_4 , CHANNEL_1} };
CCPotentiometer pot5 = { A4, {MIDI_CC::Effects_5 , CHANNEL_1} };
// The buttons are sharing Ground, and the other pin goes to arduino pin 1 - 5
CCButtonLatched but1 = { 1, {MIDI_CC::General_Purpose_Controller_1, CHANNEL_1},};
CCButtonLatched but2 = { 2, {MIDI_CC::General_Purpose_Controller_2 , CHANNEL_1},};
CCButtonLatched but3 = { 3, {MIDI_CC::General_Purpose_Controller_3 , CHANNEL_1},};
CCButtonLatched but4 = { 4, {MIDI_CC::General_Purpose_Controller_4 , CHANNEL_1},};
CCButtonLatched but5 = { 5, {MIDI_CC::General_Purpose_Controller_5 , CHANNEL_1},};
void setup() {
// Use the Mackie Control protocol for sending relative MIDI CC messages. Bias FX won't work without this.
RelativeCCSender::setMode(MACKIE_CONTROL_RELATIVE);
----------------------------------
After the sketch has been uploaded to your arduino and everything is working, you can assign the different controls to whatever parameters inside Bias FX 2. Make sure that Leonardo Arduino is selected as your MIDI controller.License:
Creative Commons - Attribution - Non-Commercial - Share Alike