Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... , 2, 3, 4, 2, 1, 0, -1, -2], inf ); str = Pavaroh (pat, aroh, avaroh).asStream; Routine ({ loop({ synth.set( \freq , midicps(str.next + 60) ); rrand([0.1,1.0].choose, 0.5).wait; }); }).play; )

  2. MarkovPatterns Quark

    ... e) asStream { if(markovset.order > 1, { "not yet implemented".postln; ^nil }); ^Routine.new({ arg inval; var items, bag; items = [markovset.seeds.choose, 1, 1]; length.do({ if(items.notNil, { bag = markovset.dict.at(items.at(0)) }); items = ...

  3. Ref Doc

    ... (see Klank for an example). Refs can also be used to simplify the coding of co-routines used in EventStreams (see Prout for an example). x = Ref(nil); z = obj.method(x); // method puts something in reference x.value.doSomething; // retriev ...

  4. SimpleNumber Help

    ... e returns angle of receiver conceived as Polar or Complex number. wait within a routine, yield the number so that the clock can wait for this many beats. (see Routine ) // create a routine by a function fork ( fork { 1.wait; "I did wait" .p ...

  5. Object Doc

    ... ion gcInfo Iteration do generate dup Scheduling awake Stream Support next reset Routine Support yield yieldAndReset alwaysYield embedInStream idle iter cyc fin repeat loop nextN streamArg addFunc addFuncTo removeFunc removeFuncFrom instill ...

  6. SimpleController Doc

    ... 38)).front, Rect(5, 5, 320, 20)); view.onClose_{ controller.remove }; // run a routine to change the model's value: r{ 100.do{ model.value_(1.0.rand.postln).changed(\value); 0.5.wait; } }.play(AppClock) ) ⧉ ✔ helpfile source: /usr/local/sh ...

  7. Pseq Help

    ... .ar(freq, 0, env)) }).add; ) ( a = Pseq (#[60, 61, 63, 65, 72], inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.2.wait; }) }).play; )

  8. GanglionSerial Quark

    ... 00DRM0", argBaudrate, crtscts:true); CmdPeriod.add(this); this.softReset; task= Routine({this.prTask}).play(SystemClock); } close { "%: stopping and closing serial port".format(this.class.name).postln; task.stop; port.close; CmdPeriod.remov ...

  9. Actant Quark

    ... for RT sequencing: because of this aspect, it can be thought as a wrapper for a Routine . The task simply navigates the graph. From the starting vertex, it chooses randomly among the edges departing from it, sets the ending vertex as the ne ...

  10. CallWindow Doc

    ... ++ rrand(0,100).asString ++ " " ++ rrand(0,100).asString); 0.1.yield}}.fork}, "routine of random adding"); c.add(\stopTask, [\str], {a.stop}, "stop add routine"); c.add(\add, [\str, \num, \arr], {|str, num, arr| (num + arr).postln;}, "adds ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow