Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (572) Code (144) Doc (154) Help (54) Quark (220) SCDoc ↗ Forum ↗ Google ↗
  1. TempoClick Doc

    ... / so this Pbind will stay in sync with the synth ( p = Pbind( \degree, Pstutter(Pwhite(1, 4, inf), Pwhite(-2, 9, inf)) - #[0, 2, 4], \dur, Pwrand([Pseq(#[0.125, 0.375], 1), 0.25, 0.5, 0.75], #[1, 4, 3, 1].normalizeSum, inf), \sustain, max(0 ...

  2. PLIdev Doc

    ... efix: "rhythm type: ") .collect(~rhythms[_]).flatten * 0.3, \midinote, Pstutter(Pwhite(1, 2), Pclump(3, Pxrand((50..100), inf))).flatten + [0, 12], \pan, Pstutter(Pwhite(1, 2), Pclump(3, Pwhite(-1.0, 1))).flatten ).play; ) // more variation ...

  3. Prewrite Doc

    ... e, Pseq((3..0)))); // Random scale degrees Pdef(\c, Pbind(\dur, 0.125, \degree, Pwhite(0, 10, 8))); // Use the L-system to put together a sequence of keys // Psym will then retrieve the patterns from the global Pdef dictionary // See the po ...

  4. AlgaPattern Doc

    ... eq([220, 440, 880], inf), \freq, time: 3, sched: 1); //Interpolate over the new Pwhite. a.from(Pwhite(220, 880), \freq, time: 3, sched: 1); //Interpolation can be sampled and held instead of being dynamic a.from(Pseq([220, 440, 880], inf), ...

  5. PSdup Doc

    ... resp. p y.nextN(10) // data sharing with event patterns ( p = Pbind( \midinote, Pwhite(60, 90) + PLrand([0, 0, [0, -3]]), \dur, PLrand([0.2, 0.4]), \amp, PLrand([0.07, 0.12, 0.2]), \type, Pfunc { 0.1.coin.if { \rest }{ \note } }, \pan, 1 ); ...

  6. Punop Doc

    ... l; ) // some common cases: Pseq([1, 2, 3]).squared; Pseq([0.2, 0.5, 0.8]).coin; Pwhite(-100, 100, inf).abs; // sound example ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05, amp = 0.1| var env; env = EnvGen.kr(Env.perc(0. ...

  7. PG_Cookbook01_Basic_Sequencing Doc

    ... would hear a C major triad in first inversion. ( p = Pbind( \degree, Pseries(7, Pwhite(1, 3, inf) * Prand(#[-1, 1], inf), inf).fold(0, 14) + Prand(#[[0, -2, -4], [0, -3, -5], [0, -2, -5], [0, -1, -4]], inf), \dur, Pwrand(#[1, 0.5], #[0.8, 0 ...

  8. PmonoArtic Doc

    ... amp; Out.ar(out, sig ! 2) }).add; ) p = PmonoArtic(\sawpulse, \dur, 0.2, \freq, Pwhite(1, 8) * 100, \legato, Pwrand(#[0.5, 1.0], #[0.1, 0.9], inf)).play; p.stop; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/PmonoAr ...

  9. PG_Cookbook04_Sending_MIDI Doc

    ... here \chan, 0, // degree is converted to midinote, not just frequency \degree, Pwhite(-7, 12, inf), \dur, Pwrand([0.25, Pn(0.125, 2)], #[0.8, 0.2], inf), \legato, sin(Ptime(inf) * 0.5).linexp(-1, 1, 1/3, 3), \amp, Pexprand(0.5, 1.0, inf) ) ...

  10. PG_06c_Composition_of_Patterns Doc

    ... , Pwrand(#[0.1, 0.6, 1.01], #[0.1, 0.3, 0.6], inf) ); ~melody = Pbind( \degree, Pwhite(-4, 11, inf) ); p = Pchain(~melody, ~rhythm).play; p.stop; ⧉ ✔ That in itself has some good potential for algorithmic composition. Introducing EventPatte ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow