Prices for USB-MIDI host devices typically start from $100. This is an attempt to create a cheap DIY alternative
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
connect-midi scripts.zipScripts for setting up software on the Pi Zero: * connect-midi.sh * connect-midi-loop.shZip Archive - 549.00 bytes - 02/17/2020 at 15:38 |
|
|
MIDI Hub Bottom.stlStandard Tesselated Geometry - 204.98 kB - 02/17/2020 at 13:22 |
|
|
MIDI Hub Top.stlStandard Tesselated Geometry - 140.15 kB - 02/17/2020 at 13:22 |
|
|
MIDI Hub.scadscad - 4.83 kB - 02/17/2020 at 13:22 |
|
I used a NOOBS distribution: https://www.raspberrypi.org/downloads/noobs/
Place the following files on your desktop (/home/pi/Desktop):
PORTS=`aconnect -l | fgrep "client" | fgrep -v "client 0:" | fgrep -v "client 14:" | grep -o "client [0-9]\+:" | grep -o "[0-9]\+"`;
for port1 in $PORTS; do
for port2 in $PORTS; do
if [[ "$port1" != "$port2" ]]; then
aconnect $port1 $port2
fi
done
done
while :; do
/home/pi/Desktop/connect-midi.sh
sleep 1
done
Change permissions for both of these files to allow executing them by running these commands in console:
chmod +x /home/pi/Desktop/connect-midi.sh
chmod +x /home/pi/Desktop/connect-midi-loop.sh
To test if these scripts work connect the USB hub using a USB OTG adapter to the Raspberry Pi. Run this command and then connect multiple MIDI devices to the USB hub to check if MIDI messages sent by one device are received by other devices:
/home/pi/Desktop/connect-midi-loop.sh
Finally, add this to the end of /etc/profile (it'll automatically start running connect-midi-loop.sh in the background when Pi Zero starts up):
/home/pi/Desktop/connect-midi-loop.sh 2> /dev/null &
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates