Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (458) Code (127) Doc (139) Help (76) Quark (116) SCDoc ↗ Forum ↗ Google ↗
  1. Prand Help

    Prand embed values randomly chosen from a list superclass: ListPattern Embed one item from the list at random for each repeat. see also: Pxrand , Pwrand ( var a, b; a = Prand ([1, 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b. ...

  2. Pseed Help

    ... nteger number, pattern or stream that return an integer number a = Pseed (1972, Prand ([1,2,3], inf )); b = a.asStream; 10.do({ b.next.post }); c = a.asStream; 10.do({ c.next.post }); // using a seed pattern as input: a = Pseed ( Pseq ([181 ...

  3. Pgpar Help

    ... 0.8); }, [ \ir , 0]).add; ) ( var p, q, r, o; Pbus ( Pgpar ([ Pbind ( \degree , Prand ((0..7), inf ), \dur , 0.3, \legato , 0.2), Pbind ( \instrument , \echo , \dur , 3, \legato , 1.1, \dtime , Pwhite (0.01, 0.1, inf ), \decay , 3), Pbind ( ...

  4. Pchain Help

    ... hain // examples ( Pchain ( Pbind ( \detune , Pseq ([-30, 0, 40], inf ), \dur , Prand ([0.2, 0.4], inf )), Pbind ( \degree , Pseq ([1, 2, 3], inf ), \dur , 1) ).trace.play; ) // also events can be used directly: ( Pchain ( Pbind ( \degree , ...

  5. recursive_phrasing Help

    ... l library \instrument , \sweep , \n , 15, \degree , Pseq ([0, 0, 6, 3], inf ) + Prand ([0, [0, 3], [0, 5], [0, 15]], inf ), \ratio , Prand ([ 0.1, 0.1, [0.1, -0.1] ], inf ) ).play ) // various instruments and synthdefs can be used on the sa ...

  6. Pbindf Help

    ... bind ( \x , Pseq ([1, 2, 3]), \zzz , 9000); // input stream b = Pbindf (a, \y , Prand ([100, 300, 200], inf ), \zzz , 99); x = b.asStream; ) x.next(()); // pass in an event () x.next(()); x.next(()); x.next(()); // end: nil // sound example ...

  7. Psym Help

    ... , Pn (0.25, 3), \instrument , \gpdef )); Pdef ( \y , Pchain ( Pbind ( \degree , Prand ([5, 9, 0], inf ), \legato , Pseq ([0.3, 2.2], inf )), Pdef ( \x ))); Pdef ( \z , Pchain ( Pbind ( \degree , Pseq ([0, 2, 5, 7, 8, 9], 1)), Pn ( Pdef ( \y ...

  8. Streams-Patterns-Events3 Help

    ... w(#[1, 2, 3], 5); // return 5 items b = a.asStream; 6.do({ b.next.postln; }); ) Prand returns one item from the list at random for each repeat. ( var a, b; a = Prand .new(#[1, 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b.next ...

  9. Pstep Help

    ... val p = Pstep ( Pbind ( \ctranspose , [0, 4, 7], \note , Pwhite (0, 12), \dur , Prand ([0.2, 0.4, 0.8], inf ) ), Prand ([1, 2, 4], inf )/4 ); Ppar ([p, p]).play; ) // change degree independant of number of events that have been playing ( Pc ...

  10. loop Help

    ... t to yield the object x = 5; y = x.repeat(6); y.nextN(8); Pattern-repeat(n) x = Prand([1, 2]).repeat(6).asStream; x.nextN(8); Pattern-loop x = Prand([1, 2]).loop.asStream; x.nextN(8); Stream-repeat(n) embeds the stream repeatedly x = Routin ...

1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow