Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (91) Code (15) Doc (17) Help (12) Quark (46) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. StaticText Doc

    ... ", "Gadget", "MarkerFelt-Thin" ].choose, 11)) }); r = { inf.do { |i| thisThread.randSeed_(1284); a.do { |item| // setting GUI values is asynchronous, so you must use .defer { item.bounds = Rect( 5 + w.bounds.extent.x.rand * abs(cos(i * 0.01 ...

  2. KeyPlayerGui Doc

    ... rd 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.1)); k.putDown(char, { |char| ...

  3. 8_mainstage_adc Quark

    ... { rMViews[1].value_(NTMI.inph.presIndex); rMViews[2].value_("seed" + NTMI.inph.randSeeds[NTMI.inph.presIndex]); NTMI.g.main.bigUVUpdate; } } }); rMViews[0].action.add(\setzoom, { |mv| NTMI.setZoom(mv.value) }); rMViews[0].label_(\zoom).val ...

  4. ntmi_defaults Quark

    ... : //// TODO: should also take strings for codefile paths ... NTMI.defaults.inph_randSeeds = [ 7, 13, 23, 42, 86, rrand(0, 1000), \diagL ]; // // the preset key/name to set on startup NTMI.defaults.inph_presIndex = 0; /* NTMI.defaults.postIn ...

  5. child Quark

    ... ; // same random choices every run ({[0, 5, 7].choose} in a command) thisThread.randSeed = 1234; "RADTEST:SETUP".postln; // setup waits longer: building the mixer pauses for the server, and a // command typed before it is ready fails (seen ...

  6. WFSSynthDef Quark

    ... dioFunc = ( 'blip': { |rate = 1, freq = 100, noiseLevel = 0.125, blipLevel = 1| RandSeed.ir( 12345 ); // always the same noise ( Blip.ar( freq, 100, blipLevel * 0.125) + PinkNoise.ar( noiseLevel )) * LFPulse.kr(10 * rate); }, 'buf': { |bufP ...

  7. slotGuis Quark

    ... nitor.isPlaying, NTMI.g.main.sliderCols[0], NTMI.g.main.sliderCols[1]); var ndefRandSeed; var isDecoupled = NTMI.inph.decoupled.includes(ndef.key); var presetName = NdefPreset(ndef).currSet.key; var newLabel = ndef.key.asString; if (presetN ...

  8. Stream Help

    ... ample 2: the reset function ( f = { 33.rand }; x = FuncStream (f, { thisThread .randSeed_(345)}); x.reset; 10.do({ [f.next, x.next].postln }); x.reset; 10.do({ [f.next, x.next].postln }); ) Routine(nextFunction, stacksize) In a FuncStream, ...

  9. Date Doc

    ... random number generator. See also randomSeed . ( var a = Date.seed; thisThread.randSeed = a; 20.do { [1, 0].choose.post }; "".postln; thisThread.randSeed = a; 25.do { [1, 0].choose.post }; "".postln; ) ⧉ ✔ Inherited class methods Instance ...

  10. Canvas3D Doc

    ... 0, 400.0) } ! 3; var c = { rrand(8000.0, 10000.0).round(10) } ! 3; //thisThread.randSeed = Date.seed; w = Window("lissajous", Rect(128, 64, width, height), false) .front; u = Canvas3D(w, Rect(0, 0, width, height)) .background_(Color.black) ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow