CM/OMS/Divice

Tobias Kunze t@ulysses.Stanford.EDU
Sat, 25 Oct 1997 14:25:21 -0700


> I can make the MIDI system work.

I take it you mean "can't".  Anyway, you didn't make any connections,
that is MIDI gets routed through the different maps, but is not really
associated with any interfaces.  given your setup, try

  Stella: open midi connections '(("Klavier" "QuickTime Music"))

or whatever input/output you want.  This opens one connection to the
named interfaces.  if you want more, things are getting complicated,
undocumenmted and aren't quite tested yet:

   Stella: open midi connections '(("K2000i" "K2000i")
                                    ("Klavier" "QuickTime Music"))

associates connection 0 with "K2000i" (in and out) and connection 1
(input) with "Klavier" and (output) "QT Music".  of course, there is no
connection 1 yet, so you'll have to add one:

   Stella: (midi-add-routemap 1 1)

now route 1 goes to connection 1.  you need to add mappings to
the channel map, too (since by default, there are only 16 logical channels
and all go to route 0, which by default goes to connection 0.

   Stella: (midi-add-channelmap 15 1 0)

adds a mapping to logical channel 15 that lets it go to route 1, chan 0.
Note that you can multiplex channels.  if you say

  (midi-add-routemap 0 1)

all midi messages written to route 0 go both to connection 0 and 1, etc.

Don't abuse it yet, it's not really tested.