Is it possible to convert midi cc value to midi channel ?
For example:
if incoming midi cc32 = 1 then send all incoming notes-on/notes-off to midi channel 1
if incoming midi cc32 = 5 then send all incoming notes-on/notes-off to midi channel 5
You need to use the -Q CsOptions flag in order to output MIDI. But you should be able to monitor MIDI input? There is a good example here of getting MIDI info from midiin. In fact, the entire chapter on MIDI is a great resource.