-
... [6,7,8], [10,12]]).do(_.postln);"" */ *meshgrid {|arrays| var less; ^if(arrays.size==1){ arrays[0] }{ less = this.meshgrid(arrays[1..]); arrays[0].collect{|val| less.collect{|lval| val.asArray ++ lval} }.flatten; }; } }
-
... 0.1; ~freq = 200; // 393.44 s.waitForBoot { var numSliders, indexThumbSize, indexWidth, centre, upperHeight, lowerHeight, multiSliderHeight, width, win; var freqBox, multiSliderFreq, multiSliderPhase, phases, phaseButtons, am ...
-
... f the file. Creation / Class Methods *new (steps, tonic, mod, offset, drawints, size, win, num) steps - number of steps in circle. Default value is 12. tonic - as an integer, default value is 0 ("C major" collection) if number of steps is 7 ...
-
... nor)); ~arp = ~arp.addAll(ChordSymbol.asDegrees(\Edom7, Scale.minor)); ~arp.size // confirming it's 16 items ( ~bass = Pbind( \instrument, \default, \scale, Scale.minor, \dur, Pbjorklund2(3, 8) * 0.25, \degree, Pseq([3, 3, 5 ...
-
... saint. Class Methods . new Arguments: k The number of 'hits'. n The total array size. . fromArray Inherited class methods Instance Methods Inherited instance methods Examples Bjorklund(3, 8) //tresillo Bjorklund(5, 8) //cinquillo Bjorklund( ...
-
... } pageByIndex { |index, wrap = true| if (wrap) { index = index.wrap(0, mktlDict.size - 1) }; this.pageByName(pageNames[index]); } up { this.pageByIndex(this.currIndex + 1) } down { this.pageByIndex(this.currIndex - 1) } }
-
... re incoming imu speed: /*** sketch: q.accelcount = 0; q.times = List[]; q.times.size; MFdef(\ntmiImuFunc).add(\counter, { var el = MKtl(\ntmi).elAt(\accel, \x); q.times.add (el.lastUpdateTime); if (q.accelcount >= 1000) { "done".postln; MFd ...
-
... n SC2 by felix // SC3 version by felix arg sample, pointer, pchRatio=1.0, windowSize=0.1, overlaps=10, windowRandRatio = 0.1, windowEnv,mul=1.0; var sampleRate, bufSize,amp,bufBySR; var offset,rateScale,timeScale; sampleRate = sample.sample ...
-
... notEmpty, { path[0].isBundlePath; }, { false }); } isValidExtension { if( (this.size == 0) or: { this.includes( $ ) or: this.first.isAlpha.not } ) { ^false } { ^true }; } pad { |char = $', amt = 1| var padString; padString = String.fill( am ...
-
... contains( pt.asPoint ) ) { pts = pts.add(i) }; }); ^pts; } // general methods resize { ^view.resize } resize_ { |resize| view.resize = resize } rect_ { |rect| this.object = rect.asRect } rect { ^object } // changing the object moveSelected ...