Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (241) Code (11) Doc (45) Help (24) Quark (161) SCDoc ↗ Forum ↗ Google ↗
  1. Thread Doc

    ... ne, or in response to OSC and MIDI messages, the main Thread 's clock is set to SystemClock . When code scheduled on a Clock is run, that clock becomes the main Thread 's clock. Child Threads inherit the associated clock from their parents ...

  2. SETObject Quark

    ... / pr_initSETObject {|argFormat, argID| format = argFormat; id = argID; tStamp = SystemClock.seconds; // init vars classID = 0; pos = Array.newClear(3); rotEuler = Array.newClear(3); rotAxis = Array.newClear(3); velocity = Array.newClear(6); ...

  3. SmoothSlider Quark

    ... it doesn't need a deferred function to get or set its value when called from a SystemClock thread or OSC/MIDI responder. And when the action is called (via valueAction or doAction) it is done immediately instead of with the AppClock delay ...

  4. Debugging-tips Doc

    ... sometimes an indication of poor design. If this is the case, avoid them. a = 0; SystemClock.sched(2, { a.postln }); // crashes when scheduler fires the function ⧉ ✔ When a scheduled function executes, if it returns a number, the function wi ...

  5. UScore Quark

    ... get the current pos when the update task is not running startedAt = [ startPos, SystemClock.seconds ]; //this is for prepareWaitAndStart preparePos = if(needsPrepare){ preparePos.min(startPos) }{ startPos }; deltaToStart = startPos - prepar ...

  6. SCWindow Help

    ... y to set parameters of a Window or a GUI widget from a Routine , which uses the SystemClock by default, you must wrap it in a deferred function: { myWindow.bounds_( Rect(100,500,200,200) ) }.defer . You do not need to use .defer, if you use ...

  7. UtopiaExamplesMultiUser_1 Quark

    ... r process ~master = ConductorClock(~addrBook); ~slave1.sched(1, {\foo.postln}); SystemClock.sched(1, {\bar.postln}); a = Pbind(\degree, Pseq((1..4), inf)).play(~slave1, quant: 1); b = Pbind(\degree, Pseq((5..8), inf)).play(~slave2, quant: 1 ...

  8. SS_SCMIR Quark

    ... ; 0.wait; inf.do{("waiting"++time+"s").postln; time = time+1; 0.1.wait;} }.fork(SystemClock); pipe = Pipe(command, "r"); line = pipe.getLine; //"Pipe here".postln; // get the first line while({line.notNil}, {line.postln; line = pipe.getLine ...

  9. BBCut2 Quark

    ... keep++cache; //sort toschedule into order, and prepare as deltas for sequential SystemClock scheduling toschedule= toschedule.sort({arg a,b; a[0]<b[0]}); //into delta times toschedule.do({arg val,i; if(i<(toschedule.size-1),{ val[0]=(tosche ...

  10. SCQuartzComposerView Help

    ... p = 0.25; i = 0; //m.setInputValue(\period, p); //m.maxFPS_(p.reciprocal * 2); SystemClock .sched(0.0, { b.getn(0, 256, { arg buf; var z, x; z = buf.clump(2).flop; z = [ Signal .newFrom(z[0]), Signal .newFrom(z[1])]; x = Complex (z[0], z[1 ...

prev 21 22 23 24 25 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow