Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ta) 2D rotation linear transformation for angle theta. a = LinTrans .rotation2D(pi/2); a.value( RealVector [1,0]) Accessing Instance and Class Variables matrix_(arg1) matrix the matrix that represents the transformation. * Linear transforma ...

  2. BeamDirac Quark

    ... g = 0, beamDiracLevelDeg = 0 | HOABeamDirac2Hoa.ar(order, in, beamDiracAziDeg * pi / 180.0, beamDiracEleDeg * pi / 180.0, beamDiracLevelDeg * pi / 180.0); };

  3. extBuffer Quark

    ... 25 ] }).flatten; var phases2 = freqsAmpsPhases.collect({ |item| item.at(2) + 0.5pi + [ pi, 0.0, pi ] // + 0.5pi --> update to sine basis }).flatten; ^this.sine3(freqs2, amps2, phases2, normalize, asWavetable, clearFirst) } packet1Msg { |amp ...

  4. 082-function_plot_image2 Quark

    ... cos(cnt*2+rad); //func= cos(cnt*2+rad+theta); //func= cos(cnt*2+rad+theta+sin(y*pi)); //func= cos(cnt*2+rad+theta+sin(y*pi)+cos(x+cnt*pi)); //--render img.setPixel(Image.colorToPixel(Color.hsv(func+1/2, 1, 0.75)), i, j); }; }; Pen.drawImage ...

  5. HoaRadius Quark

    ... , speedOfSound = (AtkHoa.speedOfSound)| ^this.new((order * speedOfSound) / (2 * pi * freq)) } // Set radius from normalised frequency and order *newWn { |wn, sampleRate, order = (AtkHoa.defaultOrder), speedOfSound = (AtkHoa.speedOfSound)| ^ ...

  6. AmbMrEnc Quark

    ... |a, norm| // elevation, norm var w,x,y,z; w = 1; // y = 0; z = (2 * sqrt(3)) / pi; x = 0; ^[w, y, z, x]; } } AmbMrEnc2 : AmbMrEnc{ classvar <order = 2; *kr { |a, norm| // elevation, norm var w,x,y,z,v,t,r,s,u; var sqrt15=sqrt(15); w = 1; / ...

  7. extPen-roundedRect Quark

    ... ); Pen.addArc( rect.rightTop - ((radius@@1)@((radius@@1).neg)), (radius@@1), 1.5pi, 0.5pi ); Pen.lineTo( rect.rightBottom - (0@(radius@@2)) ); Pen.addArc( rect.rightBottom - ((radius@@2)@(radius@@2)), (radius@@2), 0, 0.5pi ); Pen.lineTo( re ...

  8. ATSPeakDetector Quark

    ... (lp - cp)); } { result = cp + (offset * (rp - cp)); }; result = result % (2.0 * pi); if(result > pi) { result = result - (2.0 * pi) }; if(result < pi.neg) { result = result + (2.0 * pi) }; ^result } dbToAmp { |db| ^10.0 ** (db / 20.0) } amp ...

  9. ikedaBass Quark

    ... rel = 0.01, curve = -5, gate = 1, pan = 0, amp = 1, harmonic = 14.015, iphase = pi/3; var env, snd; env = Env.adsr( attackTime: att, decayTime: dec, sustainLevel: sus, releaseTime: rel, curve: curve, ).kr(gate: gate, doneAction: 2); env = e ...

  10. ADTdef Quark

    ... lrevRef.value + (sig * atenuator.value(radRoot)), CircleRamp.kr(azimuth, 0.1, -pi, pi), Lag.kr(elevation)); lrevRef.value = (sig * contract) + Silent.ar(renderer.bFormNumChan - 1).addFirst(Mix(sig) * (1 - contract)); }; } { ^{ | lrevRef, p ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow