Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... synth node setting its gate control to 0 . Your SynthDef should use gate in an EnvGen based on a sustaining envelope (see Env ), and the EnvGen should have a doneAction ( Done ) that releases the synth at the end. You can give the sustain ...

  2. MIDIIn Doc

    ... 0| var x; x = Formant.ar( SinOsc.kr(0.02, 0, 10, freq), formfreq, bwfreq ); x = EnvGen.kr(Env.adsr, gate, Latch.kr(gate, gate)) * x; Out.ar(out, x); }).add; ) x = Synth("sik-goo"); // set the action: ( ~noteOn = { |src, chan, num, vel| x.se ...

  3. ddwMIDI_Guide Doc

    ... 1, pb = 1, amp = 0.1| var sig = Mix(Saw.ar(freq * pb * [1, 1.003])) * amp, eg = EnvGen.kr(Env.adsr(0.01, 0.1, 0.5, 0.15), gate, doneAction: 2), filt_eg = EnvGen.kr(Env(#[8000, 2000], #[0.15], \exp)); sig = LPF.ar(sig, filt_eg); Out.ar(out, ...

  4. GMLinesButton 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(lButton) ); CmdPeriod.doOnce({ win.close; } ...

  5. FilterComparisons Doc

    ... ) Victor Lazzarini's string resonator. { Streson.ar(LFSaw.ar([220, 180], 0, mul:EnvGen.kr(Env.asr(0.5, 1, 0.02), 1.0) * 0.2), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 377).reciprocal, 0.9, 0.3) }.play ⧉ ✔ helpfile source: /usr/local/sha ...

  6. GrainFM Doc

    ... l deviation from center pitch freqdev = WhiteNoise.kr(MouseY.kr(0, 400)); env = EnvGen.kr( Env([0, 1, 0], [1, 1], \sin, 1), gate, levelScale: amp, doneAction: Done.freeSelf); Out.ar(out, GrainFM.ar(2, Impulse.kr(10), 0.1, 440 + freqdev, 200 ...

  7. LoopBuf Doc

    ... startLoop, endLoop, ipol=2; var env, signal; rate = Lag.kr(rate, glide); env = EnvGen.ar(Env.adsr(0.1,0.2,1,2), gate, doneAction: 2); signal = LoopBuf.ar(1,bufnum, BufRateScale.kr(bufnum) * rate, gate+loopRel, startPos, startLoop, endLoop, ...

  8. GMButton Doc

    ... ut = 0, amp = 0.1, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr(Env.perc); Out.ar(0, snd!2); }).add; // Instanciate the View, and assign a string button = GMButton(); button.string_("beep"); // Assign custom action ...

  9. Pbeta Doc

    ... ynthDef(\help_sinegrain, { |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, 0, env)) }).add; ) ( var a; a = Pbeta(0.0, 1.0, 0.1, 0.1, inf).a ...

  10. Node Doc

    ... er Nodes which are automatically freed after a certain time (for instance by an EnvGen with a doneAction of 2) will not. This keeps the implementation of the classes simple and lightweight. To have the current state of a Node tracked you ca ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow