Max Midi Output to External Device USB Midi Input

Yukonnor's icon

Sorry for the newbie question, but I'm pretty stumped on this after reading through Max Tutorials and the forum. Hopefully this helps others out there with the same question.

I'd like to build a 'virtual' midi controller in my Max Project to send MIDI data to an external device's USB MIDI input via USB cable. The external device is a Raspberry Pi the is running a patch that is controllable via a USB midi interface. I'd like to replace the usb midi controller hardware with a Max project that I can automate, etc.

Midi data flow: Max > Mac's USB port > USB cable > USB Midi Input of external device.

I'm running mac OSX10.15 and using the latest version of Max 8.

Does anyone have any hints that could point me in the right direction or maybe even an example patch showing how this could be accomplished?

I'm terribly sorry if this information is already out there. I've spent a good amount of time searching and haven't found an exact match. I'm new to both max and hardware serial connections, so maybe the information is out there but in language that went over my head :)

Source Audio's icon

Midi can not be sent to a "cable" .
It can be sent through midi interface, being hardware usb type or network type

Yukonnor's icon

Thanks, source audio. That seemed to be the hint I needed :)

I believe I will need to do the following:
Max Patch > Midiout Object > Midi Interface (ex: Roland UM-One) > USB Midi Host (ex: Kenton MIDI USB Host mkII) > USB Midi Input of external device.

My fingers were crossed that I could avoid using two pieces of external hardware to convert the midi data, but I'm happy with that solution if that's possible! If anyone happens to know of any other solutions, I'm all ears.

Source Audio's icon

why don't you try network based solution ?
Is that the limit of that software which is only able to receive midi through usb Midi Interface ?
would be hard to believe...
Just google raspberry network midi , rtpmidi or similar

Source Audio's icon

When I read carefully :
The external device is a Raspberry Pi the is running a patch that is controllable via a USB midi interface

Are you using pd ?
Than I would use UDP and just send raw midi.
If you can confirm that you use pd, that it can udp,
than all would be easy