Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... <gravity; var <logging = false; var logTime; var <isPlaying = false; var replayTask; var oscListener; var action; var logger; *new { ^super.new.initOC; } initOC { acceleration = Array.newClear(3); //[x,y,z] components of linear acceleratio ...

  2. Scheduling Events Help

    ... t makes sense to schedule objects that will take some action . Function Routine Task Routines and Tasks will be covered in the next section, and Functions we have already seen. There are some others, but these are the best starting point. C ...

  3. HeatMap Quark

    ... , 10.rand) monitorBus(bus, rate, colour) uses the highlight feature to create a Task reading the highlight location from a 2-channel control-rate Bus , as follows: // Using the "h" created in the above example... s.boot; b = Bus .control(s, ...

  4. LemurClient Doc

    ... "Update a fader", "Fader1", 600, 200, 100, 724); // Automate to move p = 0; t = Task({ loop { l.fader("Update a fader", "Fader1", p); p=p+50%924; 0.2.wait; }}).play; t.stop; // Add 30 faders to Lemur on a new page. l.page("Bunch of faders") ...

  5. UPattern Quark

    ... outine; // for prepared events var <>preparedEvents; var isPlaying = false; var task; var <>currentTimeToNext; var <>releaseRunningMin = inf; // by default, only release "inf" duration chains *initClass { argSpecs = [ ArgSpec( 'pattern', [1 ...

  6. Spawning Doc

    ... ts OS thread ⧉ ✔ For convenience pauseable scheduling can be implemented with a Task . Task.new takes two arguments, a function and a clock, and creates it's own Routine . If you don't specify a clock, it will create a TempoClock for you. S ...

  7. randomSeed Help

    ... domSeed , [ \freq , rrand(440, 700)]); 0.25.wait; }) }).play; ) // make a reset task ( d = 1250; // seed t = Task ({ loop({ x.set( \seed , d, \tbus , 1.0); r.randSeed = d; 0.1.wait; x.set( \tbus , 0.0); 1.9.wait; }) }); ) // sound starts to ...

  8. TempoClock Help

    ... e scheduler and releases the OS thread running the scheduler. clear removes all tasks from the scheduling queue. tempo returns the current tempo in beats per second. tempo_(newTempo) sets the current tempo in beats per second. t.tempo_(2.0) ...

  9. UPattern Quark

    ... outine; // for prepared events var <>preparedEvents; var isPlaying = false; var task; var <>currentTimeToNext; var <>releaseRunningMin = inf; // by default, only release "inf" duration chains *initClass { argSpecs = [ ArgSpec( 'pattern', [1 ...

  10. Getting Started With SC Help

    ... uffers Scheduling and Sequencing Scheduling Events Sequencing with Routines and Tasks Sequencing with Patterns

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow