-
// wslib // number testing + String { couldBeNumber { //test if a string could be converted to number using .interpret ^this.every({ |item, i| ((item.isDecDigit) or: (item == $.)) or: ((item == $-) && (i == 0)) }); } couldBeHex { ^this.ever ...
-
... sses // here are the busses ~dirt.audioRoutingBusses.size // 16, so you can use numbers from 0-15 ~dirt.audioRoutingBusses.at(7).scope; ( Pdef(\x, Ppar([ Pbind( \type, \dirt, \s, \cr, // play a crash \to, 7, // map it to bus number 7 \pan, ...
-
... .5 @ 0.5, 0@0 ]); *gridPos(numx, numy) // calculate positions for a grid numx : number of speakers in the x-direction numy : number of speakers in the y-direction SpatioScope .gridPos(4,6); *grid(numx, numy radius, angleOffset, server, pare ...
-
... Size, envbufnum, overlaps, windowRandRatio, interp, mul, add) numChannels - the number of channels in the buffer. buffer - the buffer number of a mono soundfile. warpFactor - amount to stretch or compress the buffer. 0.5 is half speed, 2 is ...
-
... n you could fit in your RAM. it associates each soundfile with a key (usually a number or a symbol) and can simultaneously play n overlaps of each sound. this class has a small delay before starting the sound as it buffers or 'cues' data ri ...
-
... \duplicateChannel duplicates a single channel to multiple outputs. numChannels: number of output channels (*). (*) only the following numbers of channels are allowed: 1,2,3,4,5,6,7,8,10,12,16,24,32 -- this is an Udef definition file part of ...
-
... \duplicateChannel duplicates a single channel to multiple outputs. numChannels: number of output channels (*). (*) only the following numbers of channels are allowed: 1,2,3,4,5,6,7,8,10,12,16,24,32 -- this is an Udef definition file part of ...
-
... .0], \acosh: [1.0, 8.0], \atanh: [-1.0, 1.0] ) } test_unaryOps_invariants { var number = 1.561; unaryOps.do { |op| var d = number.asDerivative; var a1 = perform(d, op).real; var a2 = perform(d.real, op); this.assertFloatEquals(a1, a2, "Unar ...
-
... and; r2 = b.size.rand; this.assert(n.even, "for this test, array must have even number of elements"); ops = ( \reverse: { |x| x.reverse }, \rotate: { |x| x.rotate(x.size div: 2) }, \swap: {|x| x.swap(r1, r2) }, \flop: {|x| x.flop } ); ops.k ...
-
... a(4, 4), [0, 2], "c" , "|" ); a = [ [ "Minute" , "from Degree" , "to Degree" , "Number of Countries" ], [3.54, "$0^o$" , "$45^o$" , 67], [5.02, "$7^o$" , "$32^o$" , 3] ]; LaTeX .tableDict(a, [1], "c" , "|" , false ); barChart: // Give it an ...