Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1483) Code (412) Doc (388) Help (177) Quark (503) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. BufEnvir Doc

    ... yBuf", { arg out=0, bufnum=0, sustain=1, amp=0.1, rate=1, offset=0; Out.ar(out, EnvGen.kr(Env.linen(0, sustain, 0.02), doneAction:2) * PlayBuf.ar(1, bufnum, rate * BufRateScale.kr(bufnum), startPos: offset * BufFrames.kr(bufnum) ) * (10 * a ...

  2. GMFaderMultiSlider Doc

    ... Def(\GMPercSine, { |freq, amp| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr(Env.perc, doneAction: Done.freeSelf); Out.ar(0, snd!2); }).add; win.layout_( HLayout() .margins_(0) .spacing_(10) .add( VLayout() .margins_(0) .add(pl ...

  3. Fb1_Duffing Doc

    ... .kr(1, 3), MouseY.kr(1, 3), 2, 0, 0.8, tMul: 650); Limiter.ar(sig[0..1], 0.3) * EnvGen.ar(Env.asr(0.1, curve: 3)) }.play ) x.release // oscillating force, modulate tMul ( x = { var sig = Fb1_Duffing.ar( SinOsc.ar(3).range(1, 5), 1, 1, 2, 0, ...

  4. GMSymbolMultiSlider Doc

    ... Def(\GMPercSine, { |freq, amp| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr(Env.perc, doneAction: Done.freeSelf); Out.ar(0, snd!2); }).add; win.layout_( HLayout() .margins_(0) .spacing_(10) .add( VLayout() .margins_(0) .add(pl ...

  5. AudioMulchClock Doc

    ... ck, {|out= 0, atk= 0.01, rel= 0.2, gate= 1, freq= 400, pan= 0, amp= 1| var env= EnvGen.kr(Env.asr(atk, amp, rel), gate, doneAction:2); var src= MoogFF.ar( Pulse.ar(freq-(amp-env*50), env*0.25+0.5, env), env.lag(2).exprange(freq*0.5, freq*2) ...

  6. GMMultiButton Doc

    ... ne, { |amp = 0.25, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(keyboard) ); CmdPeriod.doOnce({ win.close; ...

  7. Slider Doc

    ... { SynthDef(\pluck, { |out, freq = 55| Out.ar(out, Pluck.ar(WhiteNoise.ar(0.06), EnvGen.kr(Env.perc(0, 4), 1.0, doneAction: Done.freeSelf), freq.reciprocal, freq.reciprocal, 10, coef: 0.1) ); }).add; w = Window.new("Hold arrow keys to trigge ...

  8. Vapor Doc

    ... and maps them to sound SynthDef(\test, {arg gate = 1, x, y; var env, src; env = EnvGen.kr(Env([0, 1, 0], [0.1, 3], \sin, 1), gate, doneAction: 2); src = SinOsc.ar(x * 330 + 220, 0, y * 0.5); Out.ar(0, src * env); }).add; // a dictionary to ...

  9. EZSlider Doc

    ... x = RLPF.ar(x, fc, rq, amp).softclip; x = Balance2.ar(x[0], x[1], bal); x = x * EnvGen.kr(Env.cutoff, gate, doneAction: Done.freeSelf); Out.ar(out, x); }, [0.1, 0.1, 0.1, 0.1, 0.1, 0] ).add; // make the window w = Window("another control pa ...

  10. SoundFile Doc

    ... te = 1| var sig = VDiskIn.ar(2, bufnum, BufRateScale.kr(bufnum)); var gateEnv = EnvGen.kr(Env([1, 1, 0], [sustainTime-rel, 0])); var env = EnvGen.kr(Env.asr(atk, 1, rel), gate * gateEnv, doneAction: Done.freeSelf); Out.ar(out, sig * env * a ...

prev 31 32 33 34 35 36 37 38 39 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow