Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 1000| var osc = SinOsc.ar(XLine.kr(startFreq, freq, attack), 0.5pi); var env = EnvGen.kr(Env.perc(attack, sustain), doneAction: 2) * amp; Out.ar(out, osc * env!2); }).metadata_(( // parsed for slider ranges 'specs': ( out: [0,1,\lin, 1].as ...

  2. PV_FreqBuffer Doc

    ... 1, magbuf, freqbuf, fftframes, scale = 1; var pars, src, out, trig, env; env = EnvGen.kr(Env([0, 1, 0], [1, 1], \sin, 1), gate, doneAction: 2); // we'll grab 50 random partials pars = Array.fill(50, {IRand.new(5, fftframes)}); // use PinkN ...

  3. Pnaryop Doc

    ... lp_sinegrain, { |out = 0, freq = 440, sustain = 0.05, amp = 0.1| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2, amp), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pnaryop(\wrap, Pseries(0, 1 ...

  4. Streams-Patterns-Events7 Doc

    ... Saw.ar(freq * [Rand(0.99,1.01),Rand(0.99,1.01)], 0, amp) }).distort * 0.2; eg = EnvGen.kr(Env.asr(1,1,1), gate, doneAction: Done.freeSelf); out = eg * RLPF.ar(osc, fc, 0.1); #a, b = out; Out.ar(i_out, Mix.ar(PanAz.ar(4, [a, b], [pan, pan+0. ...

  5. BufGrainI Doc

    ... seX.kr(0.5, 8), PinkNoise.kr.range(0, 1), envbuf1, envbuf2, MouseY.kr(0, 1), 2, EnvGen.kr( Env([0, 1, 0], [1, 1], \sin, 1), gate, levelScale: amp, doneAction: 2) ) ) }).add; ) s.sendMsg(\b_allocRead, x = s.bufferAllocator.alloc(1), Platform ...

  6. ListTrig Doc

    ... set=0| var trigs, env, son, ramp; trigs = ListTrig.kr(b.bufnum, t_reset); env = EnvGen.ar(Env.perc(0.01, 0.1), trigs); son = SinOsc.ar(440, 0, env * 0.2); ramp = Phasor.kr(t_reset, ControlRate.ir.reciprocal, 0, inf); ramp.poll(trigs, "Trigg ...

  7. GrainIn Doc

    ... | var pan, env; // use mouse x to control panning pan = MouseX.kr(-1, 1); env = EnvGen.kr( Env([0, 1, 0], [1, 1], \sin, 1), gate, levelScale: amp, doneAction: Done.freeSelf); Out.ar(out, GrainIn.ar(2, Impulse.kr(32), 1, PinkNoise.ar * 0.05, ...

  8. SynthDef Doc

    ... te 'good style'. One of these, 'gate' when used to control the gate input of an EnvGen , deserves special mention, as it allows one to use Node's release method. See Node for an example and more detail. Arrayed controls In some cases, it is ...

  9. TelepathicClock Doc

    ... t: true, addr: addr); ); ( ( SynthDef(\ping, {|freq, pan, amp=0.3| var e, z; e= EnvGen.ar(Env.perc(0, 0.1, amp), doneAction:2); z= SinOsc.ar(freq, 0, 0.2); OffsetOut.ar(0, Pan2.ar(z*e, pan)); }).add; ); ) // play a pattern on clock t: // cl ...

  10. 15 Doc

    ... abs ); car = SinOsc.ar( (freq * carPartial) + mod, 0, mul ); Out.ar( bus, car * EnvGen.kr(Env.sine(1), doneAction: Done.freeSelf, timeScale: ts) ) }).add; ) ( r = Routine({ 12.do({ Synth("fm2", [\freq, 400.0.rrand(1200), \carPartial, 0.5.rr ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow