shithub: rc

Download patch

ref: 8fb8d28470dec5b5ff4ed5782673efd2c01f6604
parent: e4898948fcdc3c3cd715fa88ee83392a9e41a031
author: qwx <qwx@sciops.net>
date: Wed Mar 26 15:23:41 EDT 2025

add custom dmus: sf2 and external usb midi as additional outputs

--- /dev/null
+++ b/bin/dmus
@@ -1,0 +1,17 @@
+#!/bin/rc -b
+#sf2=sc55.v3.7.sf2
+sf2=patch93.sc-55.sf2
+# midipipe -r >/dev/usb/ep10.2/data
+if(test -f /srv/midi)
+	c=( '{' games/mid2s -m '|' tee -a /srv/midi '|' dd -if /dev/zero '}' )
+if not if(test -f /lib/midi/sf2/$sf2)
+	c=(games/sf2mid /lib/midi/sf2/$sf2)
+if not if(test -f /mnt/wad/genmidi)
+	c=(games/dmid '|' games/opl3)
+if not
+	c=(games/midi -c)
+if(~ `{file -m $1} audio/mus)
+	c=(games/mus '<' $1 '|' $c)
+if not
+	c=('<' $1 $c)
+eval $c