-
... ; this.valRange = [0, 127]; } norm { |val| ^val - minval / range } valRange_ { |inRange| range = inRange[1] - inRange[0]; minval = inRange[0]; valRange = inRange; } *makeDefaults { // just one bank of sliders defaults.put(this, ( sl01: '0_7 ...
-
... r[0] + (radius[0] * [-1,1]); rangeY = center[1] + (radius[1] * [-1,1]); index = InRange.kr( point[0], *rangeX ) * InRange.kr( point[1], *rangeY ); output = Select.kr( index, [ outValue, inValue ] ); UMapOut.kr( output ); }) .setSpec( \point ...
-
... wn { arg note, color; // midinote if(note.isArray, { note.do({arg note; if(this.inRange(note), { keys[note - startnote].color = Color.grey; }); }); }, { if(this.inRange(note), { keys[note - startnote].color = Color.grey; }); }); this.refres ...
-
... o, hi, spec; ^super.newCopyArgs(lo, hi, spec.asSpec) } rrand { ^rrand(lo, hi) } inrange { |num| ^num.inclusivelyBetween(lo, hi) } range01_ { arg l, h; lo = spec.map(l); hi = spec.map(h); } range_ { arg l, h; lo = l; hi = h; } lo01 { ^spec.u ...
-
... scalefact * adjbot / ldev) // adjbot is zero when fluct not below bot + scale * InRange.kr( fluct, bottom, top ); // is 1 when fluct in range LocalOut.kr( scale ); ^( scale * sdev ) } *categories { ^ #["UGens>Analysis>Statistics"] } } MaxDy ...
-
PInRange UGenPatterns quark library superclass: FilterPattern based on InRange PInRange(pattern, lo, hi) pattern lo (default: 0) hi (default: 1) // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PInRange ( Pseq ([0, 2, 4, ...
-
... o, hi, spec; ^super.newCopyArgs(lo, hi, spec.asSpec) } rrand { ^rrand(lo, hi) } inrange { |num| ^num.inclusivelyBetween(lo, hi) } intersects { |that| if(lo < that.lo) { ^hi >= that.lo } { ^lo <= that.hi } } includes { |that| ^that.lo.inclus ...
-
... 2) output the input that changed least in1, in2 - inputs see also: MostChange , InRange ( d = { arg amp=1.0; var in1, in2; in1 = LFNoise0 .ar(800, amp); in2 = SinOsc .ar(800); LeastChange .ar(in1, in2) * 0.1; }.play; ) d.set( \amp , 0.1); d ...
-
PInRange: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes (extension) | Streams-Patterns-Events > UGenPatterns'>UGenPatterns > UGenPatterns>Modifiers'>Modifiers PInR ...
-
... 2) output the input that changed most in1, in2 - inputs see also: LeastChange , InRange ( d = { arg amp=1.0; var in1, in2; in1 = LFNoise1 .ar(800, amp); in2 = SinOsc .ar(800); MostChange .ar(in1, in2) * 0.1; }.play; ) d.set( \amp , 0.1); d. ...