MIDI merging

Nicolas Bazoge's icon

Hi,

Does Max 8 automatically merge MIDI messages from a patcher into the output? In other words, can I place several [ctlout] objects in the same patcher that send MIDI messages on the same port, the same channel and the same Control Change, without causing any problems for the MIDI receiver?
In practise, it seems to work, but sometimes the receiver in question (Ableton Live 10.1) crashes and I wonder if it can come from there.
Sorry, but I can't find any information on this subject, which nevertheless seems essential in the use of MIDI.

Thank you for your help,
Nicolas

Source Audio's icon

several [ctlout] objects in the same patcher that send MIDI messages on the same port, the same channel and the same Control Change

That seems to be a bad idea alltogether,
but should not crash any software, if it is at least a little bit decently
programmed.
Loss of midi data would be the only expected penalty.

Roman Thilenius's icon

i think we could say that anything which would work using one midiout object would also work when using many.

Source Audio's icon

If one sends on same channel, same control number using
several objects, order of execution would not be defined,
as it would be if using single midiout object.

Nicolas Bazoge's icon

Thank you all for your answers.
So a solution to program it decently would be to converge all midi signals to a single midiout object ?

Source Audio's icon

Not necessary needed, just avoid sending same
device/channel/controller messages using several objects.
If identical midi messages You want to send get generated from
different sources, just send them to same ctlout object.
Object itself will handle order of execution,
or refuse to send data which is not properly formated.

Nicolas Bazoge's icon

OK, thank you !