-
A piece i'm working on for a dance performance. ( // 'random' sequences of rhythms, reverb,... z = { var trig, seq; trig = Impulse.kr(6); seq = Drand([ Dseq([4,0,0,1,Drand([1,4]),1,0,1]), Dseq([1,0,2,0,Dran ...
-
... 000), Dwhite(500, 1000)]); var gate = Demand.kr(trig, 0, Dwhite(0.0, 1.0)); //A random number, so that gate will be reset var freqBusIndex = freqBusses + (series * 2); //Shift bus index by series var gateBusIndex = gateBusses + series; Out. ...
-
... olor Colors, Gradients and SCImages can be used with these getter/setters. ( // random colors w = Window ( "colorful" , Rect ( 200 , 200 , 250 , 120 ) ).front.decorate; 7 .do({ |i| SmoothSlider ( w, 30 @ 100 ) .knobColor_( Color .rand( 0 , ...
-
... // make some notes into triads Pbind(*[ctranspose: Pwhite(-0.1, 0.1)]), // add random detuning to notes Pbind(*[\scale, Scale.minor]), // alter the scale Pn(Pseq([p, (type: \rest, dur: 1.0)])), // repeat the pattern after a 1 second pause ...
-
... res if example if ( [false, true].choose, // Boolean expression (chooses one at random) { "expression was true".postln }, // true function { "expression was false".postln } // false function ) ( var a = 1, z; z = if (a < 5, { 100 },{ 200 }) ...
-
... colour) Allows you to highlight a single point of interest, as follows: // Some random data a = (0..9).scramble.blendAt((0.1, 0.2 .. 9)); h = a.heatMap(10, Rect (0, 0, 300, 200), xLabels: true , yLabels: true , colscheme: \bw ); h.highlight ...
-
... ) != "mixed" ) { ^{ UGlobalControl.current.keys.choose }.dup(inArray.size); // randomize } { ^inArray }; }; } }
-
... ) != "mixed" ) { ^{ UGlobalControl.current.keys.choose }.dup(inArray.size); // randomize } { ^inArray }; }; } }
-
... | glob, loc | // extend list notes being played (using some randomness :) ) glob[\patternnotes] = glob[\patternnotes].add(glob[\acceptablenotes].choose); // limit pattern to 8 notes. if (glob[\ ...
-
... tion that is called for each next stream value. // make a stream that returns a random number a = FuncStream({ 1.0.rand }); a.next; ⧉ ✔ It uses Function: -inEnvir to statically bind the function call to the environment in which the FuncStre ...