RobinSchmidt / RS-MET

Codebase for RS-MET products (Robin Schmidt's Music Engineering Tools)
Other
56 stars 6 forks source link

rotation of rigid bodies #291

Open RobinSchmidt opened 4 years ago

RobinSchmidt commented 4 years ago

i just came across this:

https://www.youtube.com/watch?v=1VPfZ_XzisU

...this sort of motion can be described by a simple system of 3 differential equations (pretty much like the lorenz system), see here:

https://en.wikipedia.org/wiki/Tennis_racket_theorem

just for fun, i implemented it and got the following result:

image

blue: w2 - the angular velocity about the axis with the intermediate moment of inertia. black and green: the angular velocities about the axis with minimum and maximum moment of inertia respectively. all by itself, it's probably not particularly interesting for musical purposes. it basically just generates smoothed out square-waves or smoothed unipolar or bipolar impulse trains. but maybe it could be turned into some interesting chaotic system by modifying the ODE system a bit? ...dunno.... i'm just having some fun. if you want to have some fun too, search for the tennisRacket function in the test project

elanhickler commented 4 years ago

could make a good chaos modulator or noise generator?

RobinSchmidt commented 4 years ago

maybe. i just added an extra term to the equations that leads to asymmetric pulses (i.e. pulse-width control for the square wave):

image

image

...but it also leads to decay (undesirable) but i have ideas how to avoid the decay (by enforcing constant angular momentum and/or rotational energy)

RobinSchmidt commented 4 years ago

ha! there's also a version of the equations that includes external torques: https://en.wikipedia.org/wiki/Euler%27s_equations_(rigid_body_dynamics) ...that means, we can use it to process incoming signals instead of just generating signals on its own - i.e. generalize the generator into a (sort of) "filter"

elanhickler commented 4 years ago

yes, i was just about to say that. you can make it into a resonator.