Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... www.gnu.org/licenses/>. */ // a simple class mainly to display an angle in a compileString Angle { var <>value; *new { |value| ^super.newCopyArgs( value ? 0); } printOn { |stream| stream << case { value == 0 } { value } { value == pi } { "p ...

  2. BinauralDistance Quark

    BinauralDistance { *new { |d = 1.4, a = 0, hr = 0.09| // a = hoek van bron (0-2pi) - 0.5pi = recht voor // d = afstand van bron // hr = head radius (afstand tussen oren / 2) // s = afstand lijn tot waar hoofd geraakt wordt bij omlopend gelu ...

  3. VirtualOrb Quark

    ... \ /*Pen.addAnnularWedge(Point(*((pad+i_width)/2)!2), i_width*0.47, i_width*0.5, pi, pi);\ Pen.addAnnularWedge(Point(*((pad+i_width)/2)!2), 0, i_width*0.35, pi, pi);\ Pen.fill;\ */ \ Pen .translate(i_width+pad, 0);\ \\ \\ \ \;\ \ OSCresponde ...

  4. WFSPreviewSynthDefs Quark

    ... r( in, 0.1, delays + ControlDur.ir); amplitudes = Pan2.kr( 1, (point.angle - 0.5pi).neg.fold(-0.5pi,0.5pi) / 0.75pi ); amplitudes = amplitudes.max( globalDist.linlin(0.5,1,1,0).clip(0,1) ); in * amplitudes; }, \binaural: { |in, point, eleva ...

  5. TestSCLOrkClockState Quark

    ... at); }); // Should work for real values too. this.assertEquals(state.secs2beats(pi), pi); } test_secs2beats_tempos { var slowState = SCLOrkClockState.new( applyAtTime: 0.0, tempo: 0.5); var fastState = SCLOrkClockState.new( applyAtTime: 0.0 ...

  6. OssiaAutomationProxy Quark

    ... and orientation var <ossiaOrient, <ossiaOrigin; var oX, oY, oZ; var <heading, <pitch, <roll; var <origin, <scale; *new { | parent_node, allCritical | ^super.new.ctr(parent_node, allCritical) } ctr { | parent_node, allCritical, automation | ...

  7. JMDrawIcon Quark

    ... th; // Pen.addOval(drawRect); // Pen.stroke; Pen.width=penWidth2; Pen.rotate(0.3pi,mCenter.x,mCenter.y); 7.do{ Pen.line(Point(mCenter.x-(meterSize*0.7),mCenter.y), Point(mCenter.x-(meterSize*0.55), mCenter.y)); Pen.stroke; Pen.rotate(0.066p ...

  8. extBEQSuite-coeffs Quark

    + BLowPass { // wslib 2009 - plot support for BEQSuite // copied and modified from .sc methods because they use SampleRate and SampleDur // could use optimization ? *coeffs { arg sr = 44100, freq = 1200.0, rq = 1.0; var w0, cos_w0, i, alpha ...

  9. sort Quark

    ... os.sort({ |a,b| var aa, bb; aa = lastAngle - ((a - sortedPos.last).angle).wrap(-pi,pi); bb = lastAngle - ((b - sortedPos.last).angle).wrap(-pi,pi); if( aa.abs.round(0.01pi) == bb.abs.round(0.01pi) ) { a.dist( sortedPos.last ) >= b.dist( sor ...

  10. SmoothClip Quark

    ... Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ // Dynamic waveshaping with line and sine fragment: // As math is easier for the case lo == -1, hi == +1, // we regard this case first and do linear mapping / remapping for other ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow