-
Visual demonstration of aliasing/foldover (modified from James Harkins) by jnarveson (jnarveson) Code
... ( win, Rect(5, height + 10, width-10, 20), "freq of input wave (red):", ControlSpec(1, 40, 'lin', 0, 20), {|slider| freq = slider.value; win.refresh }, 1, labelWidth: 200, initAction: true ); sr = EZSlider( win, Rect ...
-
+ControlSpec { // a hasZeroCrossing variant that also detects if minval or maxval is 0 safeHasZeroCrossing { var thisMinSign, thisMaxSign; #thisMinSign, thisMaxSign = [minval, maxval].collect{ |val| if(val.isArray) { val.sign.mean } { val.s ...
-
... .setSpec( \type, ListSpec( [ \bspline, \cubic, \linear ] ) ) .setSpec( \curve, ControlSpec( 0, 2, \lin, 0.1, 1 ) ) .setSpec( \clipMode, ListSpec( [ \clip, \wrap, \fold ] ) ) .useSelection_( false );
-
... ").front; w.addFlowLayout; e = EZSlider(w, 300@20, \freq, \freq); AutoRand(e, e.controlSpec, 0.2).makeButton(w, Rect(0,0,20,20)); f = EZSlider(w, 300@20, \freq, \freq); a = AutoMod(f, { |amod, val| (val * rrand(0.9, 1.1)).postln; }, 0.2).ma ...
-
... spline dimension: 0: x is input, y is output 1: y is input, x is output inSpec: ControlSpec of the input range outSpec: ControlSpec of the output range ( b = BSpline([ [ 0.0, 0.0 ], [ 0.28177966101695, 0.27 ], [ 0.77118644067797, 0.932 ], [ ...
-
... ld have levels between 0 and 1, which will be mapped with according to the \amp ControlSpec. -- this is an Udef definition file part of the Unit lib default Udefs set */ Udef( \envelope_amp, { var in; in = UIn.ar(0); in = in * UEnvGen.ar( \ ...
-
... ent= SGUIelement(); var ampRandRateElement= SGUIelement(); var ampRandRateSpec= ControlSpec(0.05, 5, 'lin', 0, 1); var ampRampFreqElement= SGUIelement(); var ampRampFreqSpec= ControlSpec(-1, 1, 'lin', 0, -0.01); var ampRampRateElement= SGUI ...
-
... -- possible mapping points (*parameters*) - ```m.gens[\name].getSpec``` -- all ControlSpecs - ```m.gens[\name].getSpec(<controlKey>)``` -- ```ControlSpec``` for a controlKey + set e.g. via ```m.gens[\name].addSpec(\blink, [1, 10, \exp]);`` ...
-
... bounds The bounds, a Rect data An array of [[x0,y0], [x1,y1], ...[xN,yN]] specX ControlSpec with min/max of the plotted range of dimension X specY ControlSpec with min/max of the plotted range of dimension Y Inherited class methods Instance ...
-
... ent= SGUIelement(); var ampRandRateElement= SGUIelement(); var ampRandRateSpec= ControlSpec(0.05, 5, 'lin', 0, 2); var ampRampFreqElement= SGUIelement(); var ampRampFreqSpec= ControlSpec(-1, 1, 'lin', 0, -0.01); var ampRampRateElement= SGUI ...