electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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
Collecting Nature Sounds
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [36 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Wed Mar 12, 2008 9:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is some rain. Adjust the bpf Q to change rain intensity.

Code:
Noise n => BPF bpf => Gain g1 => Gain g2 => Gain g3 => dac;
g2 => g1;
g3 => g1;
g3 => g2;
g1 => bpf;
g2 => bpf;
g3 => bpf;
bpf.freq (15000);
bpf.Q (4);
g1.gain (0.333);
g2.gain (0.5);
g3.gain (1);
day => now;
Back to top
View user's profile Send private message Send e-mail
wppk



Joined: Jan 25, 2008
Posts: 31
Location: Los Angeles

PostPosted: Sat Mar 15, 2008 1:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Here's some spatial rain over a binaural beat generator. I tweaked one of Inventor's earlier patches. Very Happy Relaxing. Now it could use some of Kijjaz's killer bird sounds!!

Code:
fun void beatgen( float base, float beat, float gain, int minutes){
   
    beat/2 => float half;
    base + half => float freq1;
    base - half => float freq2;
    SinOsc s1 => dac.left;
    gain => s1.gain;
    SinOsc s2 => dac.right;
    gain => s2.gain;
    freq1 => s1.freq;
    freq2 => s2.freq;
   
    minutes::minute => now;
   
}


fun void raindistance( float gain, int minutes){
   
    while(true){
   
    Noise n =>  BPF b => LPF l  => JCRev r =>  dac;
   
    n.gain(gain);
    l.freq(10000.0);
    b.Q(8);
    b.freq( 880.0);r.mix(.1);
    minutes::minute=> now; }
}


fun void raindrops(int rainfreq, float dropvolume){
    Impulse i => BPF bpf => LPF lpf => JCRev r =>  dac;
    SinOsc  n => bpf;
    20.0 => n.freq;
    n.gain(dropvolume);
    bpf.Q (10);
    r.mix(.1);


while (true) {
    lpf.freq (100 * (5 +maybe+maybe+maybe+maybe+maybe));
    bpf.freq (500*(5+maybe+maybe+maybe+maybe+maybe+maybe+maybe+maybe));
    i.next (10*(maybe+maybe+maybe+maybe));
    (rainfreq+maybe+maybe+maybe+maybe+maybe+maybe+maybe+maybe) *5::ms => now;
}   

}


fun void rainforground() {
   
    Impulse i => BPF bpf => LPF lpf => dac;
    SqrOsc  n => bpf;
    3000.0 => n.freq;
    n.width(1.5);
    n.gain(.3);
    bpf.Q (15);
       
   
    while (true) {
        lpf.freq (50 * (5 +maybe+maybe+maybe+maybe+maybe));
        bpf.freq (80*(5+maybe+maybe+maybe+maybe+maybe+maybe+maybe+maybe));
        i.next (10*(maybe+maybe+maybe+maybe));
        (1+maybe+maybe+maybe+maybe+maybe+maybe+maybe+maybe)*100::ms => now;
    }   
   
}


spork ~ rainforground();

spork ~raindistance(.3,5);

spork~beatgen(80, .9, 0.1, 1);

spork ~raindrops(5, 1.0 );

while(true){ 100::ms => now;}
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Sat Mar 15, 2008 3:18 am    Post subject: Reply with quote  Mark this post and the followings unread

By Jove I think he's done it, haha! Very convincing rain, wppk, best so far. I'd like to plug it into guitar lab but i need a way to connect the function outputs to the master gain module, and to unChucK it as well. Regardless of that detail, it is excellent rain to save and enjoy. What does the binaural thing do? BTW, listen to this one with headphones - it sounds much better.

p.s. I'm also waiting for kijjaz to give us the bird, but I keep distracting him with threads about other projects! Anyway, it's all good progress.
Back to top
View user's profile Send private message Send e-mail
Frostburn



Joined: Dec 12, 2007
Posts: 255
Location: Finland
Audio files: 9

PostPosted: Sat Mar 15, 2008 3:58 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
What does the binaural thing do?

It messed up with your brain, man!

Playing sinewaves with slightly different frequencies into each ear cause a beating to be perceived. The mixing happens in the brain because there is nothing acoustical to produce the beat.
It has been shown that brainwaves can follow this external beating frequency. So you can entrain your brain towards a more desirable state with just a pair of stereo headphones.

more about the subject: http://en.wikipedia.org/wiki/Binaural_beats

_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
wppk



Joined: Jan 25, 2008
Posts: 31
Location: Los Angeles

PostPosted: Sat Mar 15, 2008 12:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes, Frostburn is correct . When subjecting your brain to the generator your brain wave frequencies begin to resonate with the beat frequencies. You can use different different beat frequencies to bring you brain waves into various states. Meditative, Lucid Dreaming,( a fact to which I can testify!)advanced ability to learn, retain information, problem solve etc.

So the 1st argument basically sets the base freq. which is the freq of the sine waves. Usually lower freqs are desired as higher aren't really conducive to relaxation. (higher freqs do come into play sometimes though.)

the 2nd argument sets the Beat freq. This is the freq that you want to entrain your brain waves to.

The following arguments are self explanatory.

Normally in lab situations. the sine wave beating is mixed in with pink noise to aid in relaxation. The sound of rushing water is basically pink noise on the spectrum. So i thought it'd be nice to add this into the patch.

Check out this link to a brain wave frequency listing.

http://www.lunarsight.com/freq.htm

You can also adjust the how frequent the rain drops fall by adjusting the various arguments. Very Happy
Back to top
View user's profile Send private message
kijjaz



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

PostPosted: Sat Mar 15, 2008 1:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

wppk: Wow yes.. that's such a nice rain. It's so beatifully wet ^_^ I really like how it feels. the dimensions of the sound is really great.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
wppk



Joined: Jan 25, 2008
Posts: 31
Location: Los Angeles

PostPosted: Sat Mar 15, 2008 4:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Kijjaz. I just added your bird patch and it sounds awesome. Love those birds. It's a digital jungle! I can sleep to this. Sometimes it almost sounds like R2 is in the jungle.
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Sat Mar 15, 2008 7:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

wppk, since you mention sleeping to loops of rain song, here's a link to the song "rain" that I made with earlier rains (two of them mixed in). The song is here:

http://www.freedomodds.com/music/songs/Guitar_Lab_Anxiety4.mp3

Though not as driptastic as your binaural headphone rain, it is pretty good. I added an instrument playing random notes to thoroughly clear the mind. It got good reviews from my crowd of medically diagnosed anxiety sufferers.
Back to top
View user's profile Send private message Send e-mail
kijjaz



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

PostPosted: Tue May 06, 2008 11:37 am    Post subject: Reply with quote  Mark this post and the followings unread

I happen to make another wind sound today for use with a music
(but maybe we won't need it)

so here it is hahahhhaha.. just for fun.


20080507kijjaz-Wind01.ck
 Description:
another test wind

Download
 Filename:  20080507kijjaz-Wind01.ck
 Filesize:  389 Bytes
 Downloaded:  172 Time(s)

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: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Thu Nov 05, 2009 8:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

Bump! Just bumping this thread to the top so I can find it again - I need it for a project.

Les

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



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

PostPosted: Fri Nov 06, 2009 11:27 am    Post subject: Reply with quote  Mark this post and the followings unread

And now actually we got more people and also new people visiting this great ChucK community, so I also wanna invite you all to jam in this thread. If you have some free time, try imagining what nature sound you would like to program. It can be sci-fi also, so don't hesitate if your imagination takes you out of this world.

Come, and let's ChucK Nature Sounds!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [36 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2
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
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


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