-
... new WebSocket('ws://www.host.com/path'); ws.on('open', function open() { const array = new Float32Array(5); for (var i = 0; i < array.length; ++i) { array[i] = i / 2; } ws.send(array); }); ``` ### Simple server ```js const WebSocket = requ ...
-
... rack //removes 2 last tracks asm removen [3,5] track //removes track numbers in array //shortcuts t names prec rec srec t add //add track b add //add bus t add 2 ///adds stereo track b add 1 ///adds mono bus t addn 2 //adds 2 tracks b addn ...
-
... outputs via equal power intensity panning. Can also be used to manipulate fixed arrays of channels (i.e. rotate, leak etc.). spread: the amount of spreading; 0 means all inputs go to first output, 1 (default) means all outputs will be used ...
-
... outputs via equal power intensity panning. Can also be used to manipulate fixed arrays of channels (i.e. rotate, leak etc.). spread: the amount of spreading; 0 means all inputs go to first output, 1 (default) means all outputs will be used ...
-
... llUnits.put( index, allUnits[ index ].add( unit ) ); }); }); units = allUnits.asArray.collect({ |item, i| var variants = (); if( allDefNames[i].notNil ) { if( item.size == 1 ) { [ item[0] ] } { if( multiUdefs.includes( allDefNames[i] ) ) { ...
-
... iFileWriter .new( "testfile15.txt" ); Task ({ 3.do{ m.open; 20.do{ m.writeLine( Array .fill( 10, { 1.0.rand })); 0.25.wait; }; m.close; 1.0.wait; }; "done" .postln; }).play; n = MultiFilePlayer .new( "testfile15.tar" ); n.readAt( 4, 2 ); n. ...
-
... select { |router| router.match(userName, groupName, serverAddr, serverPort) }.asArray } // if there is already a client with these specs, // use that to avoid doubled login failure and confusion. *new { |userName, groupName = 'oscrouter', s ...
-
var saveSubType = AbstractChuckArray.defaultSubType; AbstractChuckArray.defaultSubType = \chordStorage; // chord processes // chord segment // no modal stuff, just raw midi notes PR(\abstractProcess).v.clone({ ~prepare = #{ |notes, modeOver ...
-
... init { pitches = (); virtual = []; spectral = []} *subharmonics{|freqs, n = 6| ^Array.series(n, 1, 2).collect{|h| freqs / h}} *calc {|freqs, n = 6| var esto, subH = Salience.subharmonics(freqs, n).flop, fw; esto = this.new; esto.freqs = fre ...
-
... emSize = memorySize, // protect against the instance variable changing memory = Array.newClear(memSize), // a circular buffer origin = 0, bottomIndex = 0, // memory.wrapAt(bottomIndex) will always be the OLDEST element outIndex = 0, stream ...