How To Create a 4 Port USB Midi Host From a Raspberry Pi

Опубликовано: 11 Февраль 2026
на канале: 61 Key Audio
988
10

I have been busy writing some Python Script to make it easier for you to create your own USB Midi Host from a Raspberry Pi. You can buy dedicated USB Midi Hosts but they can be a little pricey and you only seem to be able to connect one or two devices as a rule. If you have a Raspberry Pi you can create a 4 port USB Midi Host. I will put the code up on my Patreon Channel for you to download if you want to give it a try. In this video I will show you how it works and to paying Patreons you have the extra benefit of having access to the Mapping version that I have created. This gives you ability to choose which of your devices maps to an other device.

I would be careful trying to power too power hungry devices from the Raspberry pi. Devices like the Pro VS Mini and the MPK Mini keyboard are fine, they don't draw much power.

With the mapping version because you need a computer keyboard plugged in to make the mappings; if you want to map 4 devices then do 2 at a time and save the mapping before you connect the next 2 devices. Also exit the mapping script before switching out devices. Once you have mapped all 4 devices reboot the Raspberry pi, it should then pick up all 4 devices.

Timecodes
0:00 The Raspberry Pi
0:30 Copying the Files
0:50 Python Script
0:56 Setting Up Crontab
1:39 Rebooting with Crontab set
2:05 Testing the USB Midi
3:22 Switching to CLI Mode
4:04 Rebooting in CLI
4:33 Testing the USB Midi in CLI mode
5:24 Testing with Multiple USB Midi Devices
7:32 Setting up the Mapping Version
7:51 The Configuration Script
9:39 The Mapping file in Nano
9:46 Setup the Crontab to use the Mapping Version
10:04 Reboot To Test Mapping
10:10 Testing using Multiple USB Midi Devices

Please feel free to show your support, by liking, subscribing and sharing my videos

If you would like to support the channel via becoming a Patreon please visit the link below
  / 61keyaudio  

If you would like to support the channel further you could opt to give me a tip
  / if-you-would-to-127522403  

I will put the download links in the comments

#raspberrypi #raspberrypi3 #midi #usbmidi #usbmidihost