-
... vity * track.ignore.collect(_.not.asInteger) * track.invert.collect(_.asInteger.linlin(0,1,1,-1)) ) }); last_mugic_orientation = euler; }; if (batt[0] < 15 && (model.mugic_battery != batt)) { "Battery low! %\\% remaining".format(batt).warn; ...
-
... view.bounds.height*0.5; if(view.range>0, { if(y<midPoint, { view.setDeviation(y.linlin(0, midPoint, 0.5, 0), 0.5); }, { view.setDeviation(y.linlin(midPoint, view.bounds.height, 0, 0.5), 0.5); }); }); }); }; vZoomSlider.mouseMoveAction= vZoo ...
-
... super.values.do({ |value, index| if(super.polarity == \uni) { thisAlpha = value.linlin( super.min, super.max, thisMinAlpha, 1 ); } { if(value.abs == super.min) { thisAlpha = thisMinAlpha; } { if(value.abs == super.max) { thisAlpha = 1; } { ...
-
... ~num = 1; ( SynthDef(\testSine, { var sig = SinOsc.ar(\freq.kr(440) + \fm.ar(0).linlin(-1, 1, \low.kr(-100), \hi.kr(100))); Out.ar(\outFm.ir(0), sig); //fm output Out.ar(\out.ir(0), sig.dup * \scale.kr(1)); }).add; ) //This will work! The n ...
-
... s.do {|ndef| if (ndef.getHalo(\actBut).value > 0) { ndef.setUni(\freq, el.value.linlin(0, 1, 1, 0)) } }; }; // left x sets modIndex m.elAt(\joy, \l, \x).action_{|el| q.ndefs.do {|ndef| if (ndef.getHalo(\actBut).value > 0) { ndef.setUni(\mod ...
-
... sStream; defaultEvent = Event.default; defaultEvent[ \velocity ] = { ~amp.value.linlin(0,maxAmp,1,127,\minmax) }; defaultEvent[ \midinote2 ] = { if( ~freq.isFunction.not ) { ~freq.cpsmidi } { ~midinote.value } }; if( format > 0 ) { defaultE ...
-
... / this.speakerPositions = speakers.collect({|item,i| Spherical(item[0], item[1].linlin(-180, 180, -pi, pi), // item[2].linlin(-180, 180, -pi, pi) ).asCartesian.trunc(0.00000001) }); this.speakerPositions = speakers.collect({|item,i| Spheric ...
-
... es resonance m.elAt(\kn, \turn, 0).action_{|el| Ndef(\piano).set(\res, el.value.linlin(0, 1, 0, 1).postln) }; m.elAt(\kn, 1).action_{|el| Ndef(\piano).set(\ffac, el.value.linexp(0, 1, 0.125, 8).postln) }; ) // now hit one of its keys, or si ...
-
... c: (minval: -64, maxval: 64, asSpec: {|dict| dict }, map: { |spec, val = 0| val.linlin(0, 1, spec.minval, spec.maxval).round.asInteger }, unmap: { |spec, val = 0| val = min(64 - val, val); val.linlin(spec.minval, spec.maxval, 0, 1); }, defa ...
-
... 0 ) * 12).midiratio; rate = rate * \rateScale.kr( 1 ); reverse = \reverse.kr(0).linlin(0,1,1,-1); overlap = \overlap.kr(4); pan = \pan.kr( [ -1,1 ] ); URandSeed.ir(\seed); trigger = TDuty.ar( Dwhite( 0,1 ).linexp( 0,1, 1/timeVar/density, ti ...