Closed WORRYL3SS closed 5 years ago
Thank you so much for this one . I still have and issue though , my device is being recognized as a midi device , from the midi monitor but when i move the sliders around nothing happens ,values don't change. Here is the code that you send me to check , changed a bit accordingly to my schematic .
// Create an instance of 'AnalogMultiplex' with the output pin of the multiplexer connected to // analog input pin A1 and the address pins connected to pins 4, 5 ,6 and 7 (because my mux is 16 channel). AnalogMultiplex multiplexer(A1, { 4, 5, 6, 7 } );
// Create 12 new instances of the class 'Analog', on the 12 pins of the multiplexer, // that send MIDI messages with controller 7 (channel volume) on channels 1 - 12 Analog potentiometers[] = { {multiplexer.pin(0), MIDI_CC::Channel_Volume, 1}, {multiplexer.pin(1), MIDI_CC::Channel_Volume, 2}, {multiplexer.pin(2), MIDI_CC::Channel_Volume, 3}, {multiplexer.pin(3), MIDI_CC::Channel_Volume, 4}, {multiplexer.pin(4), MIDI_CC::Channel_Volume, 5}, {multiplexer.pin(5), MIDI_CC::Channel_Volume, 6}, {multiplexer.pin(6), MIDI_CC::Channel_Volume, 7}, {multiplexer.pin(7), MIDI_CC::Channel_Volume, 8}, {multiplexer.pin(8), MIDI_CC::Channel_Volume, 9}, {multiplexer.pin(9), MIDI_CC::Channel_Volume, 10}, {multiplexer.pin(10), MIDI_CC::Channel_Volume, 11}, {multiplexer.pin(11), MIDI_CC::Channel_Volume, 12} };
void setup() {}
void loop() { // Refresh the MIDI controller (check whether the potentiometer's input has changed since last time, if so, send the new value over MIDI) MIDI_Controller.refresh(); }
Should I add something more in order to be able to see the values changing ?
Do you get constant values or no values at all? Is the multiplexer enabled?
Hello I need help with the multiplexers, ttapa can you contact me with private please ??
I have a issue trying to make a MIDI Controller device with an arduino leonardo micro pro and a HP4067 multiplexer. I have 12 potensionmeters connected on the mux . I can read the pot values throught the multiplexer on the serial monitor . I can't convert these to midi-usb , i have tried a lot of codes online but none worked here is the one i've been trying now :
The problem with this one is that when i move the sliders , instead of seeing the value being changed , i see the control channel being changed ! Can you help with this one or suggest me another code so i can make it work ?