Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1234) Code (312) Doc (341) Help (126) Quark (454) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Tracing Processes Help

    ... ed posts its values, // the message trace can be used (in returns a Ptrace) a = Pseq ([1, 4, 1, Pwhite (0, 6, 3), 100, 39], inf ).trace(prefix: "value: " ); b = a.asStream; b.next; b.next; b.next; b.next; // in a running stream: ( Pbind ( \ ...

  2. PG_02_Basic_Vocabulary Help

    ... p key for your editor to open its help file. Quick reference Primary Patterns * Pseq(list, repeats, offset): Play through the entire list 'repeats' times. Like list.do. * Prand(list, repeats): Choose items from the list randomly (same as li ...

  3. PatternConductor Help

    ... 1), log(20)).exp, \dur , Prand ([0.1,0.1,0.1,0.1,0.2,1,2], inf ), \db , Pstep ( Pseq ([-20,-30,-25,-30], inf ),0.2) ); // unrelated cluster pattern running on TempoClock.default Pbind ( \dur ,2, \midinote , Pseq ([(48..60)],20), \db , -30). ...

  4. Pwhile Help

    ... rclass: FuncFilterPattern Pwhile(func, pattern) ( z = true ; a = Pwhile ({ z }, Pseq (#[1, 2, 3])); x = a.asStream; ); 7.do({ x.next.postln; }); // while z == true, the values are embedded z = false ; // set z to false x.next; // the rest o ...

  5. Pprotect Help

    ... // example ( var x; var func = { "an error happened" .postln }; a = Pprotect ( Pseq ([1, 3, 3, Pfuncn ({ Error .throw }), 2]), func); x = Pbind ( \degree , a, \dur , 0.5).play; )

  6. PG_Cookbook05_Using_Samples Help

    ... ocal, \dur , 4 ), 0.5, Pn ( Pfindur (4, Pbind ( \instrument , \bell , \accent , Pseq ([2, Pn (0, inf )], 1), \amp , Pseq ([0.3, Pn (0.1, inf )], 1), \decayScale , Pseq ([6, Pn (1, inf )], 1), \dur , Pwrand (#[0.25, 0.5, 0.75, 1], #[2, 3, 1, ...

  7. Pprob Help

    ... efficiency bench { Pprob ([0, 1]) } // this is fairly expensive bench { 16.do { Pseq ([0, 1] ! 32) } } x = Pprob ([0, 1]).asStream; y = Pseq ([0, 1], inf).asStream; bench { 100.do { x.next } }; // this very efficient bench { 100.do { y.next ...

  8. PG_05_Math_on_Patterns Help

    ... ing stream has two values, because the shorter operand stream has two values. ( Pseq ([10, 9, 8], 1) + Pseq ([1, 2], 1)).do { |x| x.postln }; The binary operator adverb '.x' is supported with patterns. (See Adverbs .) This adverb is like a ...

  9. Tuning Help

    ... 4620483089, 1.1892071150019, etc. ] Pbind ( \scale , Scale .major(t), \degree , Pseq ((0..7) ++ (6..0) ++ [ \rest ], 1), \dur , 0.25).play; // use non-standard tuning t = Tuning .just; t.semitones; // [ 0, 1.1173128526978, 2.0391000173077, ...

  10. Dseq Help

    ... y array of values or other ugens length number of repeats structurally related: Pseq see also: Demand // example ( { var a, freq, trig; a = Dseq ([1, 3, 2, 7, 8], 3 ); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow