Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2676) Code (536) Doc (989) Help (430) Quark (698) Plugin (23) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

  2. 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 ...

  3. György Ligeti's Poème Symphonique for 100 Metronomes by alibalighi (alibalighi) Code

    ... 0.001, decay), doneAction: 2); // Envelope for short tick var signal = SinOsc.ar(freq) * env * amp; // Sound generation Out.ar(0, Pan2.ar(signal, pan)); // Output with panning }).add; // Start playing the patte ...

  4. Fireflies Intro - Owl City by elifieldsteel (eli.fieldsteel) Code

    ... trig, 1/10, 1/(freq*0.6.midiratio), 4, 0.93); wn = HPF.ar(wn, 300); sig = SinOsc.ar(freq.varlag(freqtime, freqcurve) * (1,3..7)); sig = sig * (1/(1,3..7)).pow(2.5); sig = sig.sum; sig = Pan2.ar(sig, {TRand.ar(-0.5,0.5,trig)}! ...

  5. 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( ...

  6. 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 ...

  7. oscillOrc Quark

    // all mono Instr.orc(\oscillOrc,[ \sin,{arg freq=500,phase=0,amp=1.0; SinOsc.ar(freq,phase,amp); }, \formant,{ arg freq=400,freq2=1300,bw=400,amp=1.0; Formant.ar(freq,freq2,bw,amp); }, \formantAdd,{ arg freq=400,freqOffset=100,bw=400,amp=1 ...

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

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

  10. 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 ...

prev 211 212 213 214 215 216 217 218 219 220 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow