-
... }.play; }; Tdef(\player, { var p; inf.do{|i| (i % 4 == 0).if({ p = 0; },{ p = 6.rand; }); m.(p, 1.0.rand); 0.125.wait } }).play k.elAt(\pad, 1).value = 1 ****/ ( deviceName: "nord drum2", protocol: 'midi', deviceType: 'drum', elementTypes: ...
-
... rray.newClear(param[0].size); win = SCWindow(" fastgui: " ++ name, Rect(10 + 20.rand, 500 + 20.rand, 300, (param[0].size * 20) + 50), false); win.view.decorator = lay = FlowLayout(win.view.bounds, 5@5, 5@5); SCStaticText(win, 50 @ 15).font_ ...
-
... ); }) } nextIndex { var res; if(transitions.isNil) { ^collective.addresses.size.rand }; ^if(weights.isNil) { transitions.size.rand } { res = transitions[weights.windex]; if(res.isNil) { Error("not the right number of transitions / weights") ...
-
... , unicode, keycode; var zoom = this.getScale(modifiers); // standard keydown // rand could also use zoom factors if (char == $r, { this.valueAction = 1.0.rand; ^this }); if (char == $n, { this.valueAction = 0.0; ^this }); if (char == $x, { ...
-
... , 0.15, 0.13, 0.09, 0.25, 0.23, 0.2, 0.15 ]) / 5 * [1, 0.5], \ctranspose, Array.rand(20, 0.9, 1.105) + [0, 12], \dur, Pseq([Pn(0.8, 6), 1.8, 0.8, 0.81, 0.83, 0.84, 2]) * 1.1, \att, 0.1, \rel, Pseq([Pn(0.5, 10), 3]), ).play; )
-
... 0. // percentage is of the number of events, not of loop duration c.start = 1.0.rand; // c.length = 1.0.rand; // c.length = 0.1.rand; // // full loop c.start_(0).length_(1); // 'sequence jitter': loop index moves as before, // the actual ev ...
-
"ScatterView2" ; ( // three dimensional dataset d = ({1.0.rand}!9000).clump(3); w = SCWindow .new("ScatterView Example"); v = ScatterView2 (w, Rect (10, 10, 380, 380), d); v.selectionMode = \nextNeighbour ; v.background = Color .black; w.fr ...
-
... out latestReplace, this would trigger 5 times ( 5.do { | i | a.replace({ Saw.ar(Rand(220, 440)) * EnvPerc.ar(release: 0.1) * 0.3 }, sched: 1) } ) //Without latestReplace, this would trigger 5 times ( 5.do { | i | (i * 200).postln; a.from(i ...
-
... , height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--objects { var mass= 1.0.rrand(4); //random mass for each object RedObject(world, RedVector2D[width, 20].rand, 0, 0, mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.dra ...
-
... 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| SmoothRangeSlider ( w, 30 @ 100 ) .knobColor_( Color .rand( ...