Why a M4L patch speaks Max only while it is open?

Feb 15, 2013 at 1:30pm

Why a M4L patch speaks Max only while it is open?

As soon as I close it and want to send messages from my Max patch to the M4L instrument in Live it stops listening…
It is not MIDI, just plain numbers and text.

I tried the usual [send] & [receive] and also via [udp], but neither is working.

#66540
Feb 15, 2013 at 4:16pm

Max for Live runs as part of Live, so it’s in a different process to “real” Max. If you open a Max for Live device it’s in Max temporarily, but when closed it’s back in Live and so can’t do send/receive to/from other patchers in Max.

udp should work fine between M4L and Max, though – in fact, I’ve done it.

#239468
Feb 15, 2013 at 5:03pm

Agreed. Use udp for all my m4l to max communication with no problems

#239469
Feb 16, 2013 at 10:51am

I use udp constantly, and it’s not without problems, tbh. Mainly it’s when opening/closing editors for patches in Live – udpreceive will try to bind to already bound ports, etc.

in fact, does anyone know of a simple solution to this? I should ask in a separate thread, I guess.

#239470
Feb 16, 2013 at 1:03pm

Didn’t we have this discussion at the Max conference a year ago? Yes, machine-global resources (like IP ports) are a pain to handle when running programs are being thrown between two different processes. There may be a combination of loadbang/closebang/device-ready messages which will make it work, but it won’t be pretty…

#239471
Feb 16, 2013 at 8:59pm

anyway;

I just open my Max/Live combination with [upd] and now they are happily sending and receiving.
let’s see what tomorrow brings …

#239472

You must be logged in to reply to this topic.