[PD] GEM: gemwin perspec strange behavior

Roman Haefeli reduzierer at yahoo.de
Fri Feb 26 17:21:20 CET 2010


On Fri, 2010-02-26 at 16:51 +0100, Dario Pedrioli wrote:

> [2<
> |
> [perspec -$1 $1 -$1 $1 1 20<

The output is correct, but it doesn't produce what you might want.

[-$1( 

It does _not_ produce a negative float, but instead it produces a symbol
element without selector. Try to feed it with negative numbers, you will
see something like:

--12

instead of:

12.

You cannot use arithmetic operators that way. You would have to do the
change the sign beforehand

[2(
|
[* -1]
|
[$1(

Roman

 





More information about the Pd-list mailing list