Forums > MaxMSP

Expr – evaluate sin() in degrees

August 27, 2007 | 9:07 pm

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


August 27, 2007 | 9:20 pm

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


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