Forums > MaxMSP

trigonometric question

March 1, 2007 | 8:59 am

dear all i have little problem: actually i’m in a little confusion on how to convert x y mouse coordinates to degree (0-360)..for instance like the max dial object behave..(but not the jsui one which convert only y..)
best
mic


March 1, 2007 | 9:14 am

On 1 mars 07, at 09:59, mic wrote:

> dear all i have little problem: actually i’m in a little confusion on
> how to convert x y mouse coordinates to degree (0-360)..for instance
> like the max dial object behave..(but not the jsui one which convert
> only y..)

Did you ckecked [cartopol]?

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max


March 1, 2007 | 9:32 am

yes and there is my confusion (and my shame!): how convert radian float value to degree (0-360)..sorry if it sounds obvious for someone!


March 1, 2007 | 9:49 am

degree = radian*180/PI

degree may be > 360 or < 0, so you'll have to wrap it within the range with a %

wes

On 3/1/07, mic wrote:
>
> yes and there is my confusion (and my shame!): how convert radian float value to degree (0-360)..sorry if it sounds obvious for someone!
>


March 1, 2007 | 9:54 am

On 1 mars 07, at 10:32, mic wrote:

>
> yes and there is my confusion (and my shame!): how convert radian
> float value to degree (0-360)..sorry if it sounds obvious for someone!

Look at [cartopol]‘s helpfile, on the right of the window: [/ pi]->[*
180] to get (-180 – 180). Adding 180 will give you a (0-360) range.

____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max


March 1, 2007 | 10:06 am

thanks a lot!


March 1, 2007 | 10:07 am

you could also try

tl.objects v. 2.2.0

http://www.bek.no/~lossius/download/tl.objects_2_2_0.zip

Am 01.03.2007 um 09:59 schrieb mic:

>
> dear all i have little problem: actually i’m in a little confusion
> on how to convert x y mouse coordinates to degree (0-360)..for
> instance like the max dial object behave..(but not the jsui one
> which convert only y..)
> best
> mic

mit freundlichen Grüßen,

Matthias Schneider-Hollek

digital masters
c/o Musik der Jahrhunderte
Siemensstr. 13
7o469 Stuttgart

studio: xx-49-711-6o7o78o
mobil: 0178-4088162

http://www.digitalmasters.de
http://www.hollek.de
http://www.durbanpoison.info
http://www.elektrominibarklingelton.de


March 1, 2007 | 10:08 am

wrong thread, sorry

Am 01.03.2007 um 09:59 schrieb mic:

>
> dear all i have little problem: actually i’m in a little confusion
> on how to convert x y mouse coordinates to degree (0-360)..for
> instance like the max dial object behave..(but not the jsui one
> which convert only y..)
> best
> mic

mit freundlichen Grüßen,

Matthias Schneider-Hollek

digital masters
c/o Musik der Jahrhunderte
Siemensstr. 13
7o469 Stuttgart

studio: xx-49-711-6o7o78o
mobil: 0178-4088162

http://www.digitalmasters.de
http://www.hollek.de
http://www.durbanpoison.info
http://www.elektrominibarklingelton.de


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