Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (293) Code (40) Doc (206) Help (6) Quark (41) SCDoc ↗ Forum ↗ Google ↗
  1. Tutorial Doc

    ... i_time=1; ReplaceOut.kr(i_bus, Line.kr(i_start, i_end, i_time, doneAction: Done.freeSelf)); }).add ) Play a 900 Hz sine wave. s.sendMsg("/s_new", "sine", x = s.nextNodeID, 1, 1, "freq", 900); Put a frequency value on the control bus. s.send ...

  2. Psync Doc

    ... 5, pan| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.3), doneAction: Done.freeSelf); Out.ar(out, Pan2.ar(SinOsc.ar(freq, 0, env), pan)) }).add; ) ( // a fixed duration pattern: f = Pbind( \dur, 0.5, \degree, Pn(4, 1), \instrument, \he ...

  3. PG_06f_Server_Control Doc

    ... EnvGen.kr(Env(#[1, 1, 0], #[1, 1], -3, releaseNode: 1), gate, doneAction: Done.freeSelf); ReplaceOut.ar(out, sig) }).add; ~vbus1 = Bus.control(s, 1).set(0.5); ~vbus2 = Bus.control(s, 1).set(0.5); ~window = Window.new("mixers", Rect(10, 100 ...

  4. NodeProxyRolesSN Doc

    ... SynthDef(\simple, { var env = EnvGen.kr(Env.asr, \gate.kr(1), doneAction: Done.freeSelf), sin = SinOsc.ar(\freq.kr(111)), saw = Saw.ar(\sawfreq.kr(110)); Out.ar(\out.kr(0), SelectX.ar(\which.kr, [sin, saw]) * env * \amp.kr(0.5)); }).add; ) ...

  5. Pbindef Doc

    ... n| var env, u = 1; env = EnvGen.ar(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); 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, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), p ...

  6. GMKeyboard Doc

    ... 0], [0.005, 0.5], \lin, 1 ); snd = snd * EnvGen.kr( env, gate, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; keyboard = GMKeyboard() .margins_(8) .displayHighlights_(true) .mode_(\chromatic) .keyNumber_(13) .sustainMode_(true) .act ...

  7. randomSeed Doc

    ... domSeed, { arg out=0, freq=440; Out.ar(out, Line.kr(1, 0, 0.3, doneAction: Done.freeSelf) * Resonz.ar( Dust2.ar([10, 10], 270) + WhiteNoise.ar(4), freq, 0.01) ) }).send(s); SynthDef(\help_setRandomSeed, { arg seed=1956, tbus=0.0; RandSeed.k ...

  8. PG_Cookbook07_Rhythmic_Variations Doc

    ... ), env = EnvGen.kr(Env([1, decay1L, 0], [decay1, decay2], -4), doneAction: Done.freeSelf), sig = SinOsc.ar(fcurve, 0.5pi, preamp).distort * env * amp; Out.ar(out, sig ! 2) }).add; SynthDef(\kraftySnr, { |amp = 1, freq = 2000, rq = 3, decay ...

  9. GMRoundButton Doc

    ... = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; // Instanciate the View, and modify it's look roundButton = GMRoundButton(); roundButton.string_("beep"); // Assign a cust ...

  10. List Doc

    ... itches.size.do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . clipAt ( i ) Similar to -at , but guarantees that any value for index is valid by clipping v ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow