Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 0.0, <timer, clock; var <>recordPath, <>headerFormat = "wav", <>sampleFormat = "float", hdr; var <audioIn, <routebus, <outbus, <numChannels; var <>releaseFunc, <>onReleaseFunc, <responder, <>initFunc, <>internalReleaseFunc; var <slots, <inp ...

  2. PitchClass Quark

    ... tString ++ ","})}; ^note.asString++lacc++octString; } // can be a PitchClass or float that represents a keynum (quartertones are okay this way) invert {arg center; var change; center = center.isKindOf(PitchClass).if({ center.keynum }, { cen ...

  3. numberExtras Quark

    ... 20 celsius // factorial { // the highest factorial that can be represented as a Float is 171 // ^(2..this.asFloat).product // } /* Return a sequence of largest prime powers for a given harmonicity minimum. Pitch range is in octaves, ex, 0.0 ...

  4. SGUI Quark

    ... tPalette= themes[theme] ?? {themes.default}; } *fixDec {|val, numDecimals= 2| //float to string with fixed number of decimals var str= val.round(0.1**numDecimals).asString; var num= str.size-str.indexOf($.)-1; ^str.extend(str.size+numDecima ...

  5. Fb1 Quark

    ... r congruential generator // as the server doesn't know integers, it's done with floats, // all is blurred by floating point inaccuracy // however interesting results can be obtained // different start values can produce different orbits // ...

  6. preprocessor Quark

    ... [A-Za-z0-9_]*", int: "(-[0-9]+|[0-9]+)", // http://www.regular-expressions.info/floatingpoint.html float: "[\\-+]?[0-9]*\\.?[0-9]+([eE][\\-+]?[0-9]+)?", spc: " " // space, tab, return ); ~statements = [ \clMake -> "^ *make\\*?\\(.*\\)", \cl ...

  7. wsgui Quark

    ... des(guiObjects[objID][0][\kind]), { // value = guiObjects[objID][2].map(value.asFloat); //convert to float and map controlspec here and value = value.asFloat; }); // workaround for updating checkbox value... and possibly others? guiObjects[ ...

  8. Sieves and Psieve patterns Quark

    ... ) // if calculation exceeds the int32 limit a warning is given, the result is a float lcmByFactors(135630546, 429496729) lcmByGcd(135630546, 429496729) // also more args can be passed (all are integers < 2 * 31), // as lcmByGcd uses gcd int ...

  9. CVWidgetMSEditor Quark

    ... ont_(staticTextFont) .action_({ |mb| tmp = mb.string; // string must be a valid float or integer if("^[0-9]*\.?[0-9]*$".matchRegexp(tmp), { widget.size.do({ |sl| widget.setSoftWithin(tmp.asFloat, sl); }) }) }) ; if(GUI.id !== \cocoa, { soft ...

  10. VarGui shortcut builds Quark

    ... es that returns a valid arg. Defaults to the default TempoClock. quant - Quant, Float, nil or collection thereof used as quant data for playing streams. Also takes a Function of indices that returns a valid arg. Defaults to Quant.default (n ...

prev 21 22 23 24 25 26 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow