Forums > MaxMSP

object internal send/receive

June 28, 2013 | 7:07 am

Hello list,

in Pure Data it is possible to set the name of send/receive variables to each gui object, thus saving lots of time in connecting with extra objects. Is there such a feature in max?
I found the pattr object, but it doesn’t do the same, e.g. it doesn’t allow to link with several gui objects.

Thanks,

jmmmp


June 28, 2013 | 7:19 am

perhaps you can do it via thispatcher object (scripting) , first of all you need to give JS name (inside inspector) for each ui that u want to access

edit : then check help file for thispatcher how to access your objects


June 28, 2013 | 8:33 am
– Pasted Max Patch, click to expand. –

June 28, 2013 | 8:44 am

pvar could be usefull too…


June 28, 2013 | 8:48 am

yeah . pvar is even more appropriate here !


June 29, 2013 | 12:39 am

Thank you all, that was a good suggestion. But nevertheless an instance of pvar is always necessary before each receiver – in the end one saves one object by not using "send", but has to use a "receive"-like object. Also, max doesn’t allow me to have several objects with the same scripting name.

I’ll try it this way. But this gave me the thought of, instead of having too many variables around, to try to put all these variables in a central place in the patch, so that they’re easy to manage. Do you know any type of such a management system?


June 29, 2013 | 1:42 am

pattr still sounds good to me for the variable storage. If you post a representative slice of your patch, and people will be better able to advise you.


June 29, 2013 | 8:49 am

If you put objects in parameter mode (live.objects are already in parameter mode), you’ll be able to see them when you view the "Parameters" window. You can change their names there if you’re looking to rename things en masse. Drop an autopattr in and you have bidirectional communication; you can use pattrhub, pattr, and pattrforward to do that.

Alternatively, the sw object lets you link multiple controls with the same value without feedback problems, though it may not be what you’re looking for in this case.


July 1, 2013 | 2:03 am

Thanks for your replies. I don’t have a specific patch to show, it’s more of a general concept I was thinking of – on one side to try to save on sends/receives and patching time, and on the other hand to have a central place where all these variables are accessible; ideally with one object that automatically knows how many variables exist, and can go through them. But as it seems such an object doesn’t exist, so I’ll stick to the traditional method, and keep track of my variables, trying not to repeat any names.


July 1, 2013 | 5:38 am

you’ll probably prefer things like pattrstorage, autopattr etc. The Pd-style built-in option of send/receive for GUI objects has no real equivalent in Max, alas.


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