-
... otesTonality=Array.new(12); scaleBase = base; switch (type) {"M"} { for(0,major.size-1,{arg i; notesTonality.add( mod(scaleBase +major.at(i),12) ); }); } {"l"} { "c".postln; } {"m"} { for(0,harmonicMinor.size-1,{arg i; notesTonality.add( mo ...
-
... of the fun? You need to pass in the coefficients via two buffers, of arbitrary size. Class Methods LTI. ar ( input , bufnuma: 0 , bufnumb: 1 , mul: 1.0 , add: 0.0 ) Arguments: input What do you want to filter? bufnuma Feedback filter coeff ...
-
... nitHO(f, dt, t, y) } initHO { |af, adt, at, ay| dt = adt; t = at; y = ay; if(af.size == 0) { order = (af.def.numArgs-1); f = ((order-1).collect { |i| { |... args| args[i+2]} }) ++ [{ |... args| af.(*args) }]; f = f.as(NFunc); } { //order is ...
-
... var offsetValue, tempArray, prevItem; repeats.value(inval) * list.value(inval).size do: { var item, index; if (tempArray.size == 0, { tempArray = list.copy; }); // While new item is the same as the previous value or nil, select randomly a ...
-
... values.remove(val); // if there are no more usable values, exit loop if( values.size == 0, { sum = -1; }); }); }); ^result } // same as asSummationOf, but with weights aswAddendsOf{ arg summation, weights; var result, values, index; result ...
-
... a simpler and better solution later. res = res.reject(_ == "127.0.0.1"); if(res.size > 1) { postln("the first of those devices was chosen: " ++ res) }; res = res.first; }); ^res ?? { "chosen loopback IP, no other ip available".warn; "127.0. ...
-
... var <>xiigui; var <>win, params; var multislider, c, b, eqUpdateTask, name; var size, synth, cmdPeriodFunc, inbus, onOffButt, refreshTime; var colors; *new { arg server, channels, setting = nil; ^super.new.initXiiEQMeter(server, channels, s ...
-
... ontent other than it's background, so if it's contained in a layout it may be resized to a 0px width or height. To prevent this, specify an explicit size using View: -minHeight / View: -minWidth / View: -minSize or View: -fixedHeight / View ...
-
... dPendulum(world, loc, vel, 0, 1.rrand(5), 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(1); }.dup(n); a= world.objects; //--loop w.draw{ Pen.width= 1; Pen.strokeColor= Color.white; world.objects.do{|o, i| o.addFor ...
-
... dPendulum(world, loc, vel, 0, 1.rrand(5), 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(1); }.dup(n); a= world.objects; //--loop w.draw{ Pen.width= 1; Pen.strokeColor= Color.white; world.objects.do{|o, i| o.addFor ...