Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1070) Code (249) Doc (326) Help (124) Quark (363) Plugin (8) SCDoc ↗ Forum ↗ Google ↗
  1. Sound Simulator's "Ryoji Ikeda Pure Data Tutorial" ported to SC by gosub (gosub) Code

    ... freq * SampleDur.ir))}; SynthDef(\click, { |out, amp=0.1| var snd; snd = Impulse.ar(0); snd = OnePole.ar(snd, ~coeff.(Rand(500, 10000))); DetectSilence.ar(snd, doneAction: Done.freeSelf); snd = snd * amp; snd = Pan2.ar(snd, p ...

  2. Animation of Simple Harmonic Motion by elifieldsteel (eli.fieldsteel) Code

    ... .collect({ |n| (freq:n, amp:1/(n**2), phs:n.odd.asInteger*pi+(pi/2)) })); // /*impulse (i.e. "Blip")*/ spectrum = ((1..12).collect({ |n| (freq:n, amp:1/4, phs:pi/2) })); Window.closeAll; shm = { arg input = [(freq:1, amp:1, phs:0)] ...

  3. Fb1_HopfAFDC Quark

    ... // move mouse to right to turn source on again ( x = { var ratio = Demand .ar( Impulse .ar(3), 0, Dseq ([0, 2, 4, 5, 7, 9, 11, 12], inf ) ).midiratio; var hold = ( MouseX .kr(0, 1) > 0.1).poll; var src = SinOsc .ar(ratio * 200); var sig = ...

  4. WetterReim Quark

    ... f ( \reimsched , { |amp = 0.5, t_trig = 0| /* ring every 15 minutes */ var in = Impulse .ar(1/(15*60) , 0, 0.1) + t_trig; in = EnvGen .ar( Env ([0, 0.1, 0.1, 0], [0.01, 0.08, 0.01]*0.5), gate: in) * BrownNoise .ar; Mix ([ ReimFilter .ar( \m ...

  5. superSaw Quark

    ... the Phases of all the Saws phaseArray = {TRand.ar( lo: 0.000, hi: 2.000, trig: Impulse.ar(0))}.dup(100); // Envelopes for Volume and LPF env = Env.adsr( attackTime: att, decayTime: dec, sustainLevel: sus, releaseTime: rel, curve: crv).ar(d ...

  6. Friction Doc

    ... y the effect changes as the sound dies away. x = { var imp, klank, rusty; imp = Impulse.ar(1, 0, 0.1); klank = Ringz.ar(imp, [800, 1071, 1153, 1723]); rusty = Friction.ar(klank, friction: 1.75584e-5, mass: 2.69789); Pan2.ar(rusty.sum) }.pla ...

  7. psSet-event-type Quark

    ... ar(out, i), values, values], [1, 0], curve, 1); var sig = EnvGen.ar(env, gate + Impulse.kr(0), timeScale: fadeTime, doneAction: 2); ReplaceOut.ar(out, sig); }, [\ir, \kr, \ir, \kr]).add; SynthDef("system_setbus_control_" ++ i, { arg out = 0 ...

  8. The City Breathing by nufets (nufets) Code

    ... g, 20, median: median, ampThreshold: ampThresh, clar: clarity); SendReply.kr(Impulse.kr(10), 'audience-noise', [ampltd, pitch, hasPitch].lag([lagAmp, lagPitch, lagHasPitch])); }).add ); s.sync; ~audience = Synth(\audience, ...

  9. ZeroXBufWr Quark

    ... signToggle always starts with 1, makes it easier to handle all cases initTrig = Impulse.ar(0); signToggle = Select.ar( Latch.ar(in > 0, initTrig), [in <= 0, in > 0] ); // need to start with index 0, thus '- 1' sampleCount = Sweep.ar(0, Samp ...

  10. Ref Doc

    ... en rather than three. { Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play; ⧉ ✔ Refs cannot be used reliably to suppress multi-channel expansion within Events and Patterns. Instead, it is necessary to encl ...

prev 81 82 83 84 85 86 87 88 89 90 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow