-
... loc.x).neg; // 0 is the floor, and world.dim.z/2 is the ceiling var z=obj.loc.z.linlin(0,world.dim.z,world.dim.z,0); //invert min and max in the view var a,b; var newObj,newObj2; newObj=obj.copy.loc_(Cartesian(x,y,z)); //take care not to ov ...
-
... <= (sbutton_note + nk2num - 1)), { sbuttons[scene][cc - sbutton_note].val = val.linlin(0,127,0,1); knobs[scene][cc - sbutton_note].tmpSval = knobs[scene][cc - sbutton_note].prev; faders[scene][cc - sbutton_note].tmpSval = faders[scene][cc - ...
-
GUI to generate scale- and arpeggio-like fragments in Just Intonation by jordanwhitede (jordanwhitede) Code
... ar val = obj.value; // Scale duration, make sure it is not zero val = val.linlin(0.0, 1.0, 2.0, 0.1); ~dur = val; Pdefn(\pDur, ~dur) }); // Slider 1 - change atk sliders[1].action_({|obj| var val = obj.value; val = val.li ...
-
... , " ++ val ++ ")").radpostcont.interpret; }.([-60.0, 0.0].asSpec.map(args[0][1].linlin(0, 1, 0, 1.0)) )},'/radtestvol'); == radpostcont == Ndef('track1').set('volume', -30.0)
-
... f( timeBase.next === \seconds ) { spd = speed.next * clockwise.next.binaryValue.linlin(0,1,-1,1); i = spd * UPattern.startPos; }; loop { ((((((i % 1) * 2pi) + [0, 0.5pi] + startAngle.next).sin * radius.next.asArray) + center.next.asArray)) ...
-
... ( Slider2D().fixedSize_(45).action_({arg ctrl; node.set(\lo_freq, ctrl.x.linlin(0,1,0.1,1000)); node.set(\lo_db, ctrl.y.linlin(0,1,-18,18)); }).x_(100.linlin(0,1000,0,1)).y_(0.linlin(-18,18,0,1)), Slider2D().fixedSize_(45 ...
-
... will transform the received values. // add +20 to all values {|v| v+20} // use linlin to map [0, 1] to [20, 200] linlin(_, 0.0, 1.0, 20.0, 200.0); ⧉ ✔ callback A function which will be called. First argument is the received value. {|v| "re ...
-
... curve value for a ControlSpec or lincurve calcCurve { |min = 0, max = 1| ^(this.linlin(min,max,0,1).max(1e-154).reciprocal-1).squared.log; } }
-
... curve value for a ControlSpec or lincurve calcCurve { |min = 0, max = 1| ^(this.linlin(min,max,0,1).max(1e-154).reciprocal-1).squared.log; } }
-
... nthiGME.setParameterOSC( string: "/out/" ++ num ++ "/filter", value: knob.value.linlin(0,1,0,10), addrForbidden: \GUI, ) }; pan.action = {|knob| synthiGME.setParameterOSC( string: "/out/" ++ num ++ "/pan", value: knob.value.linlin(0,1,0,10) ...