On Sun, Oct 25, 1998 at 08:56:55PM -0500, Paul Winkler wrote:
> One question, if anyone's listening: Does anyone know if there's a way
> to have a soft-synth (like RTSynth) receiving MIDI events on one
> channel, while another application listens on another channel? I can't
> figure out how to get anything other than "/dev/midi: device or resource
> busy". Is this do-able with OSS drivers (the commercial ones)?
That is definately a job for an application. I don't think the driver
should care about the MIDI protocol and sending different channels to
different devices..
Since I like MIDI programming (it's so simple) I hacked up such an
app:
http://www.update.uu.se/~sk/midichan.html
(it needs GLib; currently, due to my limited autoconf abilities, it
needs GLib 1.1.0 or higher.. that will be fixed)
So your thing would be something like:
mkfifo /tmp/midi1
mkfifo /tmp/midi2
RTSynth < /tmp/midi1
SomeOtherApp < /tmp/midi2
midichan --input=/dev/midi 1=/tmp/midi1 2=/tmp/midi2 =/dev/null
More info in the README... I'd love to hear how/if it works.
I'll try RTSynth tonight. (anybody contacted the author about the
licence? don't feel very comfortable installing a closed app
suid root...)
--
Simon K�gedal <[EMAIL PROTECTED]> - Homepage: http://www.sdf.se/~simon/