Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (556) Code (37) Doc (146) Help (56) Quark (314) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. AudioMulchClock Doc

    ... d at some future beat - usually the next beat or next 4 beats (bar). Arguments: task A Function . The function is passed tick, time and clock as first three arguments. quant 1 plays on the next beat, 4 on the next bar etc. Also fractions of ...

  2. CVEvent Quark

    ... ~controller.remove; ~controller = nil; ~buffer.free; }, get: { | ev, del = 0 | Task({ del.wait; ev[\server].sync; ev[\buffer].getn(0, ev[\display].value.size, { | vals| if (ev[\msg] != \signal) { vals = vals.clump(2).collect { |a| [ a[0], ...

  3. Laptop Quark

    ... ls.setData( 9, vals.copyToEnd(1); ) } ) }; processes.put( 8, "motiontrackosc"); Task({ 5.0.wait; this.camera.hide(1); this.camera.subscribeDir(1); 1.0.wait; internals.add( \headx, [9,0]); internals.add( \heady, [9,1]); internals.add( \heada ...

  4. zkarpluck1 Quark

    ... messages { a=~function.play; s.sync; a.set(\amp, 1); a.set(\t_trig, 1 ); // t = Task({ { a.set(\t_trig, 1); 1.wait; a=~function.play; s.sync; }.loop }); t = Task({ { a.set(\t_trig, 1); 0.2.wait; }.loop }); t.start; }.fork; a.set(\c1, 30); a ...

  5. DrawIcon Quark

    ... \clock , window.view.bounds.insetBy(10,10), d.hour, d.minute, d.second ) }; t = Task ({ loop { d.localtime; { if( w.notNil && { w.dataptr.notNil }) { w.refresh; } }.defer; 1.0.wait } }).start; w.onClose_({ t.stop; }); w.refresh; ) ( // post ...

  6. PHSpar Quark

    ... f key / value pairs for the HSpar synth(s). latency - SimpleNumber (seconds). asTask(clock, quant, hsStop, hsPlay, switchStop, newEnvir, removeCtrWithCmdPeriod) Returns a wrapper Task, which may be passed to a VarGui object. Playing and sto ...

  7. startup_example_customize Quark

    ... outAll; }); }); // now really start the server, then load setup in doWhenBooted Task { 0.5.wait; s.quit; // sometimes the server must be quit first, 1.wait; // and waiting between steps can be helpful. // tell me the new server configuratio ...

  8. Process Doc

    ... f the main Thread: Code evaluated in code editor Code evaluated on command line Tasks scheduled on any Clock Functions evaluated in response to incoming OSC and MIDI messages This means that thisThread will always initially point to the mai ...

  9. zkarpluck2P Quark

    ... messages { a=~function.play; s.sync; a.set(\amp, 1); a.set(\t_trig, 1 ); // t = Task({ { a.set(\t_trig, 1); 1.wait; a=~function.play; s.sync; }.loop }); t = Task({ { a.set(\t_trig, 1); 0.2.wait; }.loop }); t.start; }.fork; a.set(\c1, 30); a ...

  10. 20140103_1504 (pluck piece) by nathan (nathan) Code

    ... p, Pwhite(0.3, 0.6), \decay, 3 ).play; ) // bass ( b = Task({ var delta, dur, note; dur = Prand([10, 15], inf).asStream; note = Pwrand([145, 290], [0.8,0.2], inf).asStream; while { ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow