Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... = 0, freq = 400, att = 0.005, rel = 0.1, amp = 0.1| var sig = { SinOsc.ar(freq, Rand(0, 2pi)) } ! 2; sig = sig * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2); OffsetOut.ar(out, sig); }).add; SynthDef(\saw_grain, { |out = 0, freq = 400, ...

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

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

  5. Dawn and Mist by alessandrovalentino (sandrovale) Code

    ... b4)*m)*0.01; local= LocalIn.ar(2)+sig.dup; 15.do{local=AllpassN.ar(local,0.06,Rand(0.001,0.06),3)}; LocalOut.ar(local*feed); Out.ar(0,LPF.ar(sig+local,1000)*(0.5+In.kr(~c2))); }; ).add; SynthDef(\out,{arg vol=0;var sig; Out.ar(0,[0. ...

  6. OSCMon Doc

    ... names.as(Event); o.addresses; ( n = NetAddr.localAddr; Tdef(\test, { loop { (exprand(0.03, 0.3) * 3).wait; n.sendMsg([\test, \yo, \mama].choose, *{ 10.rand }.dup(rrand(3, 10))); }; }); Tdef(\test).play; ) o.anaDict[\nicknames]; o.anaDict[\m ...

  7. pvcollect Help

    ... h: //mag; //[mag, phase]; //[mag, phase] / 3; //[mag, phase].sqrt; //[mag, 3.14.rand]; //[mag, LFNoise0.kr.range(0, 3.14)]; //[mag * Dseq([1, 0, 0, 1, 1, 0, 1, 0].stutter(8), 999999999999)]; // Can even use Demand ugens! One val demanded ea ...

  8. Kalimba by snappizz (snappizz) Code

    ... / Basic tone is a SinOsc snd = SinOsc.ar(freq) * EnvGen.ar(Env.perc(0.005, Rand(2.5, 3.5), 1, -8), doneAction: 2); // The "clicking" sounds are modeled with a bank of resonators excited by enveloped pink noise snd = (snd * (1 ...

  9. NAryOpFunction Doc

    ... a.value; // again, with a different value. ⧉ ✔ // sound example ( var a = { 1.0.rand }; var b = a.linexp(0, 1, 40, 20000); fork { 15.do { (instrument: \default, freq: b.value).play; 0.3.wait; } } ) ⧉ ✔ helpfile source: /usr/local/share/Supe ...

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

prev 81 82 83 84 85 86 87 88 89 90 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow