Hi there,
I was thinking of making a midi controller that has a host, such as a leonardo board, to transmit midi over usb using serial reads from a controller that doesn't have usb by default, such as an uno.
for example, the code that would be programmed on the uno would be
`#include <Control_Surface.h>
AnalogMultiplex<8> mux {A0, {2, 3, 4}};
CCPotentiometer potentiometers[] {
{mux.pin(0), {0x00, CHANNEL_1}},
{mux.pin(1), {0x01, CHANNEL_1}},
{mux.pin(2), {0x02, CHANNEL_1}},
{mux.pin(3), {0x03, CHANNEL_1}},
{mux.pin(4), {0x04, CHANNEL_1}},
{mux.pin(5), {0x05, CHANNEL_1}},
{mux.pin(6), {0x06, CHANNEL_1}},
{mux.pin(7), {0x07, CHANNEL_1}},
};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}`
What code would I need to write to the leonardo to make this transmit the data over its usb to use in midi software? and what would be needed to be added to the uno code?
is it even possible? and if so is it feasible for chaining midi or is it not worth it due to speed limitations etc?