Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1483) Code (412) Doc (388) Help (177) Quark (503) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. PatternProxy Help

    ... hDef ( "Pdefhelp" , { arg out, freq, sustain=1, amp=1, pan; var env, u=1; env = EnvGen .kr( Env .perc(0.03, sustain), 1, doneAction:2); 5.do { var d; d = exprand(0.01, 1); u = SinOsc .ar(d * 300, u, rrand(0.1,1.2) * d, 1) }; Out .ar(out, Pa ...

  2. Pstep Help

    ... ow; window = Env .sine(sustain, amp); Out .ar(out, Pan2 .ar( SinOsc .ar(freq) * EnvGen .ar(window, doneAction:2), pan ) ) } ).store; times = Pseq ([3.4, 1, 0.2, 0.2, 0.2], inf ); levels = Pseq ([0, 1, 2, 3, 4], inf ); a = Pstep (levels, tim ...

  3. Node Help

    ... er Nodes which are automatically freed after a certain time (for instance by an EnvGen with a doneAction of 2) will not. This keeps the implementation of the classes simple and lightweight. To have the current state of a Node tracked you ca ...

  4. 12_Playbuf Help

    ... Out .ar( bus, PlayBuf .ar( 1, bufnum, BufRateScale .kr(bufnum) * rateScale ) * EnvGen .kr( Env .sine( BufDur .kr(bufnum))) ) }).load(s); ) ( // test the synthdef ... does it work? (yes, it's fine. it plays on the left channel) Synth ( "aMo ...

  5. SC2DTabletSlider Help

    ... d,c],0.2); Out .ar(0, RLPF .ar( Mix .ar(p),freq * ffreqInterval.midiratio,rq) * EnvGen .kr( Env .adsr, gate, gate) ) },[0.1,0.1,0.1,0.1,0.1, nil ]).play(s); w = Window .new.front; int = ControlSpec (-48,48, \linear ,1); v = TabletSlider2D ( ...

  6. Tdef Help

    ... SynthDef ( \pdef_grainlet , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.3), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).add; ) Tdef ( \x ).play; ( Tdef ( \x , { loop({ s.sendMsg( " ...

  7. ProxyMixerOld Help

    ... alive ~test = { |freq=250, intv=19, timescale=1, curve=0, loopnode=0| var env = EnvGen .kr( Env ({ 1.0.rand2 }!11, {1.0.rand}!10, curve, releaseNode: 9, loopNode: loopnode), timeScale: timescale); var pitch = (env * [1, 0.33, -1] * intv).mi ...

  8. NamedControl Help

    ... e combined to build SynthDefs. ( q = (); q.makeEnv = { |q, env, doneAction = 0| EnvGen .kr(env, NamedControl .kr( \gate , 1), doneAction: doneAction) }; q.chooseNoise = { [ { PinkNoise .ar}, { WhiteNoise .ar}, { LFNoise2 .ar( Rand (100, 100 ...

  9. Tour_of_UGens Help

    ... (p, MouseX .kr(1,8).round(1)), 0.005, 0.5)); [a, b] * 0.4 }.scope(2, zoom:4); ) EnvGen envelope generator envelope is specified using an instance of the Env class. { EnvGen .kr( Env .perc, doneAction:2) * SinOsc .ar(880,0,0.2) }.play; { Env ...

  10. Sequencing with Routines and Tasks Help

    ... |freq = 440, amp = 0.2, sustain = 1| var sig; sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .perc(0.01, sustain), doneAction: 2); Out .ar(0, sig ! 2); // sig ! 2 is the same as [sig, sig] }).send(s); r = Routine ({ var delta; loop { del ...

prev 11 12 13 14 15 16 17 18 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow