Ryan,
When we're rehearsing with an actual Bass player,
I'd like to turn off
the Bass line and let the real Bass player play over the top (I realise
this last case is a little different, but it would be good if this
feature were also integrated into the same tool).
I think it would be easier just
to disconnect the bassline in kaconnect
when the bass player is present.
I'm imagining the script/program needs to
interpret the midi data in
order to route it. Is that a simple matter or a difficult one?
Quite simple. A
proof-of-concept implementation is attached. It's sort
of crude, but you can glean the basic technique from it.
Close to the top you'll find the configuration: It consists of a number
of lists of sequencer clients, one for the input source, and one for
each MIDI channel. In such a list, the more desirable sound sources are
listed first. The tool will create one output port for each channel that's
listed, plus one output port that'll catch everything that's not routed
to any of the other ports.
The names of clients don't have to be exact; capitalization doesn't matter,
and it's enough to give a substring of the name you're after (as long as
it's long enough to distinguish it from other names).
I believe this is the basic functionality you're after. Let me know if
you have any questions or comments.
Peter
PS: You'll need my PySeq library to run this:
http://www.math.tu-berlin.de/~brinkman/software/pyseq/