Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (889) Code (79) Doc (285) Help (132) Quark (392) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. NB_more_examples Quark

    ... ainAmplitude = alpha color of ovals // Rendering may take a few seconds ... var routine; var num = 51; var x = 0, y = 0; var txt; txt = "Grains" ; n = NB .new( "granular" , 600, 470); n.publishCode( "fontsize" .cmd(24), "text" .cmd(txt, 10, ...

  2. softVol_ Help

    ... .softVol_(sl.value, 0.05) }); // safer EZSlider (w, 340@30, \knowLastV , \amp , Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef ( \test ).softVol_(sl.value, 0.05, lastVal: lastVal); lastVal = newVal; \dummy .yield; } }); ...

  3. MetaControlSetup-AdC_HH Quark

    ... cture + ```0_globals``` -- tools and utilities * server config * sample loading routine * network config * setting up master FX * variables to find/open all files easily - q.globalsDir = thisProcess.nowExecutingPath.dirname; - q.topDir = q. ...

  4. Env segment testcode Quark

    ... 1, strategy = \atpeak| var segments = env.segment(numseg, crossfade, strategy); Routine{ segments.do{|thisseg, index| var envelop = thisseg[0]; var waittime = thisseg[1]; {SinOsc.ar(freq: exprand(200, 800), mul: envelop.kr(doneAction: 2)) ! ...

  5. Patch-spawning-and-patterns Doc

    ... b.prepareForPlay(s); // play one grain b.spawn(atTime: 0.1); // play 100 grains Routine({ 1.0.wait; 100.do({ b.spawn(atTime: 0.1); 0.25.wait }) }).play(SystemClock) ) ⧉ ✔ Note that there is a Patch method .respawn which is different. Events ...

  6. Semaphore Help

    ... .signal; // allow others access again }; // e.g. set the values to integers u = Routine { inf .do { |i| useAndModify.value([100, 200, 300], "thread 1>" ); rrand(1, 3).wait; } }; // e.g. set the values to floats k = Routine { 0.5.wait; inf . ...

  7. red03 Doc

    ... erEnd.position.y)); }; Pen.stroke; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...

  8. red03 Quark

    ... erEnd.position.y)); }; Pen.stroke; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...

  9. Debouncer Doc

    ... db = Debouncer({ "Debouncer immediate fired".postln; }, 0.5, immediate: true); Routine({ db.trigger; 0.1.wait; db.trigger; 0.1.wait; db.trigger; // should fire only once }).play; ) ( var db = Debouncer({ "Debouncer reset - should not fire" ...

  10. Klank Doc

    ... nil, rings], // specs i // input ); Out.ar(out, Pan2.ar(z*e, pan)); }).add; r = Routine{ var sustain = 8, transition = 3, overlap = 4; var period = transition * 2 + sustain / overlap; 0.5.wait; // wait for the synthdef to be sent to the ser ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow