Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... s; input = SoundIn.ar(0); onsets= SLOnset.kr(input,20,5,5,threshold); Out.ar(0, SinOsc.ar(440,0,0.1)*Decay2.ar(K2A.ar(onsets), 0.01, 0.1)); }.play; ) x.set(\threshold, 10.0) x.free; b = Buffer.read(s,"sounds/a11wlk01.wav"); // remember to f ...

  2. RedAbstractModule Doc

    ... responsibility . gui Inherited instance methods Examples a= RedEfxDist(0); c= {SinOsc.ar([400, 404], 0, 0.5)}.play; RedAbstractModule.all; RedEffectModule.all; RedEfxDist.all; a.cvs; a.distMix= 0; //50% effect a.out= 1; //move stereo effec ...

  3. LFDNoise1 Doc

    ... mouse quickly; // LFNoise frequently seems stuck, LFDNoise changes smoothly. { SinOsc.ar(LFNoise1.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2) }.play { SinOsc.ar(LFDNoise1.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2) }.play // LFNoise ...

  4. LinPan2 Doc

    ... , LinPan having a slight drop in the middle (yeah, it's subtle)... { LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play; // ... whereas Pan2 is more smooth { Pan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play; // other examples { LinPan2.a ...

  5. RedOverdub Doc

    ... //also works in control rate b= Buffer.alloc(s, 1000, 1); a= {|fb= 1, rate= 1| SinOsc.ar(RedOverdub.kr(b, SinOsc.kr(0.1).exprange(100, 1000), MouseButton.kr, fb, rate:rate), 0, 0.2)!2}.play; a.set(\fb, 0.8) a.free b.free ⧉ ✔ helpfile sourc ...

  6. Chromagram Doc

    ... nce Methods Inherited instance methods Examples ( { var in, fft, chroma; //in = SinOsc.ar(440,0,0.1); in= SoundIn.ar; fft = FFT(LocalBuf(2048), in); chroma=Chromagram.kr(fft); chroma.poll; Out.ar(0,Pan2.ar(in)); }.play ) //n TET display n= ...

  7. BeatClockPlayer Doc

    ... st,{ arg gate=0.0; var a,t; t = gate; a = Decay2.kr(t,0.01,0.1).clip2(1.0); a * SinOsc.ar(300); },[ \gate ]); p=Patch.new(\beatClockPlayerTest, [ BeatClockPlayer(16) // trig / gate ]); p.play; ) Tempo.bpm = 10; Tempo.bpm = 100; p.stop; ⧉ ✔ ...

  8. SharedIn Doc

    ... server s = Server.internal; s.boot; ) ( SynthDef("help-SharedIn1", { Out.ar(0, SinOsc.ar(Lag.kr(SharedIn.kr(0, 1), 0.01), 0, 0.2)); }).add; SynthDef("help-SharedIn2", { Out.ar(1, SinOsc.ar(Lag.kr(SharedIn.kr(0, 1), 0.01, 1.5), 0, 0.2)); }) ...

  9. TBall Doc

    ... , 1); h = MouseY.kr(0.0001, 0.001, 1); g = LFNoise1.kr(0.1, 3, 5); f = TBall.ar(SinOsc.ar(fr), g, 0.1, h); Pan2.ar(Ringz.ar(f, 1400, 0.04), 0, 5) }.play; ) // sine frequency rate is modulated with a slow sine // mouse y controls friction // ...

  10. AnalogVintageDistortion Doc

    ... Ndef(\dist, {|amp=0.5, drivegain = 0.85| var sig = AnalogVintageDistortion.ar( SinOsc.ar(SinOsc.kr(1).exprange(80,1000)), drivegain: drivegain, bias: 0.1, lowgain: -3.dbamp, highgain: -9.dbamp, shelvingfreq: 600, oversample: 1, )!2; sig = ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow