[chuck-users] Insteresting sound when playing 2 or more instances at the same time.
ronni montoya
ronni.montoya at gmail.com
Sun Aug 12 07:38:48 EDT 2012
Hi list, when i play 2 or instances of the same code it generate
wierd results, it adds new sounds to the existing sounds.
Do anybody have any idea whats the reason of this.
Is this because some kind of lack in the memory?
Any idea of how to replicate this sound from inside chuck
Thanks
Try this code 3 times and your are gonna listen rythmic patterns , for example:
chuck chuqui.ck chuqui.ck chuqui.ck
here is the code:
Step s => dac;
// modulator
SinOsc m => blackhole;
0.00052 => m.freq;
SinOsc g => blackhole;
0.0082 => g.freq;
SinOsc t => blackhole;
0.00055 => t.freq;
6 => float v;
6 => float k;
6 => float n;
fun void sample_manipulation( )
{
0.002 + k => k;
0.0002 + n => n;
210 * (now/ samp) => Math.sin => Math.tan => v;
if (v > Math.sin(k / 5) + 0.95) {
v + Math.sin(k / 10) => k;
0.008 * 10 / m.last()=> k;
}
if (v < Math.sin( k) + 0.3) {
-0.2 * 2 / g.last() * t.last() => v;
}
if (v < 0.2 ||v > 0.8 ) {
v + Math.sin(n / 25) => v;
}
v + ( v * 10 ) / m.last() * Math.atan( m.last() ) => v;
v * ( v * 100 ) * m.last() * Math.asin( m.last() ) => v;
}
while (true)
{
sample_manipulation ( ) ;
v => s.next;
1::samp => now;
}
More information about the chuck-users
mailing list