-
... .interactionRect.left + (thisBeat * (super.interactionRect.width / super.values.size)), super.interactionRect.top, super.interactionRect.width / super.values.size, super.interactionRect.height ) ); } { Pen.fillRect( Rect( super.interactionR ...
-
... SC3.2, will look at it later + String { replaceAt {arg replaceString, pos = 0, size; // overwrite a part of a string // more flexible than .overWrite // not in place // can use a specified size of the part to remove if(size.isNil) {size = ...
-
... | var lastElement; gui.element.getElementsForGUI.pairsDo({ |key, item| if( item.size == 0 ) { if( lastElement.notNil && { lastElement.type != item.type }) { gui.parent.asView.decorator.nextLine; }; lastElement = item; } { gui.parent.asView. ...
-
... \align, { |f, path, n| var direction, amount, mode; var current, mean, extent, size; current = path.positions.deepCopy; direction = f.get( \direction ); mode = f.get( \mode ); switch( mode, \line, { current = current.collect(_.rotate( dire ...
-
... view, mousePosX, mousePosY| var xIndex = super.getXIndex( mousePosX, thisValues.size); var yIndex = super.getYIndex( mousePosY, thisEntries.size, true); this.prUpdateValues(xIndex, yIndex); if(thisActionMode == \values) { aFunction.value(th ...
-
... Lv3 License Convolve { classvar <>convBuf, <>convArray; *makeWhole {|arrays, fftSize| var temp; temp = ((arrays[0].size/fftSize).ceil*fftSize).asInteger-arrays[0].size; arrays = arrays.collect{|array| array.addAll(Array.fill(temp, {0}))}; ^ ...
-
... tring; decimal = this.asInteger; hours = (decimal.div(3600)).asString; if(hours.size < 2, { hours = "0" ++ hours }); minutes = (decimal.div(60) % 60).asString; if(minutes.size < 2, { minutes = "0" ++ minutes }); seconds = (decimal % 60).asS ...
-
... ocess.interpreter.p }); if (space.notNil) { ^space }; ^ProxySpace.all.maxItem(_.size); } *init { |force = false| if (inited.not or: { force }) { inited = true; labels = List[]; countFuncs = (); openFuncs = (); [ [ \global, { this.countGloba ...
-
... maxWidth_( 100 ); var selected_view = 0; var views = Array.fill( parameters.size, { UserView() } ); var synth = SynthDef( \synth, { | out, freq = 200, amp = 0.25 | var snd, snd2, release; var env, envctl; var env2, envctl ...
-
... dices.add(i) }) }); ^indices } collectIndices { |func| var indices = Array(this.size); this.do({ |item, i| func.value(item, i).if({ indices = indices.add(i) }); }); ^indices } detectIndexFrom { |func, start = 0, step = 1| var index = start; ...