Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (225) Code (25) Doc (78) Help (44) Quark (78) SCDoc ↗ Forum ↗ Google ↗
  1. Constraints Doc

    ... ke a function .do({ arg num; num.postln; }); ) ( // Use to filter a Pattern p = Pseries(0,1,100) .select(c); ) // Unfiltered Pseries(0,1,100).asStream.all.do({arg num; num.postln;}) // Filtered p.asStream.all.do({ arg num; num.postln }); ( ...

  2. PLx_and_live_coding_with_Strings Doc

    ... .1, \i, \sin); // chars for the string, event patterns or events ~a = Pbind(\m, Pseries(60, 2, 4)) <> ~x; ~b = Pbind(\m, Pseries(80, -2, 8)) <> ~x; ~c = (i: \saw, m: [95, 96, 97], d: 0.8); // define sequence ~p = "aab" ) // symplay wraps in ...

  3. Pkey Doc

    ... f a Pkey's result /equals/ another value, // be sure to use |==| p = Pbind( \a, Pseries(1, 1, inf), \b, Pif( Pkey(\a) == 2, "equals 2", "nope" ) ).asStream; p.next(()); // 'b' is always "nope" p = Pbind( \a, Pseries(1, 1, inf), \b, Pif( Pke ...

  4. Pif Doc

    ... ut, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pif(Pfunc({ 0.3.coin }), Pn(Pseries(0.5, 0.1, 10)), Pn(Pseries(6, -0.1, 10))).asStream; { loop { Synth(\help_sinegrain, [\freq, a.next * 600 + 300]); 0.2.wait; } }.fork; ) ⧉ ✔ helpfile sou ...

  5. PsymNilSafe Doc

    ... xample ( s = Server.local; Server.default = s; s.boot; ) ( x = Pbind(\midinote, Pseries(60, 1, 10), \dur, 0.5).asStream; y = Pbind(\midinote, Pseries(90, -1, 10), \dur, 0.5).asStream; z = Pseq([2, 3, 1, 2], 1).asStream; ~a = Pfuncn({ x.next ...

  6. PG_Cookbook02_Manipulating_Patterns Doc

    ... ames, picking one value from whichever stream is chosen this cycle. This use of Pseries is essentially a random walk among scale degrees. It has more linear continuity than the equal distribution generated by Pwhite. Even though the higher ...

  7. PG_Cookbook01_Basic_Sequencing Doc

    ... t of chord intervals to a melody that's always on top. It's a compound pattern, Pseries(...) + Prand(...), where Pseries returns a single number and Prand returns an array. As with regular math operations, a number plus an array is an array ...

  8. PG_02_Basic_Vocabulary Doc

    ... randomly, according to weighted probabilities (same as list.wchoose(weights) ). Pseries(start, step, length) Arithmetic series (addition). Pgeom(start, grow, length) Geometric series (multiplication). Pwhite(lo, hi, length) Random numbers, ...

  9. PSx_stream_patterns Doc

    ... , PSdup , PSrecur , PSloop Examples ( p = Pseq([ PS(Pseq((1..9), inf), 3), PS((Pseries() + 1) * 100, Pseq([1,2,3], inf)) ], inf); q = p.asStream; q.nextN(50); ) // ATTENTION: // It is important to remember that, differing from normal // Pa ...

  10. PMantissaMask Doc

    ... ethods Examples {MantissaMask.ar(Line.ar(-1, 1, 0.1))}.plot(0.1); PMantissaMask(Pseries(-1, 0.02, 100)).asStream.nextN(100).plot; //similar ⧉ ✔ helpfile source: /tmp/scquark_hs/UGenPatterns/HelpSource/Classes/PMantissaMask.schelp link::Clas ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow