-
//one object pushes away the other in a world without bounds //with mouse controlling repulsive object location ( var width= 300, height= 300, w, wgrav, world, rep, obj; //--world w= RedWindow("repulsive test1", Rect(128, 64, width, height) ...
-
... ction - a Function. this is evaluated each time that a new item is selected via mouse \ (random access) or by pressing arrow up or down on the keyboard. \ dblClickAction - a Function. This is evaluated each time the enter key is pressed or ...
-
//multiple objects are pushed away by a single //with mouse controlling repulsive object location ( var width= 300, height= 300, w, wgrav, world, n= 10, rep; //--world w= RedWindow("repulsive test2", Rect(128, 64, width, height)).front; wgr ...
-
// modulate everything ( { Bend ({ |in| in * LFDNoise3 .kr( MouseX .kr(0.1, 200, 1), 0.1, 1) }, { Splay .ar( SinOsc .ar({ exprand(300.0, 10000.0) } ! 17, 0, { 1.0.rand } ! 17)) }) * 0.1 }.play ) // basic test { Bend .time( MouseX .kr(-2, 2) ...
-
// modulate everything ( { Bend ({ |in| in * LFDNoise3 .kr( MouseX .kr(0.1, 200, 1), 0.1, 1) }, { Splay .ar( SinOsc .ar({ exprand(300.0, 10000.0) } ! 17, 0, { 1.0.rand } ! 17)) }) * 0.1 }.play ) // basic test { Bend .time( MouseX .kr(-2, 2) ...
-
//everybody chase first boid //mouse controls the first boid ( var width= 300, height= 300, w, wgrav, world, n= 50; //--world w= RedWindow("boids test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedV ...
-
... y chase first boid. interesting exploring behaviour. slow down as approaching //mouse controls the first boid ( var width= 300, height= 300, w, wgrav, world, n= 5; //--world w= RedWindow("boids test1", Rect(128, 64, width, height)).front; w ...
-
... + drag the presets to the surface (Ctrl + drag in SwingOSC). When you drag your mouse over the surface, the parameters of the presets on the surface are interpolated in relation to the position of the mouse over the surface. Double click on ...
-
//everybody chase mouse x position in 1 dimension. ( var width= 600, height= 300, w, world, n= 15, att; //--world w= RedWindow("boids test 1d", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav, ...
-
// a SynthDef that has mouse controlled modulation; // will sound different based on mousepos at server! ( SynthDef(\xxy, {|out, sustain = 1, freq = 440| var env, son; env = Line.ar(1, 0, sustain, doneAction: 2); son = SinOsc.ar( freq * [1, ...