Gestus Sound Library: Looping the Robot

The following example has been added to my “SC Sound Library” as another synth that can be assigned to a fiducial object or a blob in order to enrich musical experimentation. Here is the code:

3. Looping the Robot

// Set a value to x
x = 1
x = 5
x = 7
x = 15
   
( // Play the loop
{
    loop {
       
{ FreeVerb.ar(Blip.ar([x*1500.rand, x*1700].rand) * EnvGen.kr(Env([0, 1, 0],[0.1, 0.3],\welch), doneAction: 2), Line.kr(10, 0.2, 0.1)) }.play;
0.2.wait;
       
{ FreeVerb.ar(LFSaw.ar([x*1500.rand, x*1500]) * EnvGen.kr(Env([0, 0.5, 0],[0.1, 0.3],\welch), doneAction: 2), Line.kr(10, 0.2, 0.1)) }.play;
0.2.wait;

{ FreeVerb.ar(Impulse.ar([x*500.rand, x*700.rand]) * EnvGen.kr(Env([0, 1, 0],[0.1, 0.3],\welch), doneAction: 2), Line.kr(10, 0.2, 0.1)) }.play;
0.2.wait;   

{FreeVerb.ar(VarSaw.ar([x*1500.rand, x*1500.rand]) * EnvGen.kr(Env([0, 1, 0],[0.1, 0.3],\welch), doneAction: 2), Line.kr(10, 0.2, 0.1))}.play;

0.2.wait;
    }
}.fork;
)

Cygnus Tue, 10 May 2011, 13:40PM