Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... te , Pwhite ().linexp(0, 1, 0.01, 300), \legato , Pwhite (1, 3.0, inf ), \dur , Prand ([0.2, 1, 1.2], inf ) ).play ) // IndexL ( { var buf = LocalBuf .newFrom((0..5).scramble); var freq = IndexL .kr(buf, MouseX .kr(0, BufFrames .kr(buf))).p ...

  2. Ndef Help

    ... LFTri .kr(1).round(1.0.rand) + 1 * 180 + [0,1], 0.04) * 0.3 }, ], inf ), \dur , Prand ([3, 2, 4], inf ) ) ).play; )

  3. Maybe Help

    ... , 2, 3]); ~b = Pseq ([5, ~a, ~a + 10], inf ); ~b.value.asStream.nextN(10); ~a = Prand ([100, 200]); ~b.value.asStream.nextN(10); // to do : flop! //////////////// deep recursion // with normal functions: f = { |x| if(x <= 1) { 1 } { x * f.( ...

  4. EnvirGui Help

    ... EnvirGui in TdefGui: TdefGui ( Tdef ( \text ), 4); Tdef ( \text ).set( \yuhu , Prand ([2, 3, 5, 8, 13], inf ), \magic , [ \abra , \cadabra ]); Tdef ( \text ).clear;

  5. PG_06c_Composition_of_Patterns Help

    ... , ~rhythm).play; ~melody.source = PmonoArtic ( \default , \degree , Pseries (4, Prand (#[-1, 1], inf ), inf ).fold(-4, 11)); ~melody.source = Pbind ( \degree , Pseries (4, Pwrand (#[-2, -1, 1, 2], #[0.3, 0.2, 0.2, 0.3], inf ), inf ).fold(-4 ...

  6. proxyspace_examples Help

    ... + freqOffest, 0, 0.1 / 8)), LFNoise0 .kr(2)) }; ) ~out.setn( \array , Array .exprand(8, 400, 2000)); ~out.set( \freqOffest , rrand(300,200)); ~out.map( \freqOffest , ~lfo); // a simpler short form for this is: ( ~out = { arg freqOffest=0, ...

  7. PG_06g_Data_Sharing Help

    ... orm for the Quant object: #[1, 0, 0.1] ~chords = Pbind ( \topNote , Pseries (7, Prand (#[-2, -1, 1, 2], inf ), inf ).fold(2, 14), \bassTriadNotes , Pfunc { ~lastBassEvent[ \degree ] } + #[0, 2, 4], // merge triad into topnote // raises tria ...

  8. Event Help

    ... tune up to +-20 cents detune: Pwhite (-1.0, 1.0), // detune up to 1 Hz sustain: Prand ([0.2, 0.2, 0.2, 4], inf ), // notes last 0.2 or 4 seconds // 1 in 6 chance waits 0.8 seconds: dur: Prand ([0.2, 0.2, 0.2, 0.2, 0.2, 0.8], inf ), db: Pste ...

  9. PG_05_Math_on_Patterns Help

    ... 5, with the sign (positive or negative) randomly chosen ( Pwhite (1, 5, inf ) * Prand (#[-1, 1], inf )).asStream.nextN(10); If a binary operation occurs on two patterns, every time a value is requested from the resulting stream, both of the ...

  10. Pattern Help

    ... nt switch according to select Pn ( Pswitch1 ([p, q, r], Pwhite (0, 2))).play // Prand( patternList, repeats ) - random selection from list Prand ([p, q, r], inf ).play // Pxrand( patternList, repeats ) - random selection from list without r ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow