-
... //test2 - looping through samples one after the other ( Routine({ var index= 0; var c= Condition.new; inf.do{ var a= Synth(\sample, [\buf, b[index], \rate, 1]).register; a.onFree{ ("playing index:"+index).postln; ...
-
... nes.add(aplane); ^aplane; } *aplanes {var resultArr, planeArr; planeArr = super.indexArr; planeArr.do{|item, index| if((item[1][0] == \aplane), { resultArr = resultArr.add(item); }); } ^resultArr; } *indexArr {var arr, result, aplaneArr; ar ...
-
... eserved = IdentityDictionary.new; reservedTypes.do({ arg type; i = controlTypes.indexOf(type); i.notNil.if({ cc = available.at(i); reserved.put(cc.type, cc) }); }); } get { arg type, name; // get a controller, by type or any kind if type is ...
-
... eserved = IdentityDictionary.new; reservedTypes.do({ arg type; i = controlTypes.indexOf(type); i.notNil.if({ cc = available.at(i); reserved.put(cc.type, cc) }); }); } get { arg type, name; // get a controller, by type or any kind if type is ...
-
... argin * ( states.size - 1 ) ) / states.size; } ); states.do( { | state, index | var string_rect; var string_color; if( current_state == index, { Pen.fillColor_( state[ 2 ] ) }, { Pen.fillColor_( state[ ...
-
... す。 ( SynthDef("fm1", { arg bus = 0, freq = 440, carPartial = 1, modPartial = 1, index = 3, mul = 0.05; // インデックスの値は通常は0から24まで // carPartial :: modPartial => car/mod ratio var mod; var car; mod = SinOsc.ar( freq * modPartial, 0, freq * index ...
-
... ctangular at clipAt wrapAt foldAt plot swap put clipPut wrapPut foldPut putEach indexOf includes indexOfGreaterThan removeAt takeAt takeThese add addAll extend fill insert boundedInsert move addFirst pop grow growClear copyRange copySeries ...
-
... bjects) } channelAt { arg chan; ^if(chan == inf, {master}, {channels[chan]}); } indexOfChannel { arg channel; var i; if(channel === master, { ^inf }); i = channels.indexOf(channel); ^i } extendChannels { arg toSize; // create more channels ...
-
... = {{0}.dup(data[0].size)}.dup(k); centroidcounts = {0}.dup(k); data.do{|datum, index| whichcent = assignments[index]; centroidsums[ whichcent] = centroidsums[ whichcent] + datum; centroidcounts[whichcent] = centroidcounts[whichcent] + 1; } ...
-
... urn the first item in the list. . last Return the last item in the list. . at ( index ) Return the item at the given index in the list. This requires a scan of the list and so is O(n). . put ( index , item ) Put the item at the given index ...