-
... *itemCount { |bus| ^counts.itemCount(bus) } *busses { ^counts.contents.keys.as(Array) } *gui { Sheet({ |f| var sortedBusses; sortedBusses = counts.contents.keys.as(Array).sort({ |a,b| (a.index?0) < (b.index?0) }); sortedBusses.do({ |bus| v ...
-
... *itemCount { |bus| ^counts.itemCount(bus) } *busses { ^counts.contents.keys.as(Array) } *gui { Sheet({ |f| var sortedBusses; sortedBusses = counts.contents.keys.as(Array).sort({ |a, b| (a.index?0) < (b.index?0) }); sortedBusses.do({ |bus| ...
-
// arrayed osc argument support // counterpart to asOSCArgBundle, asOSCArgArray + SequenceableCollection { unfoldOSCArrays { var stack, current, prev; this.do { |item| if(item === $[) { current !? { stack = stack.add(current) }; current = n ...
-
// wslib 2010 // unwrapping a wrapped array // useful for detecting phase slope etc. + SequenceableCollection { /* example (proof of concept): ((..100) * 0.125).wrap2(1).unwrap2(1).plot; */ unwrap2 { |aNumber = 1| ^this.unwrap( aNumber.neg, ...
-
+ Array { scan { |init,f| ^this.inject([init], { |state,x| state.addI( f.(state.last,x) ) }) } //mapAccumL :: (acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y]) // (0..9).collectAccum(0,{ |state,x| T(state+x,x*state) }) collectAccum { |init ...
-
... free; a.numChannels; // This is a mono file a.buffer; // Buffer is stored in an array of each mono channels a.activeBuffer; // See the array structure a.activeBuffer[0][0].plot; // Buffer sections is also stored in an array of each mono cha ...
-
... #x,y = WFSTools.singleAZToXY( a,d ); ^super.newCopyArgs(x,y,z); } *newAll { arg array; array = array ? [0,0,0]; ^super.new.x_(array.at(0) ? 0).y_(array.at(1) ? 0).z_(array.at(2) ? 0); } set { arg argX=0, argY=0, argZ=0; x = argX; y = argY; ...
-
... me, port); } }); sendSemaphore = Semaphore.new(1); sendSerial = 0; sendBuffer = Array.newClear(bufferSize); sendAckSerial = 0; receiveSemaphore = Semaphore.new(1); receiveSerial = 0; receiveBuffer = Array.newClear(bufferSize); connectionSta ...
-
... ct(0,0,300,300)); h.background = Color.red(alpha:0.1); h.resize = 5; // elastic Array.fill(q, { arg i; var s; s = Slider(h, Rect(0,0,20,75)); s.value = i / q; s }); w.front } test_flowInRelativeComposite { var shouldBe; shouldBe = [Rect(120 ...
-
... w, unit, i, labelWidth, width| var ctrl; var setPopUps; var max; var views; var array = []; max = ( \audio: this.getMax( \audio ), \control: this.getMax( \control ) ); views = (); ctrl = SimpleController( unit ); if( showAudio ) { array = [ ...