-
... clipSoftness), sig.softfold2(1, clipSoftness), sig.wrap2(1), sig ]); sig = sig.linlin(-1,1,*range ++ [ \none ]); UMapOut.kr(sig); }) .mappedArgs_([ \range ]) .setSpec( \id, SharedValueIDSpec( 0 ) ) .setSpec( \clipMode, ListSpec( (..3), 0, ...
-
... .size, height); peaks.do({ |prms,xx| prms.do({ |yy, ii| var size; size = yy.abs.linlin(0,1,0,height-1).asInteger; size.do({ |i| image.setColor( color.alpha_(ii*0.5+0.5), xx, 99-i ); }); }) }); if( write ) { this.write( path ); }; }); } penF ...
-
... freqs ).ampdb.clip(-200,200); // sum and scale magResponses svals = values.sum.linlin(range.neg,range, bounds.height, 0, \none); // draw summed magResponse Pen.strokeColor = Color.blue(1.0).alpha_(0.5); Pen.fillColor = hiliteColor ? Color. ...
-
... var obj = q.roli.proxy.objects[chan]; if (obj.notNil) { obj.set(\bend, bendval.linlin(0, 16383, -12, 12)) }; }; /* /// test the functions by hand q.makeNote(0, 72, 64); q.endNote(0); q.makeNote(0, 72, 64); q.setTouch(0, 96); q.setBend(0, 8 ...
-
... ); list = Array.series(size, 1, 1); arr2 = list/ (size+1) * 2 - 1; final = arr2.linlin(arr1.first, arr1.last, -1, 1).round(0.0000001); ^final; } funcSpec {var func, spec, specFunc; if( this.collect({|item| item.isFunction }).includes(true), ...
-
... ccNumber>5), { // do this for regular sliders (not knobs) sliderValue = ccValue.linlin(0, 127, 0, 1); sliderArray[ccNumber].valueAction = sliderValue; }, { // ...and for the two knobs: // weird scaling. Ignore knob-bottom numbers (51-77) to ...
-
... ask({ var lastRawVal; nSteps.do({ |ii| var val, rawVal; interval.wait; val = ii.linlin(0, nSteps-1, 0,0.5pi).sin.linlin(0,1, startVal, value ); rawVal = (val * 127).asInteger * 128; if( lastRawVal != rawVal ) // only update if actually chan ...
-
... e)) }); //slider 1 k.elAt(\sl, 1).action_({ |elem| x !? _.set(\freq, elem.value.linlin(0.0, 1.0, 50, 2000) ) }); //knob 1 -> number of harmonics k.elAt(\kn, 1).action_({ |elem| x !? _.set(\numHarmonics, elem.value.linexp(0.0, 1.0, 1, 50) ) ...
-
... In.ar(inputBusControl) + InFeedback.ar(inFeedbackBusControl); control = control.linlin(-1, 1, 300, -300); control = (rate + control).clip(1, 1000); sig = Slew.ar(sig, control, control); Out.ar(outputBusVol, sig); },[nil, nil, nil, nil, nil, ...
-
... , SinOsc.ar(100) * 20) + Line.ar(0, 1, 0.01)).dual }.plot // mappings Dual(0.5).linlin(0, 0.3, 0, 1) Dual(0.5).linexp(0.01, 1, 0.01, 1) expexp(-0.7942271232605, 0.2, 0.8, 0.1, 2.3) expexp(-0.7942271232605.asDual, 0.2, 0.8, 0.1, 2.3) curveli ...