trigonometric question

Mar 1, 2007 at 8:59am

trigonometric question

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

#30558
Mar 1, 2007 at 9:14am

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

#97871
Mar 1, 2007 at 9:32am

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!

#97872
Mar 1, 2007 at 9:49am

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!
>

#97873
Mar 1, 2007 at 9:54am

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

#97874
Mar 1, 2007 at 10:06am

thanks a lot!

#97875
Mar 1, 2007 at 10:07am

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

#97876
Mar 1, 2007 at 10:08am

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

#97877

You must be logged in to reply to this topic.