Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (187) Code (11) Doc (76) Help (77) Quark (23) SCDoc ↗ Forum ↗ Google ↗
  1. distort Help

    ... n a.distort distort(a) ( { var a; a = Line.ar(-4, 4, 0.01); a.distort }.plot) { FSinOsc.ar(500, 0.0, XLine.kr(0.1, 10, 10)).distort * 0.25 }.scope;

  2. scaleneg Help

    ... rator scaleneg(a, b) a scaleneg: b a.scaleneg(b) a*b when a < 0, otherwise a. { FSinOsc .ar(500).scaleneg( Line .ar(1,-1,4)) }.play;

  3. amclip Help

    ... a amclip: b a.amclip(b) 0 when b <= 0, a*b when b > 0 { WhiteNoise .ar.amclip( FSinOsc .kr(1,0.2)) }.play; // makes a sine envelope

  4. softclip Help

    ... rtion with a perfectly linear region from -0.5 to +0.5 Server .internal.boot; { FSinOsc .ar(500,0.0, XLine .kr(0.1, 10, 10)).softclip * 0.25 }.scope(2);

  5. excess Help

    ... the difference of the original signal and its clipped form: (a - clip2(a,b)). { FSinOsc .ar(1000).excess( Line .kr(0,1,8)) }.play;

  6. modulo Help

    ... er after dividing a by b. 5%3 //should post 2 19.1%6.4 //also works on floats { FSinOsc .ar(100, 4) % 1 }.play // results in a sawtooth wave

  7. multiplication Help

    ... nOsc .ar(440) * 0.5 }.play; // This creates a beating effect (subaudio rate). { FSinOsc .kr(10) * PinkNoise .ar(0.5) }.play; // This is ring modulation. { SinOsc .ar(XLine.kr(100, 1001, 10), 0, 0.5) * SyncSaw .ar(100, 200, 0.5) }.play;

  8. Pan2 Help

    ... level input SynthDef ( "help-Pan2" , { Out .ar(0, Pan2 .ar( PinkNoise .ar(0.4), FSinOsc .kr(2), 0.3)) }).play;

  9. IRand Help

    ... elp-IRand" , { Out .ar( I Rand (0, 1), //play on random channel between 0 and 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneAction:2)) ) }).send(s); ) ( Routine({ 16.do({ Synth .new( "help-IRand" ); 0.5.wait; }) }).play; )

  10. ExpRand Help

    ... : LinRand , Rand ( SynthDef ( \help_ExpRand , { | out = 0, n = 0 | Out .ar(out, FSinOsc .ar( ExpRand (100.0, 8000.0, n), 0, Line .kr(0.2, 0, 0.01, doneAction:2)) ) }).send(s); ) ( Routine ({ inf .do({ arg i; Synth .new( \help_ExpRand ); 0.0 ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow