From 59fcc50b3932b7c6f389451bfa63178208c84255 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 17 Jan 2024 20:56:59 +0300 Subject: added FreeBSD devd script for automatically exposing raw MIDI devices with Jack * you will have to replace `rhaberkorn` with your user name --- jack_umidi.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jack_umidi.conf diff --git a/jack_umidi.conf b/jack_umidi.conf new file mode 100644 index 0000000..ee3e3d3 --- /dev/null +++ b/jack_umidi.conf @@ -0,0 +1,12 @@ +# This automatically spawns jack_umidi for attached MIDI devices. +# This process will stay around even if jackd has not yet been started. +# This means we don't need alsa-seq-server and a2jmidid to integrate MIDI with Jack. +notify 100 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "CREATE"; + match "cdev" "umidi[0-9]+\.[0-9]+"; + + # NOTE: The jackd is usual run as rhaberkorn. + action "/usr/local/sbin/jack_umidi -B -k -C /dev/$cdev -U rhaberkorn"; +}; -- cgit v1.2.3