Author |
Message |
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Wed Jun 14, 2006 7:11 pm Post subject:
Bouncing balls |
|
|
Instead verbal ball bouncing i would like to use this old graphic and aswell musical fx ( see lemur and others ) with the nord modular.
Just...
A not so easy goal... especially when the solution should be as economical than possibel...
Its about gravity and elasticy...speed acceleration and changing directions...
one simple link..that gives an idea
http://www.delphiforfun.org/Programs/bouncing_ball.htm
or a practical applikation...
http://www.grotrian.de/spiel/d/info.html
Anybody has done similar things on the nord before or has ideas? |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Thu Jun 15, 2006 5:18 am Post subject:
|
|
|
Oh, and gravity in a system like this means adding a number to the vertical speed.
Since in my demo speed is always a positive number you might be able to get away with increasing vertical friction for balls going up and making "friction" increase the speed for balls going down.
It's fun but memory is REALY tight. _________________ Kassen |
|
Back to top
|
|
|
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Thu Jun 15, 2006 10:23 am Post subject:
|
|
|
ah yes ...that looks like it... i ve to check it later.
Thx |
|
Back to top
|
|
|
mother misty
Joined: May 13, 2004 Posts: 681 Location: Ghent / Belgium
Audio files: 82
G2 patch files: 130
|
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Fri Jun 16, 2006 1:08 am Post subject:
|
|
|
Doing a real physical model might be interesting. I am not sure where to start so I wrote some crude Jscript to test values etc.
You can edit the gravity and elasticity directly in the html file.
|
|
Back to top
|
|
|
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Fri Jun 16, 2006 3:22 am Post subject:
|
|
|
yep.. a real physical model would be the thing... but how to do with the G2?
I cant belive that i once was good in vector math...its all gone.. |
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Jun 16, 2006 7:28 am Post subject:
|
|
|
3phase wrote: | yep.. a real physical model would be the thing... but how to do with the G2?
I cant belive that i once was good in vector math...its all gone.. |
Actually, mine is a physical model. A model of symplified highschool physics but still. Also; it uses vectors, sorta kinda. the ball is represented by two coordinates, then two independant inertias (x and Y) make it move. _________________ Kassen |
|
Back to top
|
|
|
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Fri Jun 16, 2006 12:42 pm Post subject:
|
|
|
i still havent my g2 connected because of installing a new desk again
but as it seems booth models need to be combined to do something like in the groteian link i posted... When i understand cassens link wright its about pong... so moving and bouncing against walls in an enviroment without gravity...
While the one from Ian is just letting the ball bounce from a surface but under the law of gravity..
wright ?
bouncing between walls and the possebility to switch on and of gravity...
like in the Groteian toy i linked in the first message.
I hope i find some time to experiment with your patches later.
my goal is to get something playable out of the bouncing ball fx...
I like the semi random, natural structures you get with the Groteian toy. |
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Fri Jun 16, 2006 12:55 pm Post subject:
|
|
|
Kassen wrote: | Actually, mine is a physical model. |
Yes, sorry Kassen.
I was referring to my original G2 patch, that simulated the sound of a ball dropping on a hard surface then bouncing, but didn't model it. Your patch is great, just that it is a top down view with friction instead of gravity.
The Groteian toy is neat but I think it's appeal comes from watching the collisions. Can flash do midi out? Maybe I should learn. |
|
Back to top
|
|
|
mosc
Site Admin
Joined: Jan 31, 2003 Posts: 18197 Location: Durham, NC
Audio files: 212
G2 patch files: 60
|
Posted: Fri Jun 16, 2006 12:58 pm Post subject:
|
|
|
I love your patch, Ian. A very nice wind chime type thing... _________________ --Howard
my music and other stuff |
|
Back to top
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Fri Jun 16, 2006 1:08 pm Post subject:
|
|
|
3phase wrote: | i still havent my g2 connected because of installing a new desk again :-( |
You can drop the midi send modules from Ian's patch and play it in the demo (with just one ball, not four) _________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
|
Back to top
|
|
|
mosc
Site Admin
Joined: Jan 31, 2003 Posts: 18197 Location: Durham, NC
Audio files: 212
G2 patch files: 60
|
Posted: Fri Jun 16, 2006 1:23 pm Post subject:
|
|
|
Ian, notate this and you'll be the next Terry Riley or something. _________________ --Howard
my music and other stuff |
|
Back to top
|
|
|
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Fri Jun 16, 2006 2:57 pm Post subject:
|
|
|
Another question just came in my mind...
when a weight hangs to a metal spring... and you move it up an let fall down...
is this the same modell as the one Ian just patched... with reduced gravity or so...
Or is it a different modell ?
I know i had that in scool just 25 years ago...but i cant remember a thing :-/ |
|
Back to top
|
|
|
X-Electric
Joined: Jul 11, 2005 Posts: 182 Location: Warsaw, Poland
Audio files: 7
|
Posted: Fri Jun 16, 2006 3:34 pm Post subject:
|
|
|
3phase wrote: |
I know i had that in scool just 25 years ago...but i cant remember a thing :-/ |
I've had it in school 6 years ago and also can't remember a thing I really can't tell if the balls elasticity could be compared in any way to Hook's law of spring force (especially something called "wspólczynnik sprezystosci" in polish - I don't know the exact translation - spring constant (?) - it's labelled as a "k" in Hook's law).
[edit] - I had to remove my polish letters - they were all "łżć" and stuff |
|
Back to top
|
|
|
3phase
Joined: Jul 27, 2004 Posts: 1183 Location: Berlin
Audio files: 13
G2 patch files: 141
|
Posted: Fri Jun 16, 2006 3:48 pm Post subject:
|
|
|
ok.. at least a term like "Hook's law of spring force" indicates that there is a somewhat difference balistic behaviour...
I just try to understand Ians patch...havent had a look to Kassens yet...
but...within the next hour the speakers are online again and i can switch on the G2 again...
I allready can say that this leads in the wright direction for me... |
|
Back to top
|
|
|
mosc
Site Admin
Joined: Jan 31, 2003 Posts: 18197 Location: Durham, NC
Audio files: 212
G2 patch files: 60
|
Posted: Fri Jun 16, 2006 4:04 pm Post subject:
|
|
|
X-Electric wrote: | I've had it in school 6 years ago and also can't remember a thing |
At least you can remember when you were in school... _________________ --Howard
my music and other stuff |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Jun 16, 2006 5:00 pm Post subject:
|
|
|
g2ian wrote: | Kassen wrote: | Actually, mine is a physical model. |
Yes, sorry Kassen.
I was referring to my original G2 patch, that simulated the sound of a ball dropping on a hard surface then bouncing, but didn't model it. Your patch is great, just that it is a top down view with friction instead of gravity.
The Groteian toy is neat but I think it's appeal comes from watching the collisions. Can flash do midi out? Maybe I should learn. |
Oh, wait, you want to physically model the sound of the ball? That would be beyond me.
I'm not sure about Flash and MIDI, I think there is a version (director or shockwave or whatever) that can, maybe just from MID files. Since flash is meant to work with Ethernet it might be easier to use OSC as a go-between? _________________ Kassen |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Jun 16, 2006 5:13 pm Post subject:
|
|
|
3phase wrote: | Another question just came in my mind...
when a weight hangs to a metal spring... and you move it up an let fall down...
is this the same modell as the one Ian just patched... with reduced gravity or so...
Or is it a different modell ?
I know i had that in scool just 25 years ago...but i cant remember a thing :-/ |
There is actually a module in the G2 that does this; a state variable filter is also a perfectly good physical model of a mass and a spring. I had some good text on this around here from back when I was trying to use mass-spring models for interface mapping, you may want to do a google. It's not all that easy though. Basically the different outputs of the filter will represent things like the mass's location and it's velocity and so on.
Sadly all of my attempts to do this i the G2 were in the Engine that I gave back to Rob and it got re-initialised. pritty soon I concluded that this was a fun field but that the G2 isn't the most suitable system for this. Patches soon become unwieldy, it would all be much, much easier with something like classes or meta modules. I also found that this works MUCH better in systems that use floating point. In the G2 it tended to become unstable, might've been rounding errors or something, I'm fairly certain my math was sound (no pun intended). Back then I was prototyping in the G2, then quickly moving on to other systems, perhaps I shuld try again with ChucK now.
It's fun stuff though. _________________ Kassen |
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Fri Jun 16, 2006 5:46 pm Post subject:
|
|
|
Kassen wrote: | Oh, wait, you want to physically model the sound of the ball? |
That is an interesting thought, modal vibrations on a spherical surface .
What I mean is the original G2 patch simply clocked a binary counter which was then used to shorten the distance between, and lower the level of successive boings.
The new patch uses parameters for gravity, acceleration and elasticity coefficient as described in the first link. It also adds friction(decay) to prevent the endless bouncing at the end. The original link used a bail out test but that looked a little unnatural.
This bouncing reminds me of the new Sony TV advertisement, with all the coloured balls bouncing down a street in San Francisco. Nice, but the slogan 'Colour, like no other' seems to have been stolen from the creators of the NTSC system.
|
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Jun 16, 2006 6:01 pm Post subject:
|
|
|
g2ian wrote: |
That is an interesting thought, modal vibrations on a spherical surface .
|
Great idea! You go do that and I'll have a little nap and when I wake up I'll see how far along you are.
:¬p
If you didn't hear it already; check Beucephalus(SP? bouncing ball by Aphex twin. _________________ Kassen |
|
Back to top
|
|
|
X-Electric
Joined: Jul 11, 2005 Posts: 182 Location: Warsaw, Poland
Audio files: 7
|
Posted: Fri Jun 16, 2006 6:35 pm Post subject:
|
|
|
Kassen wrote: | Beucephalus(SP? bouncing ball by Aphex twin. |
"Bucephalus Bouncing Ball" to be clear... anyway, I thought the whole topic was about something different than a sound of gummy ball striking a concrete floor... (although Aphex Twin's ball was a bit different, and the concrete was something else hehe don't try to imitiate this guy - most of the time he's composing after a HUGE help of mushrooms and other great chemical specimens you know...) I'd never dare to copy anything he does... |
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
|
Back to top
|
|
|
|