Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... = CtkSynthDef(sdKey, {arg outBus = 0, inBus = 2, freq, dur = 1; Out.ar(outBus, SinOsc.ar(freq, 0, 0.4) * EnvGen.kr(Env([0, 1, 0], [0.1, 0.9], \sin), timeScale: dur)) }); sd; } */ // reload files after making changes in them o.loadFiles; // ...

  2. UnitTest Doc

    ... ill free all nodes // and create new allocators, giving you a clean slate p = { SinOsc.ar }; p.play; p.register; // will wait until the condition is true // will be considered a failure after 10 seconds this.wait( { p.isPlaying }, "waiting ...

  3. ProxyChainPreset Doc

    ... 3( \ringmod, \filter -> { |in, randrate=5| in.asArray[0] // force mono inputs * SinOsc.ar(LFNoise0.kr([randrate, randrate]).exprange(300, 3000)).sum }, 0.5, // wet/dry mix of 50/50 [ \randrate, [0.5, 50, \exp] ] ); ProxyChain.add3( \dist, \ ...

  4. Maths Doc

    ... nfluence over the sound: a = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, SinOsc.ar(0.2, 0).range(0,1), 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1)}.play ⧉ ✔ A Maths can also be used to trigger a Maths. Here we have a complex percussion ...

  5. KeyCodeResponder Doc

    ... ⧉ ✔ Any player's gui can have its keyDownAction set ( p = Patch({ arg freq=440; SinOsc.ar(freq,mul: 0.1) }); g = p.gui; g.keyDownAction = { "you touched me".postln; }; ) ⧉ ✔ focus on the slider. notice that every key stroke is passed, the s ...

  6. SampleDescript Doc

    ... .loadToBuffer; e.buffer; e.activeBuffer[1].plot; ( { var env = e.env; Out.ar(1, SinOsc.ar(LFNoise0.kr(300, mul: 100, add: 800), mul: EnvGen.kr(env, doneAction: 2))) }.play; e.play; ) ⧉ ✔ helpfile source: /tmp/scquark_hs/SuperSampler/HelpSou ...

  7. MenuAction Doc

    ... { ~stopSynth.() }); ~synth = nil; ~playSynth = { if (~synth.isNil) { ~synth = { SinOsc.ar(440) * 0.1 }.play; ~startAction.enabled = false; ~stopAction.enabled = true; ~playing.checked = true; ~synth.onFree({ ~synth = nil; { ~playing.checked ...

  8. MasterFX Doc

    ... ); g = m.gui; // a GUI s.scope(8); ) // a test signal x = { PinkNoise.ar(0.5) + SinOsc.ar([220, 330]) * LFNoise2.kr([5, 8, 13, 21]).max(0); }.play; // all MasterFX live here: MasterFX.all; // kick in predefined effects (at full wet level) m ...

  9. Onsets Doc

    ... kr(chain, threshes, \rcomplex); // Generate pips at a variety of pitches pips = SinOsc.ar((threshes).linexp(0, 1, 440, 3520), 0, EnvGen.kr(Env.perc(0.001, 0.1, 0.5), onsets)).mean; Pan2.ar(sig, -0.75, 0.2) + Pan2.ar(pips, 0.75, 1) }.play; ) ...

  10. Pitch Doc

    ... freq, hasFreq; in = SoundIn.ar(0); # freq, hasFreq = Pitch.kr(in); Out.ar(out, SinOsc.ar(freq: freq * 0.5) * in + in); }).add; ) Synth.new(\RmOctaver); ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Pitch.schelp lin ...

prev 81 82 83 84 85 86 87 88 89 90 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow