Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. LocalIn Help

    ... fill(12, { Pan2 .ar( Decay2 .ar( Dust .ar(0.05), 0.1, 0.5, 0.1) * FSinOsc .ar( IRand (36,84).midicps).cubed.max(0), Rand (-1,1)) }); in = in + Pan2 .ar( Decay2 .ar( Dust .ar(0.03), 0.04, 0.3) * BrownNoise .ar, 0); 4.do { in = AllpassN .ar(i ...

  2. Streams-Patterns-Events7 Help

    ... 1, pan, amp=0.1; var out, eg, fc, osc, a, b, w; fc = LinExp .kr( LFNoise1 .kr( Rand (0.25,0.4)), -1,1,500,2000); osc = Mix .fill(8, { LFSaw .ar(freq * [ Rand (0.99,1.01), Rand (0.99,1.01)], 0, amp) }).distort * 0.2; eg = EnvGen .kr( Env .a ...

  3. Plazy Help

    ... see also: PlazyEnvir , PlazyEnvirN ( a = Plazy ({ var x, y; x = Array .series(rrand(2, 4), [1, 100].choose, 1); Pshuf (x,1); }); x = Pn (a, inf ).asStream; 30.do({ x.next.postln }); ) Plazy used to produce a sequence of pitches: ( SynthDef ...

  4. Convolution Help

    ... FFT of size 16384 a = 2048; // kernel buffer g = Buffer .alloc(s, a, 1); ) ( // random impulse response g.set(0, 1.0); 100.do { arg i; g.setn(a.rand, 1.0.rand) }; { var input, kernel; input = SoundIn .ar(0); kernel = PlayBuf .ar(1, g, BufRa ...

  5. SCButton Help

    ... b = Button (w, Rect (90,20,200,30)) .states_([ [ "sine" , Color .black, Color .rand], [ "saw" , Color .black, Color .rand], [ "noise" , Color .black, Color .rand], [ "pulse" , Color .black, Color .rand] ]) .action_({ arg butt; butt.value.p ...

  6. Fdef Help

    ... ef ( \x ).value(8); Fdef ( \y ).value(8); z = Fdef ( \x ) * Fdef ( \y ) + { 1.0.rand }; z.value; z.value(400); // sound example ( s.boot; SynthDef ( "gpdef" , { arg out=0, freq=440, sustain=0.05, amp=0.1; var env; env = EnvGen .kr( Env .per ...

  7. pvcalc Help

    ... uncommenting each of these lines in turn and re-running the synth: [mags * {1.5.rand}.dup(mags.size), phases + {pi.rand}.dup(phases.size)]; // Arbitrary filter, arbitrary phase shift //[mags.reverse, phases.reverse]; // Upside-down! //[mags ...

  8. Tdef Help

    ... 25.wait; "aazz" .scramble.postln } }); Tdef ( \x , { loop { 0.5.wait; (note: 14.rand).play } }); Tdef ( \x , { loop { 0.5.wait; (note: 14.rand + [0, 3, 6, 7].keep(4.rand)).play } }); Tdef ( \x ).stop; Tdef ( \x ).play; Tdef ( \x ).clear; Cr ...

  9. Stream Help

    ... tions of its nextFunction. // Example 1: a Function vs. a FuncStream ( f = { 33.rand }; x = FuncStream (f); 10.do({ [f.next, x.next].postln }); ) // Example 2: the reset function ( f = { 33.rand }; x = FuncStream (f, { thisThread .randSeed_ ...

  10. Pproto Help

    ... *[ instrument: \osc , freq: Pwhite (1, 16) * 100, detune: Pfunc { Array .fill(3.rand + 1, {3.0.rand}) }, dur: Prand ([2,2,2.5,1],10), db: Pn ( Pstep ([-10, -20, -20, -15, -20, -20, -20], 0.5) ), legato: Pwhite (0.0,1).linexp(0,1,0.1, 3) ]), ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow