Forums > MaxMSP

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

Feb 15 2013 | 1:30 pm

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.

Feb 15 2013 | 4:16 pm

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.

Feb 15 2013 | 5:03 pm

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

Feb 16 2013 | 10:51 am

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.

Feb 16 2013 | 1:03 pm

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…

Feb 16 2013 | 8:59 pm


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

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP