Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1483) Code (412) Doc (388) Help (177) Quark (503) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. EZNumber 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 ...

  2. granular AM synthesis by 56228375 (56228375) Code

    ... var modulator = amp_modulator*SinOsc.ar({freq_modulator}); var envelope = EnvGen.kr(Env.perc(envlen, 1, 1), doneAction:2); Out.ar(out, Splay.ar(envelope*carrier*modulator!2, spread, 1, center)); }).add; ); Pdef(\bg).fade ...

  3. Sieves_and_Psieve_patterns Doc

    ... 0.1, amp = 0.1| var sig = { WhiteNoise.ar } ! 2; sig = BPF.ar(sig, freq, rq) * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2) * (rq ** -1) * (250 / (freq ** 0.8)); OffsetOut.ar(out, sig); }).add; SynthDef(\sin_grain, { |out = 0, freq = ...

  4. PG_04_Words_to_Phrases Doc

    ... ; sig = Mix(VarSaw.ar([freq, freq * detune], 0, width, preamp)).distort * amp * EnvGen.kr(env, gate, doneAction: Done.freeSelf); sig = LPF.ar(sig, ffreq); Out.ar(out, sig ! 2) }).add; ) ( TempoClock.default.tempo = 132/60; p = Pxrand([ Pbin ...

  5. Button Doc

    ... 0, 26)) .states_([["play", Color.black, Color.rand]]) .mouseDownAction_({ a = { EnvGen.kr(Env.adsr, doneAction: Done.freeSelf) * SinOsc.ar(440, 0, 0.4) }.play; }) .action_({ |butt, mod| a.release(0.3); }); w.front; }) ) ⧉ ✔ If you drag a fu ...

  6. Roughness and sensory dissonance Quark

    ... last line: ( SynthDef ( \sine , { |freq = 440, amp = 0.005, pan = 0| var env = EnvGen .kr( Env .asr(0.1, amp, 0.2), doneAction:2); Out .ar(0, Pan2 .ar( SinOsc .ar(freq), pan, env)) }).memStore; z = (); z.win = SCWindow ( "rough" , Rect (65 ...

  7. startup21-clientfft Quark

    ... rig.kr(stop, 1, dur); // "how long recording?" // delay the stop trigger in the EnvGen to avoid glitch Out.ar(outbus, sig * EnvGen.kr(Env.asr(0.05, 1, 0.05), DelayN.kr((started + audiothru) * (stop <= 0), cmpclamp, cmpclamp), doneAction:2) ...

  8. startup21-clientfft Quark

    ... rig.kr(stop, 1, dur); // "how long recording?" // delay the stop trigger in the EnvGen to avoid glitch Out.ar(outbus, sig * thrulevel * EnvGen.kr(Env.asr(0.05, 1, 0.05), DelayN.kr((started + audiothru) * (stop <= 0), cmpclamp, cmpclamp), do ...

  9. PG_Cookbook05_Using_Samples Doc

    ... bufnum, rate: rate * BufRateScale.kr(bufnum), startPos: start, loop: 0 ), env = EnvGen.kr(Env.linen(0.01, time, 0.05, level: amp), doneAction: Done.freeSelf); Out.ar(out, (sig * env).dup); }).add; SynthDef(\bell, { |out, accent = 0, amp = 0 ...

  10. PSPdiv Quark

    ... ce); sig = Splay .ar(sig); OffsetOut .ar(0, Balance2 .ar(sig[0], sig[1], pan) * EnvGen .ar( Env .perc(att, rel), doneAction: 2)) }).add; ) ( // base pattern, no need to provide durations, as they are calculated from other PSPdiv args p = Pb ...

prev 131 132 133 134 135 136 137 138 139 140 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow