Could I replace o.message and o.prepend with Max default objects?

Masa's icon

Hi, I am wondering if there is a way to replace o.message and o.prepend with Max default objects, as it helps Windows users to open my patch.

This is the patch I would like to modify.

Max Patch
Copy patch and select New From Clipboard in Max.

Many thanks,

Masa

pdelges's icon

Can't you simply connect your number to [prepend /sine/sine67/pan ] ?

If your OSC message depends on #1, #2, etc., arguments then you could use [combine #1 #2 /pan 1] to create the message.

Masa's icon

Thanks a lot for your advice.

I just tried out your approach, but it seems not working as you can see in this screenshot.

Comparison between prepend and o.message

It seems o.message does something more than simply prepending. The help file of o.message says 'o.message behaves like the standard Max message box except that it converts its data to OSC packets.' I am not very sure what this means in practice.

vichug's icon

i'm not sure but if i remember correctly, udpsend by default is supposed to convert messages to OSC packets, so you should be able to send full OSC packets this way (you would'nt see it inside Max). But i'm not sure. It's something to test.

pdelges's icon

Vichug is right, udpsend will send the OSC messages correctly. There are some explanations in udpsend's help file (CNMAT compatibility tab).

Masa's icon

Thanks a lot.

I just read the CNMAT compatibility tab of udpsend's help file . Do you know what 'FullPacket' message is? In what situation do we benefit from that, compared to using only Max standard objects?