Forums > MaxMSP

Max Symbols $


Ali
December 1, 2010 | 6:11 pm

propper newbie question but what does the ‘$’ symbol actually mean?


December 1, 2010 | 6:22 pm

Hi Ali,

In a message box, the ‘$’ character is usually followed by a number (1-9). In Max, this is what is called changeable or replaceable arguments. From the message reference page:

———
A dollar sign ($), followed immediately by a number in the range 1-9, is a changeable argument. This argument’s value can be replaced by the corresponding item in a list received in the inlet. (Example: $2 stores the second item in a list as its value before sending out the contents of the message box.) The value of a changeable argument is initially 0.
———

In an object like [if] or [expr] (and some others), the ‘$’ can be followed by a data type abbreviation (f(float), s(symbol), i(integer)). These are also considered changeable arguments and generally used as variables in an equation of some sort. Check out the reference entries for these objects for more info.

Hope that is helpful!

-Ben


December 1, 2010 | 6:24 pm


December 1, 2010 | 6:35 pm

the dollar sign is a variable.

Not the best patch to show you on but I am at uni at the moment

– Pasted Max Patch, click to expand. –

December 1, 2010 | 6:46 pm

oops best go by what ben says I have explained the principle quite confusingly



Ali
December 2, 2010 | 1:34 pm

thanks for the help guys it makes sense now
Cheers again


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