# Midihub functionality on Patchbox OS?

**URL:** <https://community.blokas.io/t/midihub-functionality-on-patchbox-os/2113>\
**Category:** Patchbox OS\
**Created:** [August 18, 2020, 3:50am UTC](https://community.blokas.io/t/midihub-functionality-on-patchbox-os/2113 "2020-08-18T03:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cowboy](https://community.blokas.io/user_avatar/community.blokas.io/cowboy/32/1367_2.png) [@cowboy](https://community.blokas.io/u/cowboy)\
**Post date:** [August 18, 2020, 3:50am UTC](https://community.blokas.io/t/midihub-functionality-on-patchbox-os/2113/1 "2020-08-18T03:50:13Z")

</div>

I actually aready have a Midihub, but I’m currently dealing with a small handful of USB MIDI Devices (and not DIN MIDI) so I was going to follow this [Raspberry Pi USB MIDI host guide](https://neuma.studio/rpi-midi-complete.html).

However, is there anything like Midihub functionality for Patchbox OS? Because I’d rather give that a try first, if it exists!

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [August 18, 2020, 6:44am UTC](https://community.blokas.io/t/midihub-functionality-on-patchbox-os/2113/2 "2020-08-18T06:44:21Z")

</div>

We have `amidiauto` built in, it allows for setting up MIDI device routings, see this thread for some ideas of what it can do: [Midi connection manager](https://community.blokas.io/t/midi-connection-manager/567/7). It also reacts to dynamic device changes, so it will make the routing any time you connect the device.

By default, it connects all hardware MIDI ports to software ones, which covers the most common use case of running some audio software to produce sounds, and using MIDI hardware for playing. If routings between hardware devices are needed, then it must be configured in the `/etc/amidiauto.conf` file, and the service restarted using `sudo systemctl restart amidiauto`

The only thing missing in `amidiauto` is handling of multiport devices, it connects only the very first port of a device to other things.
