-
... Bits Inherited class methods Instance methods do reverseDo clip fold wrap coin xrand2 modSeaside isFloat asFloat as32Bits high32Bits low32Bits asCompileString asStringPrec dump Using Floats as replacement for Integers Inherited instance met ...
-
... ) }).store ); ) // start a process ( q.rout = Routine { var dt; loop { dt = exprand(0.01, 1.2); Synth(\help_PlayBuf, [ \bufnum, q.b[\apollo], \rate, 0.06 * [1, 2, 3, -1, -2, -3].choose + 1, \offset, 1.0.rand, \sustain, dt * rrand(1.0, 1.3) ...
-
... for a dedicated block of statements: GUI .cocoa; GUI .useID( \swing , { Array .rand( 1000, 0.0, 1.0 ).plot }); GUI .current.id.postln; // --> still cocoa You can get a particular kit using the *get method. You can switch to a particular ki ...
-
... ton.new( window, 80@20 ).states_( [[ "new colors" ]] ) .action_({ ({ |i| Color .rand(0.0,1.0); } ! 9) .sort({ |a,b| a.hue <= b.hue }) .do({ |color, i| comps[i].background_( color ) }); process.value; }); button.doAction; GUI .button.new( wi ...
-
... test_bla" ++ i).asSymbol] = { |ring = 0.02| Pan2 .ar( Ringz .ar( Impulse .ar(exprand(0.5, 4)), exprand(300, 3000), ring), 1.0.rand2, 0.2) }; }; Spec.add(\ring, [0.0001, 1, \exp]); ) // make a UC33Ktl, and map it to the mixer: // the sliders ...
-
... ; table2 = Signal.newClear.asWavetable; table3 = Wavetable.sineFill(1024, Array.rand(64, 0.0, 1.0)); FileDialog.new( { |ok, path| var myPathName, myPathOnly; if (ok, { myPathName = PathName.new(path); myPathOnly = myPathName.pathOnly; ("wri ...
-
... = 1), { if ( (rbuttons[scene][cc - knobs_note].val == 1), { // TODO: smooth the randomness a little bit p = 1.0.rand; }); if ( (sbuttons[scene][cc - knobs_note].val == 1), { p = (val.linlin(0,127,-1,1) - knobs[scene][cc - knobs_note].tmpSva ...
-
... dexArray = {{0} ! 10} ! 10; // storing indexes to buffers directionsArray = {{8.rand} ! 10} ! 10; // the directions of the toshios stateDict = (); stateNum = 0; outbus = 0; globalvol = 1; // clock = TempoClock.new(1, 0, Main.elapsedTime.cei ...
-
... ( poolSize, paramSpace, { 1; }, {|chrom| var tempChrom = paramSpace.value; var randIndex = (tempChrom.size - 1).rand; chrom[randIndex] = tempChrom[randIndex]; chrom; } ); gaInstance.mutationProb = 0.1; sGroups = servers.collect({|srv| Grou ...
-
... y.svg" , [ ] ); 10.do({ f.add( SVGPath ([[ \M , 200, 200]] ++ ({ [ \s ] ++ ({50.rand2}!4) }!10), strokeColor: Color .rand) ); }); ) f.plot; f.writePDF; // will produce a .ps file instead if GhostScript is not installed Note: in the current ...