electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Thunder
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


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

PostPosted: Thu Apr 22, 2010 10:11 pm    Post subject: Thunder
Subject description: Advice on how to make thunder in ChucK?
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Apr 23, 2010 8:51 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Fri Apr 23, 2010 11:37 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Inventor
Stream Operator


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

PostPosted: Fri Apr 23, 2010 11:55 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Inventor
Stream Operator


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

PostPosted: Fri Apr 23, 2010 11:58 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Inventor
Stream Operator


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

PostPosted: Fri Apr 23, 2010 12:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Inventor
Stream Operator


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

PostPosted: Sun Apr 25, 2010 4:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail
Inventor
Stream Operator


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

PostPosted: Sun Apr 25, 2010 11:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here is some thunder. It has a charging mechanism and a charge transfer (lightning) mechanism between clouds. sound is panned according to x position. clouds self-lighten if a threshold is reached. clouds are connected together with nearest neighbor connections.

It sounds ok.

Les


Thunder2.ck
 Description:
Some Thunder

Download (listen)
 Filename:  Thunder2.ck
 Filesize:  3.65 KB
 Downloaded:  314 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


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

PostPosted: Tue Apr 27, 2010 11:59 am    Post subject: Reply with quote  Mark this post and the followings unread

OK i have the thunder more realistic now but it starts up with a resounding storm which eventually fades into nothingness. I need something more storm-like. Any suggestions?

Les


Thunder4.ck
 Description:
Some more Thunder (with issues)

Download (listen)
 Filename:  Thunder4.ck
 Filesize:  3.51 KB
 Downloaded:  347 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use