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

    ... %/ 5, 8 %/ 5, 1.342].sort; ``` Convert when needed: ```supercollider (5 %/ 7).asFloat // -> 0.71428571428571 pi.asRational(999) // -> 355 %/ 113 ``` Operations with exact rational answers return `Rational` values: ```supercollider (7 %/ 2). ...

  2. x-io-x-osc.desc Quark

    ... (i + 1).asSymbol] }, ioType: \in ) ), elementsDesc: ( // input elements: // 10 floating-point arguments indicating the current readings of the on board sensors. Arguments 1 – 3 gyroscope (°/s) x, y, z; arguments 4 – 6 accelerometer (g), x, ...

  3. RedVector Quark

    ... e is part of redUniverse toolkit /redFrik //--vector of any dimension RedVector[float] : FloatArray { species {^this.class} mag {^this.sum{|x| x*x}.sqrt} distance {|redVec| ^(this-redVec).mag} manhattan {|redVec| ^(this-redVec).abs.sum} dot ...

  4. asStringWithFrac Quark

    ... thFrac { |fracSize = 3| ^(this.asString ++ ".".extend( fracSize+1, $0 )); } } + Float { asStringWithFrac { |fracSize = 3| var val; val = this.round( 10 ** (fracSize.neg) ); ^(val.asInteger.asString ++ "." ++ ( val.abs.frac* (10**fracSize) ) ...

  5. RedSpring Quark

    ... dSpring { var <>object, <>target, //objects <>stiffness, <>damping, <>length; //floats *new {|object, target, stiffness, damping, length| ^super.newCopyArgs( object, target, stiffness ? 0.1, damping ? 0.9, length ? 0 ) } update { object.spr ...

  6. zArchiveSupport Quark

    ... ance a sequencer pattern could stream each step to the archive in an integer or float format. */ + Object { /* the default for any object is to write itself asCompileString to disk. this is often very large and inefficient, but its the defa ...

  7. 1a_nUFO.desc Quark

    ... x.device.updateSrcAddr("127.0.0.1", 57120); ///////// lang sends led values as floats, hm! /// how to enforce integers? ////// test send messages: n = NetAddr.localAddr; n.sendMsg("/ntmi/caps", *8.collect { rrand(0.0, 0.5) }); n.sendMsg("/ ...

  8. VectorSpaceOverview Quark

    ... lass defines the vector field as an array of functions of the type { |vector,t| float }.

  9. xosc-ntmi.desc Quark

    ... (i + 1).asSymbol] }, ioType: \in ) ), elementsDesc: ( // input elements: // 10 floating-point arguments indicating the current readings of the on board sensors. Arguments 1 – 3 gyroscope (°/s) x, y, z; arguments 4 – 6 accelerometer (g), x, ...

  10. CV Quark

    /* A CV models a value constrained by a ControlSpec. The value can be a single Float or an array of Floats. Whenever the CV's value changes, it sends a changed message labeled 'synch'. This way dependants (such as GUI objects or server valu ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow