-
... aw : SDrone { *type {^\Saw} func { ^{|freqs, dists, amps| VarSaw.ar(freqs, {1.0.rand}!this.numChannels, dists*0.5+0.5, amps); }; } } SDroneSine : SDrone { *type {^\Sine} func { ^{|freqs, dists, amps| SinOsc.ar(freqs, {|i| sin(i)}!this.numCh ...
-
... ons s2 = cross.notes; // will die after a few generations splice = ((s1.size-2).rand + 1).max(1); // splice coordinates spl2size = rrand(3, (s2.size * 0.7).roundUp.asInteger); spl2 = (s2.size - spl2size).rand; newSeg = s1.copyRange(0, splic ...
-
... 0.5); //--add new particles and update old sys.add(RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, 10.rand], 1.5, 5.rand).age_(40.rrand(50))); sys.addForce(world.gravity); sys.update; //--render sys.do{|o| //iterate all particle ...
-
... "test").front().action_({ |v| v.postln; }).labelText_("Label test").value_(1.0.rand).value.postln; * SCMRangeSliderView() * * AUTHOR: Marinus Klaassen (2012, 2021Q3) */ SCMRangeSliderView : SCMViewBase { var <spec, <labelText, <range, <ran ...
-
... ibi (-1, -0.75 .. 1).biuni; (-1, -0.75 .. 1).biuni(0.01).round(0.001); f = { 10.rand * 0.1 }.unibi; f.value; f = { 10.rand * 0.1 }.unibi(0.01); f.value.round(0.001); f = { 10.rand2 * 0.1 }.biuni; f.value; f = { 10.rand2 * 0.1 }.unibi(0.01); ...
-
... ons s2 = cross.notes; // will die after a few generations splice = ((s1.size-2).rand + 1).max(1); // splice coordinates spl2size = rrand(3, (s2.size * 0.7).roundUp.asInteger); spl2 = (s2.size - spl2size).rand; newSeg = s1.copyRange(0, splic ...
-
... armonic shift // possible binary operators // +, -, *, /, min, max, wrap, clip, rand, round n + Note ( "A1" ); n + 1; (n / 2).asCompileString; n.rand; // only whole notes; no cents
-
... * Decay .kr( Dust .kr(10)); GTranslate .gr( GColor .gr( GCube .gr(size), Color .rand.asArray), Array .fill(3, {1.0.rand})); }.sum; GGLRenderer .gr(stuff, lighting: 0) }.play(g); ) g.freeAll;
-
... "p" ) ; 10.do({ arg i ; g.addVertex(x, y, 0, "p" ) ; g.addEdge(g.nv-2, g.nv-1, rrand(0.01, 0.1)) ; # x, y = [100.rand*[-1,1].choose+x, 100.rand*[-1,1].choose+y] ; if ( x > 1200, { x = x-1200}) ; if ( y > 800, { y = y-800}) ; if ( x < 0, { x ...
-
... PATCH...",{ var p, deltaPatternMaker, trig; deltaPatternMaker = Patch ( delta ).rand; trig = Stream2Trig (1.0, deltaPatternMaker.value ); p = Patch ( sound, [ trig ] ).rand; p.gui },minWidth: 300); },"Select sound and rhythm", 1600@600) )