-
Pindex pattern that indexes into an array Pindex(list, index, repeats) This allows an ArrayedCollection to be accessed within patterns. list is the array and index the value to retrieve - both of these arguments can themselves be Pattern s. ...
-
... selectModes.add( \nextNeighbour -> { |view, data, pos, itemSize| var threshold, index, selected; threshold = itemSize*2; index = data.detectIndex{ |item| (item - pos).abs.sum <= threshold; }; index }) v.select((1..900)) v.selection v.select ...
-
... f animation", Rect(300, 300, a.width*scale, a.height*scale), false); var image, index= 0; var i, j, x, y, size; var left, right, top, bottom; win.background= Color.green; win.drawFunc= { Pen.smoothing= false; image= a.images.wrapAt(index); ...
-
... ildren.add( child ); } removeChild { |child| ^children.remove( child ); } at { |index| ^children.at( index ) } }
-
... (\rainbow,{ arg buf, samp=0.2,root=37,atk=0.1,decay=10, amp=0.3; var sig, index, tonic, freq, env; index = LFSaw.kr(samp).range(\bottom.ir(4),\top.ir(9)); index = index*BufFrames.kr(buf); tonic = DegreeToKey.kr(buf,index)+roo ...
-
... edInStream { |inval| var item, weightStream = weights.asStream, currentWeights, index = weightStream.next(inval).windex, totalweight, rnd, runningsum; repeats.value(inval).do({ |i| item = list.at(index); inval = item.embedInStream(inval); c ...
-
... n; } makeOrbits { |outBusses| var new, i0 = if(orbits.isNil) { 0 } { orbits.lastIndex }; new = outBusses.asArray.collect { |bus, i| DirtOrbit(this, bus, i + i0) }; orbits = orbits ++ new; ^new.unbubble } initRoutingBusses { audioRoutingBuss ...
-
... \min, \max, \warp ] ) .insertArgName_( \input ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .setSpec( \min, UAdaptSpec() ) .setSpec( \max, UA ...
-
MultiFileWriter writes multiple files to disk, and keeps an index of these files. Inherits from: : Object MultiFileWriter writes multiple files to disk, and keeps in index of these files. Additionally, it can zip each file that is written, ...
-
... \min, \max, \warp ] ) .insertArgName_( \input ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .setSpec( \min, UAdaptSpec() ) .setSpec( \max, UA ...