Author |
Message |
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Mar 12, 2008 9:47 am Post subject:
|
|
|
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
|
|
|
wppk
Joined: Jan 25, 2008 Posts: 31 Location: Los Angeles
|
Posted: Sat Mar 15, 2008 1:23 am Post subject:
|
|
|
Here's some spatial rain over a binaural beat generator. I tweaked one of Inventor's earlier patches. 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
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sat Mar 15, 2008 3:18 am Post subject:
|
|
|
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
|
|
|
Frostburn
Joined: Dec 12, 2007 Posts: 255 Location: Finland
Audio files: 9
|
Posted: Sat Mar 15, 2008 3:58 am Post subject:
|
|
|
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
|
|
|
wppk
Joined: Jan 25, 2008 Posts: 31 Location: Los Angeles
|
Posted: Sat Mar 15, 2008 12:05 pm Post subject:
|
|
|
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. |
|
Back to top
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Sat Mar 15, 2008 1:09 pm Post subject:
|
|
|
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
|
|
|
wppk
Joined: Jan 25, 2008 Posts: 31 Location: Los Angeles
|
Posted: Sat Mar 15, 2008 4:01 pm Post subject:
|
|
|
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
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Sat Mar 15, 2008 7:05 pm Post subject:
|
|
|
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
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
|
Back to top
|
|
|
Inventor
Stream Operator
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Nov 05, 2009 8:12 pm Post subject:
|
|
|
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
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Fri Nov 06, 2009 11:27 am Post subject:
|
|
|
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
|
|
|
|