Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ation=0| var sig = in; HoaRotate.ar(sig, rotation, order) }, 1, ( \rotation: [(-pi), pi, \lin] ) ); OFX_Chain.add3( "hoaTiltO%".format(order).asSymbol, \filter -> { |in, tilt=0| var sig = in; HoaTilt.ar(sig, tilt, order) }, 1, ( \tilt: [(-p ...

  2. ClassTest Quark

    ... e((~order+1).pow(2)); {HOAEncoder.ar(~order, WhiteNoise.ar(1.0), az: MouseX.kr(-pi, pi ) , elev: MouseY.kr(-pi * 0.5, pi * 0.5) )}.play ) // HOA Rotate Az ( ~order = 2; s.scope((~order+1).pow(2)); { HOATransRotateAz.ar(~order, HOAEncoder.ar ...

  3. HOA_Playground Quark

    ... nnels); ~hoaScene.source = {HOAEncoder.ar(~order, Decay.ar( Impulse.ar(1), 0.1, PinkNoise.ar(0.1) ), az: Saw.ar(0.5, pi ) )}; ~hoaScene.fadeTime = 1; s.sync; ~hoaTransformer = RecNodeProxy.new(s, \audio, ~hoaNumChannels); ~hoaTransformer.so ...

  4. AmbSMrEnc Quark

    ... 3); var sin_a = sin(a); var cos_a = cos(a); w = 1; // y = (2 * sqrt3 * sin_a) / pi; z = (2 * sqrt3) / pi; x = (2 * sqrt3 * cos_a) / pi; ^[w, y, z, x]; } } AmbSMrEnc2 : AmbSMrEnc{ classvar <order = 2; *kr { |a, norm| // elevation, norm var w ...

  5. FoaMatrixChain Quark

    ... m(ctl1, ctl2).matrix * mtx } ] */ xformSpecs = [ \push, [ \Degree, ControlSpec(-pi/2, pi/2, default: 0, units: "π"), \Azimuth, ControlSpec(pi, -pi, default: 0, units: "π"), \Elevation, ControlSpec(-pi/2, pi/2, default: 0, units: "π"), ], { ...

  6. SGUIicons Quark

    ... rTeethBA= -0.1, outerTeethBB= 0.1| var points= [ Point(size*0.5*outerRadA, size*pi/numCogs*outerTeethAA), Point(size*0.5*outerRadA, size*pi/numCogs*outerTeethAB), Point(size*0.5*outerRadB, size*pi/numCogs*outerTeethBA), Point(size*0.5*outer ...

  7. LaTeX Quark

    ... duces LaTeX code for tables and charts numericalDict: d = (a: 100.2, b: 650.2, "pi" :pi, der:0.001, "\\theta" : "theta" ); LaTeX .numericalDict(d, "key" , "value" ); LaTeX .numericalDict(d); // dict can be also an array with key value pairs ...

  8. TeensyHeadTracker Quark

    TeensyHeadTracker : BinauralDecoderCIPIC{ classvar <rollMidi, <pitchMidi, <yawMidi; *new { |hoaOrder=3, id=21| order = hoaOrder; subjectID = id; ^this.init(); } *afterSynthInit{ this.connectController(); this.mapController(); } *mapControll ...

  9. ZPlane Quark

    ... , { newPoles.do({ arg pole; if(pole.isKindOf(Polar), { angle = pole.angle.wrap(-pi, pi); if(angle == pi.neg, { angle = pi }); poles = poles.add(Polar.new(pole.magnitude, angle)); //Add conjugate if arg 'real' is true and the angle is not 0. ...

  10. Siren Quark

    ... mul = 1, add = 0| var wave; wave = SinOsc.ar( 0, MulAdd( LFSaw.ar( freq, iphase/pi )**sharpness, pi, modPhase ) ); if( noiseLevel == 0 ) { ^wave.madd( mul, add ) } { ^((wave * (1-noiseLevel)) + (PinkNoise.ar( noiseLevel )*wave.range(0,1))) ...

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow