Expr - evaluate sin() in degrees

Andy's icon

Hi,

I notice that expr evaluates sin() etc calculations in radians - is it possible to evaluate them in degrees? I don't see any reference to this issue in the documentation.

Cheers

ANDY

nick rothwell | project cassiel's icon

On 27 Aug 2007, at 22:07, Andy Brennan wrote:

> I notice that expr evaluates sin() etc calculations in radians - is
> it possible to evaluate them in degrees? I don't see any reference
> to this issue in the documentation.

You'll probably have to roll your own: radians to degrees is x *
180. / 3.1416 [-ish]. If you want to be all structured-programming
about it, loadbang a 180/pi into a rightmost inlet of the expr.
(That's the closest MaxMSP gets to a #define statement.)

    -- N.

Nick Rothwell / Cassiel.com Limited
www.cassiel.com
www.myspace.com/cassieldotcom
www.loadbang.net