-
... k; kmeans.update(world.objects.collect{|o| o.loc}); world.objects.do{|o, i| var index= kmeans.classifications[i]; var cent= kmeans.centroids[index]; Pen.strokeColor= colors[index]; Pen.line(o.loc.asPoint, cent.asPoint); Pen.stroke; Pen.stro ...
-
... moveAll(exceptedSlots); ^slotsToStore } settingNames { ^settings.names } settingIndex { |setName| ^settings.indexOf(setName) } getCurr { var activeSlotsToStore = this.slotsToStore.sect(chain.activeSlotNames.copy); ^activeSlotsToStore.collec ...
-
... ... fxData| ^super.new(pbindData, *fxData) } } // receiver supposed to be clutchIndex + Integer { miSC_getClutch { |index| ^(index == this).if { true }{ false } } } // receiver supposed to be clutchIndices + SequenceableCollection { miSC_ge ...
-
... ode.org/1-5aD */ SynthDef(\SOSkick, { arg out = 0, freq = 50, mod_freq = 5, mod_index = 5, sustain = 0.4, amp = 0.8, beater_noise_level = 0.025; var pitch_contour, drum_osc, drum_lpf, drum_env; var beater_source, beater_hpf, beater_lpf, lpf ...
-
... n) }; ^this - mean / stdDev } // typically assumes this is sorted! atPercent { |index=0.5, interpol=true| if (interpol) { ^this.blendAt(index * (this.size - 1)) } { ^this.at( index * (this.size - 1).round.asInteger) } } /* naive method perc ...
-
StenoStack { var busIndices, <controls; var argStack; var dryReadIndex = 0, readIndex = 0, writeIndex = 0, through = 0, <argumentIndex; var <replaceAll = false; var nestingDepth = 0; *new { |busIndices| ^super.newCopyArgs(busIndices, (token ...
-
... ctionary with the items passed into the func. arguments to the func: elem, key, index, listindex // example a = FuzzyDictionary .new; // put the letters from a to j into the dictionary under their index "abcdefghij" .do { |c, i| a.put(i, c) ...
-
... ss.new(b, current+b) } storeArgs { ^[current, b] } } Gcyc : Gen { var <>list, <>index, <>step; *new { arg list, index=0, step=1; ^super.newCopyArgs(list @@ index, list, index, step) } next { ^this.class.new(list, index+step, step) } storeAr ...
-
... ig.ambiBus[0]); satie.replaceAmbiPostProcessor([\Identity], order: order, outputIndex: satie.config.outBusIndex); cond.hang; // stop 10 sec timeout timeout.stop; // in order to use Satie's generated SynthDefs in NRT, we need to store them s ...
-
... = \audio }) { numChannels = 2; }; ^super.defineBus(rate, numChannels) } put { | index, obj, channelOffset = 0, extraArgs, now = true | var container, bundle, oldBus = bus; if(obj.isNil) { this.removeAt(index); ^this }; if(index.isSequenceab ...