[v $0-myvalue] = associate the symbol "$0-myvalue" with a float value
[expr $0-myvalue] = subtract the float value associated with the symbol 
"myvalue" from $0

Therefore, [expr] should always return the value of $0 (unless you're assigning 
a value to "myvalue" somewhere)

[expr]'s parser seems only to recognize an atom as a symbol when the first 
character is not a number, so try the following workarounds:

[expr _$0myvalue]
[expr myvalue$0]

Both are ugly.  If using tables you can avoid this mess by using an $s variable.


-Jonathan




>________________________________
>From: Michael Zacherl. <[email protected]>
>To: PD list <[email protected]>
>Sent: Thursday, August 25, 2011 11:19 AM
>Subject: Re: [PD] receiving messages in [expr] ?
>
>
>On 25.8.2011, at 14:43 , tim vets wrote:
>
>> something like [expr myvalue] and [v myvalue]?
>> gr,
>> Tim
>
>great, thanks Tim!  
>
>any chance to get $0 working?  [v $0-myvalue] is fine, [bang(--[expr 
>$0-myvalue]  (might be utterly wrong) delivers strange values, not even $0.
>
>Michael.
>
>--
>noise chasers: http://blauwurf.at 
>http://soundcloud.com/noiseconformist
>
>
>
>
>_______________________________________________
>[email protected] mailing list
>UNSUBSCRIBE and account-management -> 
>http://lists.puredata.info/listinfo/pd-list
>
>
>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to