Forums > MaxMSP

What's the link between send/receive and value ?

September 7, 2009 | 1:34 pm

hi maxers,

i’m wondering what’s the link between the s/r objects and the v object. sending something into a ‘s’ object doesn’t modify the same-named ‘v’ object content. but it seems to be another relation i don’t understand.

here is a patch to demonstrate what i say.

cheers.

g

#P window setfont "Sans Serif" 14.;
#P window linecount 1;
#P comment 181 49 17 196622 3;
#P comment 140 49 17 196622 2;
#P button 134 67 30 0;
#P window setfont "Sans Serif" 9.;
#P message 78 107 15 196617 A;
#P newex 78 131 48 196617 s myvar;
#P newex 134 154 32 196617 print;
#P button 175 67 30 0;
#P message 134 105 14 196617 B;
#P newex 134 130 49 196617 v myvar;
#P window setfont "Sans Serif" 14.;
#P comment 84 49 17 196622 1;
#P button 78 69 30 0;
#P window setfont "Sans Serif" 9.;
#P comment 34 216 552 196617 3 – press 2 , select all (cmd/ctl+a) , cut , paste , press 3 , myvar doesn’t contain anything , normal…;
#P comment 34 182 331 196617 1 – press 1 , press 3 myvar doesn’t contain anything , normal…;
#P comment 34 199 247 196617 2 – press 2 , press 3 myvar contains B , normal…;
#P comment 34 233 733 196617 4 – press 2 , rename "v myvar" to "v myvar2" , press 3 , myvar2 is empty , normal… then name it back to "v myvar" , press 3 , myvar contains B , normal ????;
#P user panel 596 246 151 4;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 12 0 11 0;
#P connect 13 0 8 0;
#P connect 5 0 12 0;
#P connect 7 0 10 0;
#P fasten 9 0 7 0 180 125 139 125;
#P connect 8 0 7 0;
#P window clipboard copycount 16;


September 7, 2009 | 5:03 pm

You can probably best think of it as two different namespaces (although I’m not entirely sure that that’s what Max is doing internally).

Basically, s/r has nothing to do with value.


September 7, 2009 | 6:57 pm

hi peter,

i thought s/r & v had nothing to see, but apparently s/r keep in memory the v content somewhere…

what do you say at c74 ?

thanks,

g


September 7, 2009 | 9:09 pm

I think you may have found a semi-bug.

If you repeat the test without the send in the patch at all, there is no retained value (in Max 4 or Max 5).

So it looks like having a send object named the same as a value object still binds the current value to that name even when the last instance of value is deleted.

Funky.


September 14, 2009 | 12:16 pm

Considering the fact that i had no response from cycling in a week on this thread, i assume this is not a feature…

g



Zh
September 15, 2009 | 1:58 am

… also, if you double-click the [s myvar], it comes up with the usual list of s’s & r’s, containing "value myvar"…

????


September 16, 2009 | 7:57 am

it’s still there in max 5.0.8…


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