Forums > MaxMSP

message "set $1" doesn't work after $11?

July 16, 2013 | 7:54 am

Hi,
A student pointed out that the set message breaks after $10, and adds backslash "/" and becomes "set /$11". Is there a reason for this, and is there a way around it so he can use "set $11", $12 and so on?
Thanks,
mari

<code>

– Pasted Max Patch, click to expand. –

</code>


July 16, 2013 | 8:16 am

Could this be a workaround?

<code>

– Pasted Max Patch, click to expand. –

</code>


July 16, 2013 | 8:30 am

Hey,
there are certainely workarounds for this (like LSKA’s) ; as for the reason, it’s simple : the $ arguments supported are only 1 through 9. In fact $ will only affect the first numerical character after it, and $0 doesn’t exist neither i think. If you do :
[0]
|
($10)
|

the result will be "00" and whatever you input, it will be "[input]0" ; so $1 will be replaced by the first element of the input, and 0 will stay 0 and be glued immediately to the input element and both things will create a new symbol (hence the "" around it).


July 16, 2013 | 10:20 am

Thanks so much, I will forward this!
best
mari


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