Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (692) Code (80) Doc (247) Help (48) Quark (306) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. follow_point Quark

    ... e, x, y; maxSpeed = maxSpeed * ControlDur.ir; maxRotation = maxRotation * (1/180pi); initPoint = DC.kr( point ); #x,y,angle = LocalIn.ar(3); fp = initPoint + [x,y]; delta = (point - fp).asPoint.asPolar; delta.rho = delta.rho.min( maxSpeed ) ...

  2. Spherical Quark

    ... hash bitXor: theta.hash) bitXor: phi.hash } neg { ^Spherical.new(rho, (theta + 2pi).mod(2pi) - pi, phi.neg) } mirrorX { ^this.asCartesian.mirrorX.asSpherical } mirrorY { ^this.asCartesian.mirrorY.asSpherical } mirrorZ { ^Spherical.new(rho, ...

  3. Space Quark

    ... 2', {arg pan=0 -> [-1,1]; LinPan2.ar(\in, pan); } ], [ 'panB', {arg pan1=0 -> [-pi, pi], pan2=0 -> [-0.5pi,0.5pi]; var w, x, y, z, sig; sig = \in; #w, x, y, z = PanB.ar(sig, pan1, pan2); sig = DecodeB2.ar(\num, w, x, y); } ], [ 'dir', {arg ...

  4. Solver Quark

    ... .8,drive,freq; var moving = false ,zoom, deltat,dtslider,timewarp; var theta0 = pi, dtheta0 = 0; w = Window ( "A chaotic pendulum" , Rect (100,100,520,640), false ); w.addFlowLayout( 10@10, 20@5 ); // a shortcut method drive = EZSlider (w,2 ...

  5. extUGenNodeLaTeX Quark

    ... frac{" ++ this[0] ++ "}{" ++ this[1] ++ "}" } } + Object { asLaTeX { ^this.asCompileString } asLaTexNodeDoc { ^"\\documentclass[12pt,a4paper]{article}\n" "\\begin{document}\n" "\\begin{displaymath}\n" ++ this.asLaTeX ++ "\n\\end{displaymath ...

  6. modalElectricGuitar Quark

    ... s with a plucked string made using modal synthesis, and that goes into a single pickup. The pickup's position is modeled in the modal synthesis portion, and the electronic components of the pickup (as well as the volume and tone controls) a ...

  7. Bessel Quark

    ... lt = this.pr_besselasympt0; pzero = result[0]; qzero = result[1]; nn = x_abs - (pi/4); result = (2/pi/x_abs).sqrt * ((pzero * nn.cos) - (qzero * nn.sin)); jn_arr = [result]; ^result; }); xsq = x * x; p1 = 26857.86856980014981415848441; p1 = ...

  8. buzz Quark

    ... 0.7]).range(0, \movement.kr(100))); chopper = Blip.ar(\chopFreq.kr(20) + [0, 1/pi], \chopHarm.kr(1)); (chopper * snd).tanh * \amp.kr(1) * \on.kr(0, 0.2); }).play; ); ////////////// MAPPING /////////////////////// Ndef(\buzz).addHalo(\offFu ...

  9. decodeB2 Quark

    ... = \orientation.ukr( 0, 0, 0.5, \lin ); rotate = \rotate.ukr( 0, AngleSpec() ) / pi; #w,x,y = UIn.ar( 0, 3, true ); #x,y = Rotate2.ar( x, y, rotate ); UOut.ar( 0, DecodeB2.ar( Udef.numChannels, w, x, y, orientation ) ); }, channels: [2,3,4,5 ...

  10. modaltemplate Quark

    ... array/freqarray[0]; amparray = Array.fill(50, { arg i; sin((i + 1) * position * pi) * (3 * (i + 1).log2).dbamp * (1 + exp(100 * (freqarray[i]-20000))) }); decarray = Array.fill(50, { arg i; exp(-1 * i * decaycoef) + decayscale }); decarray ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow