Can Csound under Linux, using Portmidi, ALSA or alsaseq, send midi data to different midi output ports?
Like: one midi instrument goes to M Audio Delta 1010 MIDI, and another midi instrument goes to the Edirol M Audio Delta 1010 MIDI?
Can Csound under Linux, using Portmidi, ALSA or alsaseq, send midi data to
different midi output ports?
...
Not as far as I know. The best I was able to do was to externally route
different channels to different devices, by connecting Csound to the
virtual MIDI through port of ALSA seq.
Perhaps Jacko can do it? It supports MIDI. That is if JACK is an option
at all.
Yes i was thinking about the Jacko opcodes aw well.I am not sure if the Jacko system will do the trick and is designed for that, but JackoMidiOutConnect for example: Creates a MIDI connection from Csound to a Jack port. Let me start there
What do you think @Michael Gogins ?
On the other hand, a command line with several midi inputs and outputs would be good to have. And then an opcode from a particular instrument that assigns one or more of these midi inputs and outputs. But first i will have to find out the capabilities of the Jacko system.
yes, with portmidi you can. Each port is mapped to successivel groups of channels > 16.
From the manual
“With PortMIDI, DEVICE is either a number for single port input, ‘a’ for listening to all input ports, or ‘m’ for mapping ports to MIDI channels above 16. In this case, device 0 uses 1-16, device 1 uses 17-32, … device N uses (N+1)*channel. The options ‘a’ and ‘m’ are also convenient when you don’t have devices as they will not generate an error.”
I have tried to get things working with the Jacko opcodes, but i gave up. Also, this is Linux AND Jack only. I was hoping for a more multiplatform solution.
Like the PortMidi option!
I have yet to try out the PortMidi driver and its > 16 channels option - sounds good!
Something alike would be good to have for midi output ports i think
I have made a feature request Several Midi ports #1750, but that was just before i had the chance to read your message. I will try the option of PortMidi In and several Midi devices.
(I will then change my feature request to midi outs)