[maxmsp] $? Newbie question
Trond Lossius
lossius at bek.no
Sun Jan 13 14:21:42 MST 2008
- Previous message: [maxmsp] Re: $? Newbie question
- Next message: [maxmsp] Re: $? Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The $1 means that this part of the message can be substituted on the fly for an incoming float or int value. Here's a simple example: #P window setfont "Sans Serif" 9.; #P number 94 82 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 94 175 167 196617; #P window linecount 1; #P message 94 117 135 196617 dollar one exchanged for \$1; #P newex 94 149 62 196617 prepend set; #P connect 3 0 1 0; #P connect 0 0 2 0; #P connect 1 0 0 0; #P window clipboard copycount 4; If the message box receives a list, you can do the same for several of the list members using $1, $2, $3, etc: #P window setfont "Sans Serif" 9.; #P message 393 236 152 196617; #P window linecount 1; #P message 393 178 156 196617 red = \$1 | green = \$2 | blue = \$3; #P newex 393 210 62 196617 prepend set; #P message 428 146 167 196617 1 136 0; #P newex 428 120 62 196617 prepend set; #P user swatch 393 73 128 32; #P connect 0 0 4 0; #P connect 0 0 1 0; #P connect 4 0 3 0; #P connect 3 0 5 0; #P connect 1 0 2 0; #P window clipboard copycount 6; If you search the Max manuals for $2 you might find more info on it. I know it's there somewhere, but don't recall exactly which of the pdfs or where. Best, Trond Peter wrote: > Can somebody explain me the $ chrachter as fi. in the following objects: > line $1 50 > or > /Fader.x $1 > I understand the 50 or the /Fader.x, but what does the $1 do? > > Thanks for your patience! > > > Peter > _______________________________________________ > maxmsp mailing list > maxmsp at cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp >
- Previous message: [maxmsp] Re: $? Newbie question
- Next message: [maxmsp] Re: $? Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
