View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

moskitos interactive

//moskitos interactive (sc2)
//Julian Rohrhuber 2000
(
var f, f0;
f0 = 100;
f = { arg f1; 
        var e;
        
        e = Env.new([0.0001, [1, 0.5, 0.2].choose, 0.0001],[3.5.rand, #[3.5, 4, 2, 3, 4.4, 10].choose+3.0.rand], 'exponential');
        EnvGen.kr(e)*Formant.ar(LFNoise1.kr(4, LFNoise1.kr(0.03, 14, 15), f1), Line.kr(24*f1+f1.rand2, 12*f1, 2.1.rand), 1000)
        };

{ 
        var m, my, f1; 
        m = MouseX.kr(0.3, 20);
        //my = MouseY.kr(200, 1000);
        m = LFNoise1.kr(LFNoise1.kr(1/25, 0.2, 0.23)) + LFNoise1.kr(1/40, 4, 3.99);
        my = LFNoise1.kr(1/10, 400, 800).min(SinOsc.kr(0.05, 0, 100, 500));
        Spawn.ar({ arg sp, i, sy; sp.nextTime = m.poll.rand;
                        
                        Pan2.ar(f.value(my.poll), SinOsc.ar(1.0.rand)) 
                }, 2, 2, inf, 0.2)
                        
}.play;
)



Links to this Page