Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. player.api Quark

    ... 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 ...

  2. tdefNdef Quark

    ... '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 ...

  3. 092-livecoding-worlds Quark

    ... 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)); }. ...

  4. cl-manual-examples Quark

    ... 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):: ...

  5. FreqSpectrum Quark

    ... 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 ...

  6. 1f_nUFO_relative Quark

    ... 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 ...

  7. 031-wave_synth Quark

    ... 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= ...

  8. SharedWFSExample Quark

    ... 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 ...

  9. MultiFilePlayer Quark

    ... 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 ...

  10. 1z_settingsExamples Quark

    ... .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 ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow