Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (729) Code (188) Doc (238) Help (111) Quark (181) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. Nested ifs in a SynthDef by 38nonprivate (38nonprivate) Code

    ... LFNoise0.kr(8); out = if( noise > 0.0, if(noise > 0.5, if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)), SinOsc.ar(500, 0, 0.25) ), Saw.ar(160, 0.5) ); out ! 2 }.play; )

  2. Assignment #1 by hwright (hwright) Code

    ... Env.linen( 10, 0.000001, 0.0001, 0.5).kr(doneAction: 2); snd = LPF.ar( in: WhiteNoise.ar(env), freq: 2000, mul: amp ); Out.ar(out, Pan2.ar(snd, pan)); }).add; SynthDef("hihat", {arg out = 0, amp = 0.5, att = 0.01, rel = ...

  3. Latch Help

    ... s when the signal changes from non-positive to positive. { Blip .ar( Latch .ar( WhiteNoise .ar, Impulse .ar(9)) * 400 + 500, 4, 0.2) }.play; The above is just meant as example. LFNoise0 is a faster way to generate random steps : { Blip .ar( ...

  4. GrainSin Help

    ... env, freqdev; // use mouse x to control panning pan = MouseX .kr(-1, 1); // use WhiteNoise and mouse y to control deviation from center pitch freqdev = WhiteNoise .kr( MouseY .kr(0, 400)); env = EnvGen .kr( Env ([0, 1, 0], [1, 1], \sin , 1) ...

  5. this-score Quark

    // test //-- INIT //-- PLAY ( Ndef(\xxx, { |freq = 200| BPF.ar( WhiteNoise.ar(0.3 ! 2) + GrayNoise.ar(0.2), XLine.kr(0.5, 1, 4) * freq.lagud([1, 0.2, 0.5], [0.2, 0.6, 0.3]) * [[1, 1.2, 1.5]], 0.01 ).flop.sum }).play; ); ( Tdef(\xtest, { loo ...

  6. DelTapWr Help

    ... mes SynthDef ( \test , { arg buffer; var src, tapPhase, tap1, tap2, tap3; src = WhiteNoise .ar(0.2) * Decay .kr( Dust .kr(3), 0.2); tapPhase = DelTapWr .ar(buffer, src); #tap1, tap2, tap3 = DelTapRd .ar(buffer, tapPhase, [0.2, 0.27, 0.303], ...

  7. PV_Copy Doc

    ... Buffer.read(s, ExampleFiles.child); // crossfade between original and magmul-ed whitenoise ( { var in, in2, chain, chainB, chainC; in = PlayBuf.ar(1, d, BufRateScale.kr(d), loop: 1) * 2; in2 = WhiteNoise.ar; chain = FFT(LocalBuf(2048), in); ...

  8. DelTapRd Help

    ... mes SynthDef ( \test , { arg buffer; var src, tapPhase, tap1, tap2, tap3; src = WhiteNoise .ar(0.2) * Decay .kr( Dust .kr(3), 0.2); tapPhase = DelTapWr .ar(buffer, src); #tap1, tap2, tap3 = DelTapRd .ar(buffer, tapPhase, [0.2, 0.27, 0.303], ...

  9. LPCAnalyzer Doc

    ... ally flat to begin with, ie, an impulse train ( Impulse UGen ) or white noise ( WhiteNoise UGen ). The two big hits to CPU costs here are large n, causing peaky calculation hits once per window as autocorrelation coefficients are calculated ...

  10. remapping Quark

    ... ? _.close; q.knobs = 4.collect{ Knob() }; q.labels = ["SinOsc","Saw","LFNoise","WhiteNoise"]; q.numboxes = 4.collect{ NumberBox() }; q.texts = q.labels.collect{ |st| StaticText().string_(st) }; q.button = Button().states_([[0],[1]]); q.wind ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow