Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2106) Code (553) Doc (473) Help (193) Quark (880) Plugin (7) SCDoc ↗ Forum ↗ Google ↗
  1. TelepathicClock Doc

    ... t: true, addr: addr); ); ( ( SynthDef(\ping, {|freq, pan, amp=0.3| var e, z; e= EnvGen.ar(Env.perc(0, 0.1, amp), doneAction:2); z= SinOsc.ar(freq, 0, 0.2); OffsetOut.ar(0, Pan2.ar(z*e, pan)); }).add; ); ) // play a pattern on clock t: // cl ...

  2. 15 Doc

    ... abs ); car = SinOsc.ar( (freq * carPartial) + mod, 0, mul ); Out.ar( bus, car * EnvGen.kr(Env.sine(1), doneAction: Done.freeSelf, timeScale: ts) ) }).add; ) ( r = Routine({ 12.do({ Synth("fm2", [\freq, 400.0.rrand(1200), \carPartial, 0.5.rr ...

  3. create_simple_instrument_view Doc

    ... be using in this tutorial. The SynthDef is a simple sine wave with a percussive envelope. We will control the frequency, volume and the duration of a Synth . // make sure the server is booted: s.boot; // add our SynthDef to the server: ( Sy ...

  4. Maxamp Doc

    ... oot; ( SynthDef(\sample, {|dur| Out.ar(0, SinOsc.ar(440, 0, LFNoise1.ar(0.5)) * EnvGen.kr(Env([0.01, 1, 1, 0.01], [0.01, dur - 0.02, 0.01]), doneAction: 2)) }).add; SynthDef(\maxamptest, {|inbus| Maxamp.ar(In.ar(inbus, 1), SampleRate.ir / 1 ...

  5. WaveLoss Doc

    ... eScale.kr(b.bufnum) * 0.75, startPos: 92898, loop: 1); woo = { WaveLoss.ar(sig, EnvGen.kr(Env.new([199, 199, 150, 150, 199, 250], [20, 40, 60, 60, 100]), doneAction:2) + (FSinOsc.kr(0.2 + XLine.kr(0.001, [1.3, 1.7], 90), 0, 50) * XLine.kr(0 ...

  6. BinaryOpUGen Doc

    ... { "1 is greater than 0".postln }; // > returns a boolean ⧉ ✔ with // trigger an envelope ( { var trig; trig = SinOsc.ar(1) > 0.1; EnvGen.kr(Env.perc, trig, doneAction: Done.none) * SinOsc.ar(440, 0, 0.1) }.play ) // > outputs 0 or 1 ⧉ ✔ See ...

  7. PG_04_Words_to_Phrases Doc

    ... deTime = 0.17, ffreq = 1100, width = 0.15, detune = 1.005, preamp = 4| var sig, env = Env.adsr(0.01, 0.3, 0.4, 0.1); freq = Lag.kr(freq, slideTime); sig = Mix(VarSaw.ar([freq, freq * detune], 0, width, preamp)).distort * amp * EnvGen.kr(env ...

  8. 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, ...

  9. 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; } ...

  10. Warp1 Doc

    ... ar ( numChannels: 1 , bufnum: 0 , pointer: 0 , freqScale: 1 , windowSize: 0.2 , envbufnum: -1 , overlaps: 8 , windowRandRatio: 0.0 , interp: 1 , mul: 1 , add: 0 ) Arguments: numChannels the number of channels in the soundfile used in bufnum ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow