Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (243) Code (19) Doc (75) Help (19) Quark (129) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Debounce Doc

    ... this several times until d goes on. d.size = 5; // simulate input from arduino Tdef(\deb, { var dt = 0.03; inf.do { 30.do { d.set(1); dt.wait; }; "crackly on ".postln; rrand(1, 10).do { d.set(2.rand.postln); dt.wait; }; 30.do { d.set(0); d ...

  2. RedMst Doc

    ... 00, 600], inf)); b= Pdef(\pdef, Pbind(\degree, Pseq([0, 1, 2, 3, 5], inf))); c= Tdef(\tdef, {inf.do{|i| i.postln; 1.wait}}); d= Ndef(\ndef, {SinOsc.ar([900, 909], 0, 0.3)}); e= Routine({inf.do{|i| (i*10).postln; 1.wait}}); f= Patch(Instr(\t ...

  3. 063-angents-fm_synth Doc

    ... , 14, 16].choose), inf).asStream, \level: 0 ); }; objsFunc.dup(n); //--sequence Tdef(\seq, { loop{ drums.do{|d, i| var amp= world.objects[i].state[\amp].next; world.objects[i].state[\level]= amp; if(amp>0, { d.set(\t_trig, 1, \amp, amp); }) ...

  4. Mem Doc

    ... .used.keep(-5); // Mem also works with dictionaries and keys: ( ~mem2 = Mem(8); Tdef(\memhelp, { ~dict = (); (1..10).do { |num| ~dict.put(num, { "aeiou".choose ++ "bcdfg".choose }.dup(3).join) }; inf.do { var choices = ~mem2.filterDict(~dic ...

  5. OpenObject Doc

    ... essage " at " can be accessed remotely. As name, use the scheme: name_key, e.g. Tdef_x for Tdef(\x). . openProxies Register the proxy classes Tdef , Ndef , Pdef , Pdefn , Ndef and Fdef (convenience method). *lookup is set to true. s.boot; O ...

  6. JITGui Doc

    ... me moveTo close How JITGuis work 1 - Methods that subclasses should implement setDefaults accepts makeViews 2 - For updating the JITGui, overwrite these methods getState checkUpdate 3 - More methods you may want to overwrite if required cal ...

  7. 062-angents-fm_synth Doc

    ... am, \level: 0 ); }; objsFunc.dup(n); //create n agents for startup //--sequence Tdef(\seq, { //play the state of the agents loop{ drums.do{|d, i| //all 4 instruments var amp= world.objects[i].state[\amp].next; world.objects[i].state[\level] ...

  8. Activity Doc

    ... // more activity creates wider melody jumps, // and higher amplitude/distortion Tdef(\ting, { loop { if (a.level > 0) { (instrument: \ting, note: (12 * a.level.rand2.clip2(4)), amp: a.level).play; }; 0.1.wait; } }).play; ) // add to activit ...

  9. Dejitter Doc

    ... in very small steps j.set(0.492); // ok, down j.dump; // movement + jitter - ( Tdef(\dejit, { var val = 0.5, inc = 0.005, jit = 0.01; a = List[]; 100.do { if (0.1.coin) { inc = inc.neg }; val = val + inc + jit.rand2; if (j.set(val)) { a.ad ...

  10. Working_with_HID Doc

    ... lue ); }, \Y ); ⧉ ✔ Finding a device automatically again after it is detached ( Tdef( 'tryOpenHID' , { var keepLooking = true; while ( { keepLooking } ){ if ( ~myhid.notNil ){ if ( ~myhid.isOpen ){ keepLooking = false; } }; if ( keepLooking ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow