Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... rentiation-and-why-does-it-work It supports partial derivatives, derivatives on floats, arrays, signals, complex numbers. Some methods of `SimpleNumber` are missing (like `degreeToKey` and the boost special functions) and may never be imple ...

  2. ModalFreq Quark

    ModalFreq : AbstractPlayerProxy { // players or floats will work var <>degree,<>scale,<>root,<>octave=4.0,<>stepsPerOctave=12.0; *new { arg degree=0,scale,root=0.0,octave=4.0,stepsPerOctave=12.0; ^super.new.degree_(degree).scale_(scale ?? { ...

  3. DMXDevice Quark

    ... (cuesize) ++ Int8Array[0] ++ cue.asInt8 ++ this.createFooter; if ( cue.mode == \float ){ datablob = this.createSendHeader(cuesize) ++ [0] ++ cue.asInt8 ++ this.createFooter; }{ datablob = this.createSendHeader(cuesize) ++ [0] ++ cue ++ this ...

  4. Rational-ext Quark

    ... SimpleNumber { asRational { ^Rational.new(this) } /% { |that| ^Rational(this.asFloat / that) } fuzzygcd { |that, error = 0.15, tries| // error = acceptable amount of error in deciding "equality" // tries = how many iterations before giving ...

  5. Rational-ext Quark

    ... SimpleNumber { asRational { ^Rational.new(this) } /% { |that| ^Rational(this.asFloat / that) } fuzzygcd { |that, error = 0.15, tries| // error = acceptable amount of error in deciding "equality" // tries = how many iterations before giving ...

  6. TestJSONlib Quark

    ... 0], ["negative integer", -10, -10], ["zero", 0, 0], ["negative zero", -0, 0], ["float", 3.14, 3.14], ["negative float", -3.14, -3.14], ["inf", inf, "\"inf\""], ["negative inf", -inf, "\"-inf\""], ["pi", pi, 3.1415926535898], ["exp writing", ...

  7. TestNoOps Quark

    ... } test_numerical_homomorphisms { var n = [ 10.rand2, // integers 10.0.rand2, // floats { 100.rand2 }.dup(8), // arrays { 100.0.rand2 }.dup(8), Complex(100.rand2, 100.rand2), // complex { 1 }, // function ]; var numbers = n.dup(2).allTuples. ...

  8. JITView_test Quark

    ... Ndef // value can be anything j.value_([30, 300]); j.value_([30, 300] * 3); // floats look like floats j.value_([30, 300] * 3.0); j.action.add(\test, { |jv| "jv value is: %\n".postf(jv.value) }); j.doAction; /* BASIC display mode is 'code' ...

  9. JITView_test Quark

    ... Ndef // value can be anything j.value_([30, 300]); j.value_([30, 300] * 3); // floats look like floats j.value_([30, 300] * 3.0); j.action.add(\test, { |jv| "jv value is: %\n".postf(jv.value) }); j.doAction; /* BASIC display mode is 'code' ...

  10. extNumber-speedOfSound Quark

    ... . This means that the outcome // of the formula is not as precise as the 64-bit float value it produces; // it is only an approximation. However, it does deal with the most important parameter: // the temperature. var r = 8.314472; // unive ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow