-
... se the indexing has to start at 1 not 0 var result = sumF((point - node[..point.size-1]) * node[point.size..point.size*2-1]); var isleaf; if(result > 0){ // "left" branch pathInt = (pathInt << 1); isleaf = node[node.size - 2] > 0.0; }{ // " ...
-
... { |view, mousePosX, mousePosY| xIndex = super.getXIndex( mousePosX, thisValues.size ); yIndex = super.getYIndex( mousePosY, 2, false ); if(yIndex == 0) { probaMax = thisProbabilities[ thisProbabilities.size - 1]; if(thisValues[xIndex] == p ...
-
... didate files "// found % process paths at \n%\n".postf( NTMI.process.foundPaths.size, NTMI.process.procPath.cs); "// post them with: \nNTMI.process.foundNames.cs".postln; // get NTMI.process.namesToLoad = NTMI.process.namesToLoad ? NTMI.pro ...
-
... s.height-250, 250, 100)).front; b = EnvelopeView (w, Rect (10, 10, 230, 70)) .resize_(5) .action_({ arg b; [b.index,b.value].postln}) .value_([[0.0, 0.15, 0.5, 1.0],[0.1,1.0,0.7,0.0]]) .curves_([5,5,-5]); ) Accessing Instance and Class Vari ...
-
... .lines; // empty Log.start; PostOffice.addLines = true; 1 + 2; PostOffice.lines.size; // how many? PostOffice.lines; // post them - this will become a line too PostOffice.clear; // clear lines PostOffice.addLines = false; t = TextView().nam ...
-
... .5].rand2, nil, 1, 10); obj.state= (\cell: 2.rand, \neighbours: 0); px= px+(obj.size*2-1); if(px>(width*0.9), { px= 0; py= py+(obj.size*2-1); }); obj }.dup(n); //world,loc,vel,acc,mass,size synths= {|i| Synth(\sine, [\amp, 0, \freq, i/n*100 ...
-
... e = \text; } }; }); array = array.add(word); array = array.select({ |item| item.size != 0 }); if(convert) {^array.collect( _.asNumberIfPossible );} {^array; }; } extractNumbers { ^this.splitNumbers(true).select(_.isNumber) } removeNumbers { ...
-
... .5].rand2, nil, 1, 10); obj.state= (\cell: 2.rand, \neighbours: 0); px= px+(obj.size*2-1); if(px>(width*0.9), { px= 0; py= py+(obj.size*2-1); }); obj }.dup(n); //world,loc,vel,acc,mass,size synths= {|i| Synth(\sine, [\amp, 0, \freq, i/n*100 ...
-
... ransp = [0, 5, 7, 3, 2]; var scrambRand = {|array| var rand = rrand(0, array.size-3); var end = rand + rrand(1,2); var range = (rand..end); var reverseRange = range.reverse; var temp = array.copy; range.postln; range.do({|ite ...
-
... it to the system Synth(\noise, [ //create a corresponding synth \freq, newPart.size.linexp(0, 3, 10000, 3000), \amp, newPart.accel.linlin(-5, -10, 0, 0.2), \rel, newPart.size*0.05, \pan, world.gravity[0] ]); }; //--system sys= RedParticleS ...