Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (928) Code (86) Doc (150) Help (40) Quark (649) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. particle_system_with_sound Quark

    ... 0.1); var pan= x.linlin(0, width, -1, 1); var src= SinOscFB.ar(freq+d, (d*0.01).clip(0, 1), amp); DetectSilence.ar(src, doneAction:2); OffsetOut.ar(out, Pan2.ar(src, pan)); }).add; s.sync; Synth(\main, [\in, 40, \out, 0]); ~ps= TraerParticl ...

  2. Latency Quark

    ... stln; } } *threshold_ { |val| if (val.isKindOf(SimpleNumber)) { threshold = val.clip(0.001, 1); syn !? { syn.set(\threshold, threshold) } }; } *stop { resp.disable; syn.free; syn = nil; this.post; } *post { "// measured latencies:".postln; ...

  3. UMarkerEventView Quark

    ... textLeft = 2; this.drawShape(innerRect, scaledUserView.view.bounds.height); Pen.clip; // fill inside Pen.addRect( Rect( innerRect.left - 1, 0, innerRect.width + 1, scaledUserView.view.bounds.height ) ); event.getTypeColor.penFill(innerRect, ...

  4. p_line_point Quark

    ... ]); }).asPoint.yield; current = (current + ((direction * timer.value/time.next).clip2( 1.0e12 ))); switch( loop.next, \loop, { current = current.wrap( 0.0, 1.0 ); direction = 1 }, \backwards, { current = current.wrap( 0.0, 1.0 ); direction ...

  5. ATSResidual Quark

    ... erhalten. tilt = if(bandEdges[b + 1] <= 120.0) { 0.0 } { ((cf - 120.0) / 580.0).clip(0.0, 1.0) }; bandEnergy[fr].put(b, bandEnergy[fr][b] * tilt); } }; // Zeitliche Glättung gegen frame-weise Energiesprünge (Knocken). // Etwas leichter als ...

  6. Quaternion Quark

    ... (2*(b.squared + c.squared)))) } // pitch tumble { ^asin((2 * (a * c + (b * d))).clip(-1.0, 1.0)); } // yaw rotate { ^atan2((2 * (a * d - (c * b))), (1 - (2*(d.squared + c.squared)))) } } + SimpleNumber { asQuaternion { ^Quaternion(this, 0.0 ...

  7. Event patterns and array args Quark

    ... reqLag = 0.02, otLag = 0.02| var sig, env, freqs, amps; freqs = (freq * (1..8)).clip(20, 20000).lag(freqLag); amps = ((otAmps / ((1..8) ** dampExp)).normalizeSum * amp).lag(otLag); sig = SinOsc .ar(freqs, 0, amps); env = EnvGen .ar( Env .as ...

  8. grainSoundFile Quark

    ... The object knows the duration and file path of the soundfile, and can be set to clip off the start and end of the file. - start: region startoffset (samples or seconds) - end: end of the region (samples or seconds) - loop: loop mode on or o ...

  9. ProxyMeter Quark

    ... itGui also works m.switchSize(2); m.editGui.object_(~a); ~g = { LFDNoise3.ar(3).clip(0, 1) * GrayNoise.ar }; // remove the mixer individually ProxyMeter.removeMixer(m); // cleanup: // add mixer again for the test ProxyMeter.addMixer(m); // ...

  10. Progression Quark

    ... var roman = [\i, \ii, \iii, \iv, \v, \vi, \vii, \viii, \ix, \x]; ^roman.at(this.clip(0,9)); } }

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow