-
... tor2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVector2D[i.linlin(0, n-1, 0, width), height*0.5]; var vel= RedVector2D[0, 0]; var acc= RedVector2D[0, 0]; var obj= RedObject(world, loc, vel, acc, speeds[i]*5000, 50); }.d ...
-
... button_rack_view.mouseDownAction_( { | view, x, y | var selection_y = y.linlin( 0, view.bounds.height, 0, 4, clip: 'minmax' ).asInt; selected_view = selection_y; views.do( { | view, index | if( index == s ...
-
... ly by amplitude. */ // your speaker positions p = 112.collect{ |i| Point(i.linlin(0,111,-10.0,10.0), 5) }; // now go, buy 112 speakers and play this synthdef :-) ( SynthDef(\minimalWFS,{ var excitation = Dust.ar(20) * 0 ...
-
... fault if input is not supplied */ if(input == nil, { in = Impulse.ar(speedValue.linlin(0,10, 5, rrand(50, 200.0))); in = BPF.ar(in, rrand(2000, 18000.0)*rrand(0.3, 2.0), 0.4); }, {in = input.value(speedValue)} ); in; }; } preUpdate{ arg the ...
-
... nMax.asCompileString); }); } pr_normalizeCap {|arr| ^arr.collect { |val, i| val.linlin(capMinMax[i][0], capMinMax[i][1], 0, 1); }; } pr_tareCap {|arr| var min, max; arr.do{|val, i| #min, max = capMinMax[i]; (val < min).if{ capMinMax[i][0] = ...
-
... !=lastValues[i], { //filter out repeats lastValues[i]= x; { sliders[i].value= x.linlin(0-~maxuV, ~maxuV, 0, 1); //-1000 to 1000uV numbers[i].value= x; //display raw values }.defer; }); }; }); }; ~openbci= board; ) ~openbci.softReset; ~openb ...
-
... sta (1V), aunque la rueda tiene un rango de 0-10. } convertVelocity { ^velocity.linlin(-5, 5, -1, 1); // factor de -1 a 1 para la velocidad del teclado. } convertGate { ^gate.linlin(-5, 5, -1, 1) * keyGate; // factor de -1 a 1 para la envol ...
-
... rrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot target for testing Pen.moveT ...
-
... tness .kr(chain); flatdb = 10 * flat.log; // Convert to decibels flatdbsquish = LinLin .kr(flatdb, -45, -1.6, 0, 1).max(-10); // Rescale db roughly to 0...1. flat.poll(10, "flatness: " ); flatdb.poll(10, "flatness (db): " ); Out .kr(0, [fla ...
-
... rrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot target for testing Pen.moveT ...