Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... hpf1, hpf2; noise = WhiteNoise.ar(1)+SinOsc.ar([filterfreq/2,filterfreq/2+4 ], pi*0.5, XLine.kr(1,0.01,4)); //noise = PinkNoise.ar(1)+SinOsc.ar([(filterfreq)*XLine.kr(1,0.01,3), (filterfreq+4)*XLine.kr(1,0.01,3) ], pi*0.5, XLine.kr(1,0.01, ...

  2. decode_direction Quark

    ... s a single beam from an ambisonic soundfield signal. angle: angle of the beam (-pi - pi) elevation: elevation of the beam (-0.5pi, 0.5pi) amp: amplitude (0-1) mode: ambisonic mode (ambix - a.k.a. acn-sn3d, acn-n3d, fuma) this is an Udef def ...

  3. SpatioScope Quark

    ... : radius from center angleOffset : angleOffset of first speaker (0 = right, -0.5pi is top) SpatioScope .ringPos(5); SpatioScope .ringPos(8); *ring(num, radius, angleOffset, server, parent, bounds) // make a SpatioScope for a ring num , radi ...

  4. 4_flatcat4_viz Quark

    ... Pen.color = if (curr > 0, colorUp, colorDown); Pen.addAnnularWedge(0@0, 16, 20, pi, curr * 2pi); Pen.fill; // plus arrow tip triangle Pen.rotate(curr * 2pi + pi).translate(18, 0); Pen.moveTo(7@0).lineTo(-7@0).lineTo(0@ 10 * curr.sign).lineT ...

  5. WFSSpeakerConfView Quark

    ... / unitSize).floor.asInteger + ii) + 1).asString, Rect.aboutPoint( movePt.rotate(pi), 20, 15) ); }); }); }; Pen.color = Color.red(0.5, 0.5); Pen.font = Font( Font.defaultSansFace, 14 ); Pen.use({ Pen.translate( *(arrayConf.centerPoint).asArr ...

  6. TabbedView2 Quark

    ... Right, drawBottom,rotPoint,moveBy,rotPointText,drawRectText, drawRectText2,rot1=pi/2,rot2=0, tabLabelView=tab.widget, label=tab.label; followEdges.if{ switch(tabPosition) {\top}{rot1=0;rot2=0} {\left}{rot1=pi;rot2=pi/2} {\bottom}{rot1=pi;ro ...

  7. FoaMatrix Quark

    ... Channels; // setter added for matrix-to-file & file-to-matrix support // most typically called by subclass *new { |kind| ^super.new(kind).init } *newFromMatrix { |matrix, directions| ^super.new(\fromMatrix).initFromMatrix(matrix, directions ...

  8. ShepardTone Quark

    ... ig = partialCount.collect { |n| var offset = n / partialCount; var phase = (3 * pi / 2) + (2 * pi * offset); var vol = SinOsc.kr(cycle, phase).range(0, 1); var ratio = VarSaw.kr(cycle, offset, width).exprange(1/octRange, octRange); SinOsc.a ...

  9. SSObject Quark

    ... | // in radians // do not allow values of 0 dAzimuth = newD.clip(AmbXEnc.delta,2pi); if (internal) { world.sendMsg(\width,this); } } dElevation_ { |newD,internal=true| // in radians var e = this.locSph.elevation; // do not allow values of 0 ...

  10. WaveNumber Quark

    ... (in hz). *newFreq { |freq, speedOfSound = (AtkHoa.speedOfSound)| ^this.new(2 * pi * freq / speedOfSound); } // Set wavenumber from normalised frequency. *newWn { |wn, sampleRate, speedOfSound = (AtkHoa.speedOfSound)| ^this.new(pi * wn * sa ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow