Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (317) Code (69) Doc (87) Help (34) Quark (127) SCDoc ↗ Forum ↗ Google ↗
  1. Pprob Help

    ... ); ) // comparison: emulate a linrand ( var a, b, x, y; a = Pprob ([1, 0]); x = Pfunc ({ 1.0.linrand }); b = a.asStream; y = x.asStream; postf( "Pprob mean: % linrand mean: % \n" , b.nextN(800).mean, y.nextN(800).mean); b.nextN(800).sort.pl ...

  2. PG_06a_Repetition_Contraint_Patterns Help

    ... rtTime; p = ( Psync ( Pbind ( \dur , 0.25, // total duration = infinite \time , Pfunc { startTime = startTime ? ( thisThread .clock.beats.debug( "time" )) } ), 1, 4) ++ Pfuncn ({ thisThread .clock.beats.debug( "finish time" ); ( thisThread ...

  3. PG_Cookbook02_Manipulating_Patterns Help

    ... ove = (view.value * 4 - 2).round; }) .value_(0.5); window.front; p = Pbind ( // Pfunc is the direction to move through the array // it could be anything // - could read from MIDI or HID and convert it into a step // - could be a GUI control ...

  4. PG_04_Words_to_Phrases Help

    ... p = Pbind ( \degree , Pswitch1 ([ Pwhite (7, 14, inf ), Pwhite (-7, 0, inf )], Pfunc { 0.7.coin.binaryValue }), \dur , 0.25 ).play; ) p.stop; Compare to the following: ( p = Pbind ( \degree , Pswitch ([ Pwhite (7, 14, inf ), Pwhite (-7, 0, ...

  5. Tutorial Help

    ... Pseq ([2], inf ).asStream; freq = Pseq ([30,40,42,40], inf ).asStream; cutoff = Pfunc({500.rand2+1000}).asStream; rezz = 0.5; inf .do({saw.set( "freq" , freq.next.midicps, "cutoff" , cutoff.next, "rezz" , rezz, "amp" , 0.1, "out" , 0); (wai ...

  6. PG_02_Basic_Vocabulary Help

    ... * Pbrown(lo, hi, step, length): Brownian motion, arithmetic scale (addition). * Pfunc(nextFunc, resetFunc): Get the stream values from a user-supplied function. * Pfuncn(func, repeats): Get values from the function, but stop after 'repeats' ...

  7. Undocumented-Classes Help

    ... binop Pbrown Pconst PeakFollower Peep Pen Pevent PfadeIn PfadeOut Pfindur Pfset Pfunc Pfuncn Pfx Pgeom Pindex Plag PlayButton PlayerAmpGui PlayerBinop PlayerBinopGui PlayerEffectGui PlayerEfxFuncGui PlayerMixerGui PlayerPoolGui PlayerSpec P ...

  8. PG_Cookbook05_Using_Samples Help

    ... ), // some important conversions // identify the buffer numbers to read \freq , Pfunc { |ev| ev.use(ev[ \freq ]) }, \bufnum , Pfunc ({ |ev| ~midinotes.indexInBetween(ev[ \freq ].cpsmidi) }) .clip(0, ~midinotes.size - 1.001) ).play; ) p.stop ...

  9. PG_Cookbook01_Basic_Sequencing Help

    ... hough, the 'time' key should be divided by the tempo: \time , Pkey ( \delta ) / Pfunc { thisThread .clock.tempo }, ( b = Buffer .read(s, "sounds/a11wlk01.wav" ); SynthDef ( \stretchedFragments , { |out, bufnum, start, time = 1, stretch = 1, ...

  10. Ndef Help

    ... inOsc .kr(2 * 3).max(0) * 0.2) }); Ndef ( \sound , Pbind ( \dur , 0.17, \freq , Pfunc ({ rrand(300, 700) })) ); Ndef ( \lfo , { LFNoise1 .kr(3, 400, 800) }); Ndef ( \sound ).map( \freq , Ndef ( \lfo )); Ndef ( \sound , { arg freq; SinOsc .a ...

prev 1 2 3 4 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow