Expr – evaluate sin() in degrees

Aug 27, 2007 at 9:07pm

Expr – evaluate sin() in degrees

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

#33431
Aug 27, 2007 at 9:20pm

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
http://www.cassiel.com
http://www.myspace.com/cassieldotcom
http://www.loadbang.net

#111364

You must be logged in to reply to this topic.