Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2676) Code (536) Doc (989) Help (430) Quark (698) Plugin (23) SCDoc ↗ Forum ↗ Google ↗
  1. Event_patterns_and_array_args Doc

    ... ); amps = ((otAmps / ((1..8) ** dampExp)).normalizeSum * amp).lag(otLag); sig = SinOsc.ar(freqs, 0, amps); env = EnvGen.ar(Env.asr(att, 1, rel), gate, doneAction: 2); Out.ar(out, Splay.ar(sig) * env) }).add ) // Note that SynthDef \array_1a ...

  2. Say Doc

    ... .say any object: s.say; // "localhost" [1, 2, 3, 4].scramble.say(lang: \en); { SinOsc.ar }.say("Anna"); // "a Function" { SinOsc.ar }.cs.say("Anna"); // "{ SinOsc.ar }" Dictionary[\a -> 1, \b -> 2].say(lang: \en); ⧉ ✔ 2. use events and pat ...

  3. ReplaceBadValues Doc

    ... { arg freq = 440; var safeFreq = ReplaceBadValues.kr(freq.lag(0.2), 666).poll; SinOsc.ar(safeFreq, 0, 0.1); }.play; ) // x.set(\freq, inf); // create bad freq value inf -> replaces with 666 x.set(\freq, 330); // and goes back to input kr w ...

  4. ConstantGainDistortion Doc

    ... tortion.) ( var resp, sliders, numbers, window; s.waitForBoot { a = { var sig = SinOsc.ar(110); var preamp = MouseX.kr(-20, 40).dbamp; // "normal" distortion var d1 = (sig * preamp).tanh; // gain-adjusted var d2 = ConstantGainDistortion.ar( ...

  5. AlgaSynthDef Doc

    ... channel, [3] // \five will have 1 channel, [0] ( a = AlgaSynthDef(\fourSines, { SinOsc.ar([220, 440, 880, 1760]) }, outsMapping: [\one, [0, 1], \two, [2, 3], \three, 2, \four, 3, \five, 0] ).add; ) //All the mappings are stored in an Identi ...

  6. GMMultiButton Doc

    ... freqs[index]]); }); SynthDef(\GMPercSine, { |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(keyb ...

  7. 16-Sequencing-with-Patterns Doc

    ... m; SynthDef(\smooth, { |out, freq = 440, sustain = 1, amp = 0.5| var sig; sig = SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.linen(0.05, sustain, 0.1), doneAction: Done.freeSelf); Out.ar(out, sig ! 2) }).add; r = Task({ var delta; while { delta ...

  8. GMButton Doc

    ... ) ); var button; SynthDef(\GMhelp, { |out = 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.s ...

  9. VBAP Doc

    ... .ar(0.2); VBAP.ar(16, source, b.bufnum, LFSaw.kr(0.5, 0).range(-180, 180) * -1, SinOsc.kr(3, 0).range(0, 14.97), spr); }.play; ) ⧉ ✔ GUI example // 5.1 example with CircleRamp ( var speakerList, x=200, y=150, targx=200, targy=150; var atora ...

  10. VarGui Doc

    ... r = 0.1, devFreq = 10, amp = 0.1| var freq = XLine.kr(400, 1200, 10); Out.ar(0, SinOsc.ar(SinOsc.ar(devFreq, 0, devFactor * freq, freq), mul: amp).dup(2) * EnvGate.new) }).add; ) ⧉ ✔ VarGui to play synth of above definition and set synth ar ...

prev 71 72 73 74 75 76 77 78 79 80 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow