Hi Ive been busy with Evans project (https://www.youtube.com/watch?v=4iOyT_pyUXc&feature=emb_logo) and got it working. However I need to extend the midi to allow me to change other synth controls.
I want to add 2 more potentiometers as below to control echo or reverb or any other effect.
Ive added 2 pots to the board on A2 and A3.
Also want to be able to change the preset sound to other sounds.
Can someone please let me know how to do this the code in arduino is:
Thanks in advance.
#include “MIDI_Controller.h” // Include the library
const int c = 60;
const uint8_t velocity = 0b1111111; // Maximum velocity (0b1111111 = 0x7F = 127)
const uint8_t addresses[3][4] = { // button keymap
{c+0, c-5, c+2, c+3},
{c+4, c+5, c+6, c+7},
{c+12, c+9, c+14, c+11},
};
ButtonMatrix<3, 4> buttonmatrix({7, 6,5}, {11, 10, 9, 8} , addresses, 1, velocity);
// Create a new instance of the class ‘Analog’, called ‘potentiometer’, on pin A0,
// that sends MIDI messages with controller 7 (channel volume) on channel 1
Analog potentiometer1(A0, MIDI_CC::Channel_Volume, 1);
// Create a new instance of the class ‘AnalogHiRes’, called ‘potentiometer’, on pin A1,
// that sends MIDI Pitch Bend messages on channel 1
AnalogHiRes potentiometer2(A1, 1);
// Create a new instance of the class ‘?’, called ‘potentiometer’, on pin A2,
// that sends ??? on channel 1 Reverb
Analog potentiometer3(A2, MIDI_CC::Reverb, 1);
// Create a new instance of the class ‘?’, called ‘potentiometer’, on pin A3,
// that sends ??? on channel 1 Echo
Analog potentiometer4(A3, MIDI_CC::Echo, 1);
void setup() {}
void loop() {
MIDI_Controller.refresh();
}