| Author |
Message |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Apr 22, 2010 10:11 pm Post subject:
Thunder Subject description: Advice on how to make thunder in ChucK? |
 |
|
Hi, I've been challenged by a colleague to make some really good thunder using ChucK. I have kijjaz's thunder models but they are not overly realistic. So I'm asking what approach would you take to making thunder? I need gentle rolling thunder, violent claps of thunder, spatialization with traveling, etc. So how would you do this?
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Apr 23, 2010 8:51 am Post subject:
|
 |
|
Sounds like a really tricky thing.
Maybe download a few samples of real thunder and analyse what's going on in those? _________________ Kassen |
|
|
Back to top
|
|
 |
kijjaz

Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Fri Apr 23, 2010 11:37 am Post subject:
|
 |
|
yeah, how can we model a thunder sound? ..
I'm thinking..
(1) Sparking Mechanism --> I'm thinking about a line of low-frequency / DC burst.
(2) a set of delays that line of energy burst to simulate sounds reflecting between clouds .. so maybe we should have some cloud models etc...
(3) the filtering effects of the atmosphere / clouds.
seems chaotic to me wahahahha.. |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Fri Apr 23, 2010 11:55 am Post subject:
|
 |
|
Kij, nice modeling ideas. I have a great thing for a cloud model. It would be a Karplus Strong circuit. I have code for this to save you trouble if you decide to code up something. KS is a little resonant thingie that can be tailored to a loop frequency that is in the range of clouds.
Then delay lines between the clouds.
And what would the source be, a burst of noise?
Spatialization with Pan2 UGen on each cloud according to it's position (delay) etc.
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Fri Apr 23, 2010 11:58 am Post subject:
|
 |
|
Here is the Karplus Strong model:
| Code: | class KarplusStrong {
// the patch
Gain input => LPF nlpf => Gain sum => LPF lpf => Gain output;
lpf => Gain feedback => Dyno limiter => DelayA delay => sum;
160 => nlpf.freq;
limiter.limit();
second => delay.max;
fun void set(dur dly, float freq, float fb) {
dly => delay.delay;
freq => lpf.freq;
fb => feedback.gain;
}
}
KarplusStrong KS;
|
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Fri Apr 23, 2010 12:16 pm Post subject:
|
 |
|
each cloud has an x,y,z position in the sky. Delays between clouds are proportional to the distance between them. Panning position is a function of x. Clouds move their positions slowly during the storm...
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sun Apr 25, 2010 4:13 pm Post subject:
|
 |
|
Guys I took a quick shot at it and didn't get far. Decided to employ a charging mechanism like neurons - you know, clouds charge up then they release into other clouds, who then charge up... causing chain reactions. Too early to tell though...
Les _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
|
|
Back to top
|
|
 |
|