Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (140) Code (46) Doc (37) Help (20) Quark (37) SCDoc ↗ Forum ↗ Google ↗
  1. Pwrand Help

    Pwrand embed values randomly chosen from a list superclass: ListPattern returns one item from the list at random for each repeat, the probability for each item is determined by a list of weights which should sum to 1.0. ( var a, b; a = Pwra ...

  2. PG_Cookbook02_Manipulating_Patterns Help

    ... ( Pwhite ) return one element before yielding control back to the "selector" ( Pwrand ). \degree , Pwrand ([ Pwhite (-7, 11, 1), Pwhite (7, 18, 1)], #[0.7, 0.3], inf ) This does not work if the ranges need to keep their own integrity. For ...

  3. PG_06c_Composition_of_Patterns Help

    ... fining pitch material, then combine them with Pchain . ~rhythm = Pbind ( \dur , Pwrand (#[0.125, 0.25, 0.5], #[0.3, 0.5, 0.2], inf ), \legato , Pwrand (#[0.1, 0.6, 1.01], #[0.1, 0.3, 0.6], inf ) ); ~melody = Pbind ( \degree , Pwhite (-4, 11 ...

  4. PG_Cookbook03_External_Control Help

    ... / num: 1 means modwheel ) ( p = Pbind ( \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2], inf ), \legato , Pfunc { ~legato } // retrieves value set by MIDI control ).play; ) p.stop; c.remove; If Pfunc { } i ...

  5. Dwrand Help

    ... (should sum up to 1.0) length number of values to return structurally related: Pwrand , TWindex , TWChoose see also: Demand // example ( { var a, freq, trig; a = Dwrand ([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf ).dpoll; trig = Impulse .kr( ...

  6. Streams Help

    ... ts7 ] - Practical Considerations Specific classes: ListPatterns Pseq Pser Prand Pwrand Pxrand Pshuf Place Ptuple Pslide Pfsm Place ... FilterPatterns Pseed Prewrite Pswitch Pswitch1 Pn Pstutter Pfin Psync Pcollect Pselect Preject PdurStutte ...

  7. Pxrand Help

    ... ach repeat, but Pxrand never repeats the same element twice in a row. see also: Pwrand ( var a, b; a = Pxrand .new(#[1, 2, 3], 10); // return 10 items b = a.asStream; 11.do({ b.next.postln; }); ) Pxrand used as a sequence of pitches: ( Synt ...

  8. PG_Cookbook05_Using_Samples Help

    ... th a randomly generated rhythm. The catch is that we have no assurance that the Pwrand \dur pattern will add up to exactly 4 beats. The Pfindur ("finite duration") pattern cuts off the inner Pbind after 4 beats. This would stop the pattern, ...

  9. Prand Help

    ... tern 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.next.postln; }); ) // return also a subpattern: ( var a, b; a = Pr ...

  10. PatternsDocumentedAndNot Help

    ... switch [ Pswitch1 ] ListPattern [ Pwalk Pslide Ptuple Ppar [ Ptpar ] Pdfsm Pfsm Pwrand Pxrand Prand Pshuf Pseq [ Ppatlace Place Pser ] ] Pindex Ppatmod Plazy Pstatbalnorm Pstatbal PstepNfunc [ PstepNadd ] Pstep3add Pstep2add Pwhite Pbrown P ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow