-
... register = IdentityDictionary.new, asuuid = { arg uuid; (uuid ?? {9999999999999.rand}).asSymbol; }, get = { arg uuid; var p = register[uuid.asSymbol]; if(p.isNil, { Error("Player not in registery:" + uuid.asCompileString).throw; }); p }, se ...
-
... 'tdefNdef').end; // end sound and tdef // set params by hand: // note center of random range: Ndef('tdefNdef').set(\note, 24.rand2); // amount of random deviation Ndef('tdefNdef').set(\notedev, 24.rand); Ndef('tdefNdef').set(\pan, 1.0); Nde ...
-
... d.new; //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...
-
... rts on the downbeat and occupies the whole bar. /y = "[1,]::\ins("*", 3, 0.5)::\rand("13467", "*")"; /y+; // 2. Chain starts on beat 2 // Note that a generator source can appear // anywhere within the bar! /y = "1,|[6,]::\ins("*", 3, 0.5):: ...
-
... ble).phase; // reset phase at DC & Nyquist - to 0 or pi halfPhase.put(0, pi * 2.rand).put(this.size / 2, pi * 2.rand); // mirror phase, FreqSpectrum expects full spectrum phase = halfPhase ++ halfPhase[(rfftSize-2)..1].neg; }, { // dft phas ...
-
... l(\nUFO).collAt.imu.valueAction_( MKtl(\nUFO).collAt.imu.value.collect(_ + 0.05.rand2) ); */ MKtl(\nUFO).elAt(\imu9).valueAction = 0.5; MKtl(\nUFO).elAt(\imu9).choose.action.funcDict.cs MFdef(\nUFOImuFunc).activeNames; MKtl(\nUFO).elAt(\imu ...
-
... 0.2); //dim,grav,maxvel,damp //--objects sys= RedWaveSystem(n, {|i| i}, 0, {1.0.rand}, 0.1); {|i| var loc= RedVector2D[width/n*i, height/2]; sys.add(RedObject(world, loc, nil, nil, 1.5, 12)); //world,loc,vel,acc,mass,size }.dup(n); synths= ...
-
... osition a.sourcePlane(1, true ) // add a plane wave source a.sourceAngle(1, 360.rand) // set it's angle a.sourceName(1, "new name" ) // rename it a.sourceColor(1, Color .rand) // different color a.removeSource(1) // remove it a.addNextSourc ...
-
... file15.txt" ); Task ({ 3.do{ m.open; 20.do{ m.writeLine( Array .fill( 10, { 1.0.rand })); 0.25.wait; }; m.close; 1.0.wait; }; "done" .postln; }).play; n = MultiFilePlayer .new( "testfile15.tar" ); n.readAt( 4, 2 ); n.readAt( 10 , 2 ); n.rea ...
-
... .modeStep(1); // up NTMI.nUFO.modeStep(-1); // down NTMI.nUFO.modeStep(nil); // rand /*** NTMI.nUFO.influxModes ***** the nUFO can play the influx in two different modes: NTMI.nUFO.influxModes.postcs; [ 'setRel', 'setAbs' ] - setRel means d ...