Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... AL entropy of anything with the same range (here 0 to 1): ~tree = KDTree ({[1.0.rand, 1.0.rand]}.dup(1000)); ~tree.entropyNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entro ...

  2. KDTree Quark

    ... AL entropy of anything with the same range (here 0 to 1): ~tree = KDTree ({[1.0.rand, 1.0.rand]}.dup(1000)); ~tree.entropyNN; // The following should have a lower entropy than the above: KDTree ({[1.0.linrand, 1.0.linrand]}.dup(1000)).entro ...

  3. EM Quark

    ... for it: e.makeWindow = { |env| var win, cnt; win = Window( "e", Rect( 128 + 100.rand, 300 + 100.rand, 400, 52 )).front; win.addFlowLayout; cnt = SimpleController( env ); win.onClose_({ cnt.remove }); // remove controller at window close env ...

  4. KeyPlayerNewTests Quark

    code:: // simple random keyboard player ( s.boot; s.latency = nil; // make sure we respond quickly thisThread.randSeed = 2014; k = KeyPlayer(\rand); "qwertzuiopasdfghjklyxcvbnm".do { |char| var note = (midinote: rrand(36, 96), dur: rrand(0. ...

  5. sos_bell Quark

    ... 2, 0], [0, 0.3, 0.3, 0.3])); // A bit of FM adds 'warble' son = son * LFTri.ar({Rand(1.0, 1.8)}.dup(6), 1, 0.3, 0.7); // Mix down the partials in the main sound son = son.mean; strike = SinOsc.ar(LFNoise1.ar(freq * 36, 100, freq*8), 1, 0.1) ...

  6. grainProcess Quark

    ... me: \grainBufASR, group: self.group, synthArgs: [ \bufnum, self.bufnum, \rate, rrand(self.rateMin, self.rateMax), \startPos, self.startPos + rand(1.0) - self.durMax, \gainDB, rrand(-25, -18), \trimDB, self.trimDB, \att, rrand(self.attMin, s ...

  7. TestFlowView Quark

    ... w(w,Rect(100,100,200,200)); // nil bounds f = FlowView(c); c.background = Color.rand; f.background = Color.rand; cb = c.absoluteBounds; fb = f.absoluteBounds; this.assertEquals( cb.origin, fb.origin, "with no supplied bounds, origin should ...

  8. touchosc-simple1.desc Quark

    ... stAddr(n.hostname, n.port); Tdef(\toscTest, { inf.do { n.sendMsg('/accxyz', 1.0.rand2, 1.0.rand2, 1.0.rand2); if (0.1.coin) { n.sendMsg('/xfader'.postln, 1.0.rand); }; if (0.1.coin) { n.sendMsg("/1/fader4".postln, 1.0.rand); }; 0.1.wait; }; ...

  9. gendy1 Quark

    ... , ascale = 1, dscale = 1| var n = q.numChans ? 2; var mods, snds; // var dist = Rand(0, 7); // choose new random distrib when running // var addd = exprand(0.001, 1); // choose new random distrib when running dist = dist.lag(1); addd = addd ...

  10. GAWorkbench Quark

    ... ters for synthesis networks etc. Creation / Class Methods *new (argPoolSize, argRandomChromosomeFunc, argFitnessFunc, argMutationFunc) argPoolSize - Number of items in the gene pool. Should be tuned for each problem. Default: 100 argRandomC ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow