Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (996) Code (19) Doc (190) Help (49) Quark (724) Plugin (14) SCDoc ↗ Forum ↗ Google ↗
  1. MxUnit Quark

    ... ndlers; classHandlers = this.handlersForClass(class); if(classHandlers.isNil, { Error("No MxUnit driver found for " + class).throw; }); // this is actually a variable space dict, not just handlers ^Environment(32, classHandlers, nil, true); ...

  2. Scala Quark

    ... he .scl file (tuning.size > pitchesPerOctave).if({ // 12.midiratio has rounding error, should be 2, is 1.999etc num = tuning.pop; (num == 12).if ({ // octave octaveRatio = 2; }, { octaveRatio = ratios.pop; }); }, { octaveRatio=2 }); } scale ...

  3. Rational Quark

    ... e| ^super.new.value_(value) } value_ { |v| v.isNumber.if({ value = v }, { MethodError("Value of a Rational must be a number", this).throw }) } // implements all basic math operations composeUnaryOp { arg aSelector; var out; ^(out = value.pe ...

  4. First Steps Help

    ... ode in SC. If we didn't have a semi-colon between the two lines we would get an error. In general when you are meant to execute several lines of code at the same time they will be surrounded by parentheses, as in the example below. This is ...

  5. StringConverter Doc

    ... er: Filter: Description Class methods current convert makeCurrent use unconvert error Inherited class methods Instance methods Inherited instance methods Examples Classes (extension) | Extensions > Virtual Gamelan'>Virtual Gamelan StringCon ...

  6. SCMMessageLabelViewFactory Quark

    ... lView(); class = class.asString(); // Type settings if (class.contains("message-error"), { newInstance.stringColor_(Color.red); }); ^newInstance; } }

  7. BufferQueryQueue Quark

    ... pletionFunc fails the queue gets stuck try { completionFunc.value(buffer); } { |error| error.reportError; "Error occurred during buffer load completionFunc. Continuing with next file." .warn; }; queue.removeAt(0); // drop first item from qu ...

  8. SynthBenchmark Quark

    ... ring).flush.close }{ ^"SynthBenchmark.write unable to open path %".format(path).error } } // Output statistics comparing two benchmarks against each other compare { |that| var k1, k2, a1, a2, wsr, wsrN, avgdiff; k1 = this.results.keys.asArr ...

  9. RootFinder Quark

    ... 204e-16,formatMatrix; (func.isNil or: { jacobian.isNil } or: { x0.isNil }).if { Error("please supply a valid func, jacobian and x0 arguments").throw }; // check input func.respondsTo('at').not.if { func = [func] }; jacobian.respondsTo('at') ...

  10. Rational Quark

    ... e| ^super.new.value_(value) } value_ { |v| v.isNumber.if({ value = v }, { MethodError("Value of a Rational must be a number", this).throw }) } // implements all basic math operations composeUnaryOp { arg aSelector; var out; ^(out = value.pe ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow