MIDI device "driver"???
MIDI device "driver"???
- Subject: MIDI device "driver"???
- From: Stephen Davis <email@hidden>
- Date: Fri, 2 Nov 2001 10:52:33 -0800
I have an external MIDI device which just connects via any standard MIDI
interface. Is it possible (or even desireable) to create a "driver" for
this device so that I can just use "SetParameter" type calls to set its
various properties by name instead of having each app craft the MIDI
packets which must be sent to the device in order to change the settings?
What I want to be able to do is:
1) Send program change events to the device (standard)
2) Map its various controller values to named parameters so I can say
"SetParameter("Volume",20)" instead of "SendBytes(2,33,20,...)"
3) Read/Write SysEx messages to it to do patch dumps and the like
Sure, I could make an object internal to my app that does these things
but I'm wondering if it's possible to create a more standard "driver"
that I could let other people use as well. I don't really understand
the distinction between the user-land plugin drivers and the
device-level drivers. Standard serial MIDI interfaces can use plugins
and PCI-based devices must use IOKit drivers but what about one level up
from the interface level?
Lastly, how would such a driver get matched and loaded? Who would
figure out the device is out there on the MIDI bus? If no matching
possible, could it be explicitly loaded and told to probe for its
supported device?
Just thought it would be cool to create such a thing and wondering if
it's possible.
stephen