Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (747) Code (14) Doc (370) Help (95) Quark (257) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. TraerParticle Quark

    ... or3D var <>velocity; //TraerVector3D var <>force; //TraerVector3D var <>mass; //Float var <>age; //Float var <>dead; //Boolean var <>fixed; //Boolean *new {|m= 1| ^super.new.initTraerParticle(m); } initTraerParticle {|m| position= TraerVect ...

  2. Rational Quark

    Rational An adapter (wrapper) for a floating point number which, within a given precision, will attempt to display as a fraction of two integers. Normal math operators may be used on rationals, and the result will be a rational. If a ration ...

  3. Rational Quark

    Rational An adapter (wrapper) for a floating point number which, within a given precision, will attempt to display as a fraction of two integers. Normal math operators may be used on rationals, and the result will be a rational. If a ration ...

  4. TraerSpring Quark

    ... murderandcreate.com/physics/ TraerSpring : TraerForce { var <>springConstant; //Float var <>damping; //Float var <>restLength; //Float var <>a; //TraerParticle var <>b; //TraerParticle var <>on; //Boolean *new {|a, b, ks, d, r| ^super.new.i ...

  5. Rational Quark

    ... Note [Precision] // ~~~~~~~~~~~~~~~~ // // Numerator and denominator are always Float, never Integer. // // An sclang Integer is 32 bits and wraps past 2147483647 with no warning. A // Float is an IEEE double and holds every integer exactly ...

  6. lcmExtensions Quark

    ... }; args.any(_ == 0).if { ^0 }; lcm = args.inject(this, { |x, y, i| // z must be float for reliable threshold check, thus '/' instead of 'div' var z = x / gcd(x.isFloat.if { x.round.asInteger }{ x }, y) * y; (z > thr).if { (i < (args.size-1) ...

  7. NMLUnitTests Quark

    ... // this will respond to itself "Testing challenge authentication with Array of floats as challenge:".postln; challenge1.authenticate(peer1, {result = true }); this.asynchAssert({result.notNil}, {result}, "authentication timed out", 2); res ...

  8. RedObject Quark

    ... bject { var <>world, //world <>loc, <>vel, <>accel, //vectors <>mass, <>size; //floats *new {|world, loc, vel, accel, mass, size| ^super.newCopyArgs( world ?? {RedWorld.new}, //defaults to 2d world loc ?? {RedVector2D[0, 0]}, vel ?? {RedVec ...

  9. TraerParticleSystem Quark

    ... erandcreate.com/physics/ TraerParticleSystem { classvar <>default_gravity= 0; //Float classvar <>default_drag= 0.001; //Float var <>particles; //List var <>springs; //List var <>attractions; //List var <>customForces; //List var <>integrato ...

  10. 1_serverConfig Quark

    ... rver .recChannels_(m.config.numChans ? 2) // record numChans .recSampleFormat_("float") // in float to recover from clipping ; if (m.server.serverRunning) { m.warnWin( "Setting Server.options while server running!\n" "Settings will not take ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow