-
... ct( _.select({ |x| x > 3 }) ) // -> return [ None(), None(), Some(4) ] ⧉ ✔ With arrays: [Some(2),None(),Some(4)].flatten // -> return [2,4] [Some(Point(1,2)),None(),Some(Point(3,4))].collect( _.collect( _.x) ).flatten // -> return [1,3] ⧉ ✔ ...
-
... hod is chooseblock, during which the instance variable cuts must be set with an array of cuts, and the blocklength parameter with the length of this next block to render. The aspiring class writer is advised to thoroughly check out an exist ...
-
... 1) ) ⧉ ✔ Get first n primes: 0.iterate{ |x| x+1 }.select(_.isPrime).take(100).asArray ⧉ ✔ drop n first elements: 0.iterate{ |x| x+1 }.drop(10) ⧉ ✔ cycle: repeat same list over and over: [1,2,3,4,5,6].asLazy.cycle ⧉ ✔ Convert to array: LazyL ...
-
... to the bus once, so that it can be used before overwriting it with LocalOut. An array can be passed in to specify different values for each channel. Inherited class methods Instance Methods Inherited instance methods Examples ( { var source ...
-
... d Toussaint. Class Methods . new Arguments: k The number of 'hits'. n The total array size. length Number of repeats. offset Skip at start. Inherited class methods Instance Methods Inherited instance methods Examples a= Pbjorklund(3, 8, 1). ...
-
... demo N.M.Collins 23/08/03", Rect.new(100, 500, 500, (30*(data.size)))); slider= Array.fill(data.size, {arg i; DDSlider.performList(\new,[w, Rect(5,30*i, 300, 30)]++ data.at(i))}); w.front; Routine.run({ sf= BBCutBuffer(Platform.resourceDir ...
-
... ) ⧉ ✔ Dynamic Text ( w = Window.new.front; w.view.background = Color.white; a = Array.fill(20, { StaticText(w, Rect(w.bounds.extent.x.rand, w.bounds.extent.y.rand, 160, 16)) .string_("Rolof's Rolex".scramble) .align_(\center) .stringColor_( ...
-
... currently implemented . items Get/set all items of the menu. Arguments: itemArr Array of strings, setting contents of the menu. Returns: current items . action Gets or sets function to be evaluated when the the item is chosen. Arguments: fu ...
-
... atest (last) view is returned. makes adding views to layouts easier. . views an array with all added views. . addView add a view as a dependancy. also with a spec. automatically sets up the view action function. Arguments: view some view. n ...
-
... ttings for each synth when setting the source of a node proxy to a number or an array of numbers, the bus is set by a precompiled synth def, which is much more efficient and consistent than building one. This means the source can be now set ...