Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... layBuf.ar(sample.numChannels, sample.bufnumIr, pchRatio, 1.0, beatStart, 1.0) * EnvGen.kr(envadsr, gate,amp,doneAction: 2 ) },[ sample, // dur uses a Pfunc to ask the delta till the next event Pfunc({ arg igs; (igs.delta * 0.9) }), // get a ...

  2. Wavesets Doc

    ... r = Phasor.ar(0, BufRateScale.ir(buf) * playRate, 0, length) + start; var env = EnvGen.ar(Env([amp, amp, 0], [sustain, 0]), doneAction: 2); var snd = BufRd.ar(1, buf, phasor) * env; OffsetOut.ar(out, Pan2.ar(snd, pan)); }, \ir.dup(8)).add; ...

  3. PbindFx Doc

    ... ate = 1| var env, sig = Decay.ar(Impulse.ar(0), decayTime, Saw.ar(freq)); env = EnvGen.ar(Env.asr(attackTime, amp, decayTime, \lin), gate, doneAction: 2); Out.ar(out, sig ! 2 * env) }).add; // spat fx // This effect introduces a very small ...

  4. Diamond Doc

    ... ur=1, amp=02, pan=0| var sin, env, panner; sin = SinOsc.ar(freq, 0, amp); env = EnvGen.kr(Env.sine(dur), doneAction:2); panner = Pan2.ar(sin, pan, env); Out.ar(out, panner); }).add; ) ( var diamond, walk; diamond = Diamond.limit(11); walk = ...

  5. SoundFileAnalysis Doc

    ... = onset * BufSampleRate.kr(bufnum); // convert from seconds to frames var env = EnvGen.kr(Env.linen(0.001, sustain / rate, 0.02), doneAction:2); Out.ar(out, PlayBuf.ar(2, bufnum, rate, startPos:startPos) ) }).add; ~liveBuffer = Buffer.alloc ...

  6. Non-Realtime-Synthesis Doc

    ... _recv', SynthDef(\singrain, { |out, freq = 440, time = 0.1, amp = 0.1| var eg = EnvGen.kr(Env.perc(0.01, time), doneAction: 2), sig = SinOsc.ar(freq) * amp; Out.ar(out, (sig * eg).dup); }).asBytes ]], [0.0, defaultGroup.newMsg] ]); 100.do { ...

  7. QuartzComposerView Doc

    ... .boot; // use mouse to set pan position ( { loop({ { Pan2.ar(Saw.ar(mul: 0.1) * EnvGen.ar(Env.perc, timeScale: 4, doneAction: Done.freeSelf), m.x_pos) }.play; 1.wait; }); }.fork(AppClock); ) ////////// Sonogram // could be better optimised, ...

  8. Pattern Doc

    ... .ar(freq * [Rand(0.99, 1.01), Rand(0.99, 1.01)], 0, amp) }).distort * 0.2; eg = EnvGen.kr(Env.asr(1, 1, 1), gate, doneAction: Done.freeSelf); out = eg * RLPF.ar(osc, fc, 0.1); #a, b = out; Out.ar(i_out, Mix.ar(PanAz.ar(4, [a, b], [pan, pan+ ...

  9. Streams-Patterns-Events4 Doc

    ... e.valueEnvir; }); sound = CombC.ar(sound, 0.2, 0.2, 3, 1, out); sound = sound * EnvGen.kr( Env.sine, doneAction: Done.freeSelf, timeScale: 1.0 + 6.0.rand, levelScale: 0.3 ); Out.ar(out, sound); }).send(s); 0.02.wait; }); loop({ Synth( "Help ...

  10. standalones Doc

    ... le sound s.waitForBoot { { Line.kr(1, 0, 10, doneAction: 2) * SinOsc.ar(1000) * EnvGen.ar(Env.perc(0.01, 0.25), Impulse.kr(2, [0, 0.5]), 0.1) }.play; }; "; ~writeText.(~newAppResDir +/+ "startup.scd", ~startupCode); (~newAppResDir +/+ "star ...

prev 31 32 33 34 35 36 37 38 39 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow