-
... %/ 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). ...
-
... (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, ...
-
... 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 ...
-
... 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) ) ...
-
... 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 ...
-
... 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 ...
-
... 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("/ ...
-
... lass defines the vector field as an array of functions of the type { |vector,t| float }.
-
... (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, ...
-
/* 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 ...