Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ngtime = 0.03| var env = XLine.ar(1, 0.001, ringtime, doneAction: 2); var snd = SinOsc.ar(freq); Out.ar(out, Pan2.ar(env * snd, pan, amp)); }).add ); // use Peuclid to control amplitude via Pkey: ( Pbind( \hit, Peuclid(7, 12, inf), \amp, Pk ...

  2. GMSymbolMultiSlider Doc

    ... nHarmo.do({ |index| synths[index] = SynthDef(\GMHarmo, { |freq, amp| var snd = SinOsc.ar(freq, mul: amp); Out.ar(0, snd!2); }).play(s, [\amp, amp * harmoAmps[index], \freq, freq * (index + 1)]); }); win.layout_( HLayout() .margins_(0) .add ...

  3. ScopeView Doc

    ... making noise onto the buffer d = SynthDef("noise", { |bus| var z; z = LFSaw.ar(SinOsc.kr(0.1).range(300, 1000), [0, 1]*pi) * 0.1; Out.ar(bus, z); }).play( s, [\bus, b.index] ); c.start; // Tell the ScopeView to start CmdPeriod.doOnce({ w.c ...

  4. CtkProtoNotes Doc

    ... \env]).kr(Env.newClear(8)); envgen = EnvGen.kr(env, gate, doneAction: 2); src = SinOsc.ar(freq, 0, amp * envgen); Out.ar(0, Pan2.ar(src, Rand(-1.0, 1.0))); }), SynthDef(\control, {arg outbus, rate, low, hi; Out.kr(outbus, LFNoise2.kr(rate). ...

  5. Rotate2 Doc

    ... via mouse var x, y; x = Mix.fill(4, { LFSaw.ar(200 + 2.0.rand2, 0, 0.1) }); y = SinOsc.ar(900) * LFPulse.kr(3, 0, 0.3, 0.2); #x, y = Rotate2.ar(x, y, MouseX.kr(0, 2)); [x, y] }.play; // Rotate B-format about Z axis: wout = win; zout = zin; ...

  6. 15_Groups Doc

    ... . // 1st, evaluate a synthdef ( SynthDef("ringModulation", { Out.ar( 0, Mix.ar( SinOsc.ar([440.067, 441.013], 0, 1) * SinOsc.ar([111, 109], 0, 0.2) ) ) }).add; ) // 2nd, make a synth ( Synth("ringModulation"); ) // 3rd, tell the server to l ...

  7. TZeroXBufRd Doc

    ... ffer.alloc(s, 32); ) // analyse a short snippet of modulation ( x = { var src = SinOsc.ar(SinOsc.ar(1200, 0, 1000, 100)) * SinOsc.ar(700) - 0.1; ZeroXBufWr.ar(src, b, z, startWithZeroX: 0, doneAction: 2); Silent.ar }.play ) // check the wav ...

  8. Canvas3D Doc

    ... mWave); s.waitForBoot{ buffer= Buffer.alloc(s, buffersize, 3); s.sync; { var x= SinOsc.ar(42);//sound x var y= SinOsc.ar(83);//sound y var z= SinOsc.ar(164);//sound z RecordBuf.ar([x, y, z], buffer); Silent.ar; }.play; s.sync; can.animate(f ...

  9. NTube Doc

    ... ])*0.1).dup}.play //can get it sound like respiration! {(NTube.ar(WhiteNoise.ar*SinOsc.ar(0.5),`[0.97,1.0,1.0,1.0,0.97],`[0.5,MouseY.kr(-1.0,1.0),0.2],`([0.01,0.02,0.01,0.005]*MouseX.kr(0.01,1.0)))*0.1).dup}.play {(NTube.ar(PinkNoise.ar*Sin ...

  10. GMLinesButton Doc

    ... oClock.default); }); SynthDef(\GMPercSine, { |amp = 0.25, freq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(lBut ...

prev 71 72 73 74 75 76 77 78 79 80 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow