elliptic path

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

elliptic path

Postby philter5 on Sat Sep 03, 2011 10:56 am

hey guys,
i am working on a xy pad that i made for a friend. the main goal is to drive perfectly round or elliptic paths.
every move action has autoslide and is hooked up to a lfo. but i´m stuck on how to get the XY coordinates
from the point because i use the View rotate prImitiv. for the GUI it works . has somebody an idea ow i can create
a circle for the path to P"preview" te path the rotation would take? i thought about ripping some functions from the properties panel of the SM bitmap knob (overlay circle, can be dragged,resized and show the circle path). will try this now.
but how to go for elliptic paths? also the autoslide XY doesn´t slide smooth but tbh i ave not digged deeper ....
here is tthe osm, it´s juck a quick rebuild because i don´t have the original osm here...

Edit: have to resize the osm a little, too large to upload here, limited to 2 mb :S
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: elliptic path

Postby philter5 on Sun Sep 11, 2011 8:42 am

here is the osm. as i said i am just looking for a easy way to get the xy coordinates and a way to make elliptic paths...
would bi nice if somebody can have a short look here....thxc ;)
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: elliptic path

Postby philter5 on Fri Oct 07, 2011 7:54 am

nobody?....hmmm.... can someone point me in a direction how to get the XY path/coordinates of a circle? ;)
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: elliptic path

Postby rl on Fri Oct 07, 2011 10:31 am

circle:
x^2 + y^2 = r^2
ellipse:
x^2/a^2 + y^2/b^2 = 1

solve this for y and you get: (two solutions each)
circle: y = +- sqrt (r^2-x^2) for x = [-r..+r]
ellipse: y = +- sqrt (b^2 * (1 - x^2/a^2) ) for x = [-a..+a]

(http://www.wolframalpha.com/input/?i=ellipse)

does this answer your question? oder habe ich was nicht verstanden?
User avatar
rl
dsp wiz
 
Posts: 1494
Joined: Mon Feb 07, 2005 10:24 pm
Location: de.earth.universe.known

Re: elliptic path

Postby philter5 on Fri Oct 07, 2011 8:00 pm

hey thx a lot RL (ich weiß nicht ob du mich richtig oder falsch verstanden hast , denn ICH verstehe bis jetzt nur Bahnhof...'). that´s a point in the right direction for me, i have to investigate further... ;)
i am very bad with math and this stuff... :S
i thought that there would be an easier way.
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: elliptic path

Postby infuzion on Fri Oct 07, 2011 11:30 pm

DSP = math ;)
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: elliptic path

Postby philter5 on Sat Oct 08, 2011 12:53 am

infuzion wrote:DSP = math ;)


i know infuzion, i know.... that´s the main reason why i use SM just for fun hehe :D
but i learn. slowly but i learn :)
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: elliptic path

Postby infuzion on Sat Oct 08, 2011 5:13 am

philter5 wrote:
infuzion wrote:DSP = math ;)
i know infuzion, i know.... that´s the main reason why i use SM just for fun hehe :D but i learn. slowly but i learn :)
I know I have to learn more maths myself... I wish I payed more attention in school!
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: elliptic path

Postby stw on Sat Oct 08, 2011 9:30 am

Here's an osm example of RLs formula. Maybe this helps a bit more... :)

ellipse path.osm
(16.43 KiB) Downloaded 54 times
stw
smanatic
 
Posts: 640
Joined: Mon Jun 30, 2008 2:55 pm

Re: elliptic path

Postby martinvicanek on Sat Oct 08, 2011 2:45 pm

rl wrote:circle:
x^2 + y^2 = r^2
ellipse:
x^2/a^2 + y^2/b^2 = 1

solve this for y and you get: (two solutions each)
circle: y = +- sqrt (r^2-x^2) for x = [-r..+r]
ellipse: y = +- sqrt (b^2 * (1 - x^2/a^2) ) for x = [-a..+a]


Another representation is:
x = r*cos(t); y = r*sin(t); (circle)
x = a*cos(t); y = b*sin(t); (ellipse)
with t = [0...2*Pi]
martinvicanek
essemilian
 
Posts: 308
Joined: Sun Mar 13, 2011 1:15 pm

Re: elliptic path

Postby philter5 on Sat Oct 08, 2011 7:01 pm

martinvicanek wrote:
rl wrote:circle:
x^2 + y^2 = r^2
ellipse:
x^2/a^2 + y^2/b^2 = 1

solve this for y and you get: (two solutions each)
circle: y = +- sqrt (r^2-x^2) for x = [-r..+r]
ellipse: y = +- sqrt (b^2 * (1 - x^2/a^2) ) for x = [-a..+a]


Another representation is:
x = r*cos(t); y = r*sin(t); (circle)
x = a*cos(t); y = b*sin(t); (ellipse)
with t = [0...2*Pi]


thx a lot guys...
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1480
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest