Forums > MaxMSP

store a symbol, how to ?

August 8, 2007 | 3:10 pm

Hello

I wonder if there is an object in Max who
store and recall a symbol ?
the question can be stupid but with only a description
of a fonction, the search is less easy than with a name

so if somebody know

thank’s

best
Eryck


August 8, 2007 | 3:19 pm

sorry, the question was really stupid
coll do that of course…


August 8, 2007 | 4:30 pm

At 9:10 AM -0600 8/8/07, Eryck Abecassis wrote:
>I wonder if there is an object in Max who
>store and recall a symbol ?

among others, the message box can do this:

#P button 62 80 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 62 231 32 196617 print;
#N vpatcher 20 74 376 425;
#N comlet Sym Out;
#P outlet 117 234 15 0;
#N comlet Set;
#P inlet 173 78 15 0;
#N comlet Recall;
#P inlet 117 78 15 0;
#P button 117 116 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 173 116 62 196617 prepend set;
#P message 117 189 127 196617;
#P connect 3 0 2 0;
#P connect 1 0 0 0;
#P connect 2 0 0 0;
#P connect 0 0 5 0;
#P connect 4 0 1 0;
#P pop;
#P newobj 62 152 52 196617 p symreg;
#P message 137 126 93 196617 a different symbol;
#P message 137 103 69 196617 Some symbol;
#P comment 78 80 37 196617 Recall;
#P connect 5 0 3 0;
#P connect 3 0 4 0;
#P connect 1 0 3 1;
#P connect 2 0 3 1;
#P window clipboard copycount 6;


Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." – Brian Eno


August 8, 2007 | 5:29 pm

value or pvar can store symbols, with the benefit of doing it in
multiple locations in the patch.
see also tosymbol and fromsymbol.

using the messagebox is also a good method, like chris posted.

On Aug 8, 2007, at 4:10 PM, Eryck Abecassis wrote:

>
> Hello
>
> I wonder if there is an object in Max who
> store and recall a symbol ?
> the question can be stupid but with only a description
> of a fonction, the search is less easy than with a name
>
> so if somebody know
>
> thank’s
>
> best
> Eryck
>
>
> –
> http://www.eryckabecassis.com


August 8, 2007 | 5:30 pm

yep or use ‘zl reg’

john


August 8, 2007 | 5:47 pm

thank you all,

I try to fix some patches(example patch actually) coming from Gem library for Max – originally for Pure data), and apparently some
object like only exist in PD;

so, I reconstitute them(in Max) in order to understand something in those patches

best

eryck


August 8, 2007 | 5:50 pm

or [textedit]-[pattrstorage] combo depending on what you want to do.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 246 169 27 196617 + 1;
#P newex 214 170 27 196617 + 1;
#P user radiogroup 235 98 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 3;
#X done;
#P user radiogroup 214 98 18 64;
#X size 4;
#X offset 16;
#X inactive 0;
#X itemtype 0;
#X flagmode 0;
#X set 2;
#X done;
#P message 87 52 34 196617 pants;
#P message 51 52 35 196617 fancy;
#P newex 51 71 62 196617 prepend set;
#P message 214 194 49 196617 store $1;
#P newex 158 97 53 196617 autopattr;
#X prestore textedit 1 0 pants;
#P objectname u411000019;
#P newex 214 222 92 196617 pattrstorage stuff;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname stuff;
#P user textedit 51 97 151 147 32896 3 9 pants;
#P objectname textedit;
#P connect 10 0 1 0;
#P connect 8 0 10 0;
#P connect 3 0 1 0;
#P connect 9 0 3 0;
#P connect 7 0 9 0;
#P connect 6 0 4 0;
#P connect 5 0 4 0;
#P connect 4 0 0 0;
#P hidden connect 2 0 0 0;
#P window clipboard copycount 11;


August 8, 2007 | 7:34 pm


August 9, 2007 | 5:47 am

Eryck Abecassis schrieb:
> I try to fix some patches(example patch actually) coming from Gem
> library for Max – originally for Pure data), and apparently some
> object like only exist in PD;

Have a look at my St.ools, there is a subset called abhaXions, and in
there is another subset called Pd abhaXions. I made some replacements
for Pd objects as well…

You’ll find it on the cycling/share pages…

I would use either [zl reg] or pattr for storing arbitrary types…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


August 9, 2007 | 1:02 pm


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