Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ( SynthDef(\help_Pdfsm1, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar([freq, freq + 0.1.rand2], 0, env)) }).add; ) ( var p; p = Pdfsm( [ Pra ...

  2. PV_ExtractRepeat Doc

    ... = Impulse.kr(6/looplen) + Impulse.kr(4/looplen); loopy = BPF.ar(WhiteNoise.ar * EnvGen.ar(Env.perc(0.01, 0.3), trigs), LFCub.kr(1/looplen).exprange(100, 5000)); varying = Pulse.ar(LFNoise0.kr(6/looplen).exprange(100, 500).cpsmidi.round.midi ...

  3. Streams-Patterns-Events3 Doc

    ... q=440, sustain=1.0| var osc; osc = SinOsc.ar( [freq, freq+0.05.rand], 0.5pi ) * EnvGen.ar( Env.perc, doneAction: Done.freeSelf, levelScale: 0.3, timeScale: sustain ); Out.ar(out, osc); }).add; ) ///////////////////////////////////////////// ...

  4. CTKanalysis Doc

    ... he amplitude envelope nested in the UGen that synthesises the envelope ampEnv = EnvGen.kr( Env.linen(ris, 1.0 - (ris + dec), dec), timeScale: dur ); // generate test signal, decorrelated PinkNoise sig = PinkNoise.ar([1, 1]); // <-- Imaging ...

  5. PG_06b_Time_Based_Patterns Doc

    ... take effect, because they are meaningful only when used in a Synth with a gated EnvGen. When the envelope ends, the stream will hold the final level indefinitely. The Pif(Ptime(inf) < totalTime, Env(...)) trick can make it stop instead. / ...

  6. Tdef Doc

    ... SynthDef(\pdef_grainlet, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.3), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) Tdef(\x).play; ( Tdef(\x, { loop({ s.sendMsg( ...

  7. MTP Doc

    ... d = BPF.ar(GrayNoise.ar + Dust.ar(30, 20), freq2 * [1, 1.9], 1/reso); var env = EnvGen.kr(Env.asr(0.01, 1, 0.05), gate, doneAction: 2); Out.ar(out, Pan2.ar( ((snd * (env * amp.min(1) * reso.sqrt * 0.5)).softclip * 0.2).sum * AmpComp.kr(freq ...

  8. GMListPianoRoll Doc

    ... ne, { |freq = 440, amp = 0.25| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc(0.01, 0.2), doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; freqs = Scale.at(scale).ratios; freqs = freqs ++ [2]; freqs = freqs * fre ...

  9. ProcEvents Doc

    ... mp, dur, procbus, outbus = 0; Out.ar(outbus, Pan2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2) * In.kr(procbus), // read off the overall env control of the ProcMod Rand(-1.0, 1.0) ) ) }).add; ) ( // create a Pr ...

  10. PG_Cookbook06_Phrase_Network Doc

    ... nOsc.kr(plfofreq, mul:mw, add:1); freq = Lag.kr(freq, freqlag) * plfo; fcurve = EnvGen.kr(Env.adsr(0, 0.3, 0.1, 20), gate); fcurve = (fcurve - 1).madd(0.7, 1) * ffreq; sig = Mix.ar([Pulse.ar(freq, 0.9), Saw.ar(freq*1.007)]); sig = RLPF.ar(s ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow