-
... vent. ( ~legato = 1; c = CCResponder ({ |src, chan, num, value| ~legato = value.linlin(0, 127, 0.1, 2.5) }, num: 1); // num: 1 means modwheel ) ( p = Pbind ( \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2] ...
-
... s.plot; ((0..10) / 10).collect { |num| num.quantize(1, 1.0, 0.5) }.postcs.plot; linlin(inMin, inMax, outMin, outMax, clip) map the receiver from an assumed linear input range (inMin..inMax) to a linear output range (outMin..outMax). If the ...
-
... nd the other operands as arguments. See NAryOpFunction clip, wrap, fold, blend, linlin, linexp, explin, expexp applyTo(... args) Interface that allows us to combine selectors ( Symbol s) and Function s. Sends valueArray (args) to this . // ...
-
... function, create the data at 1/2 buffer size + 1 t = Signal .fill(513, { |i| i.linlin(0.0, 512.0, -1.0, 1.0) }); // linear function t.plot // t.asWavetable will convert it to the official Wavetable format at twice the size b.sendCollection ...
-
... (-2.0 * squared(width)))); var gauss = LFGauss .ar(0.1, width, loop: 1); gauss.linlin(min, 1, 0, 1); }.plot(1) ); // range does the same implicitly ( { var width = XLine .kr(0.04, 1.0, 1); LFGauss .ar(0.1, width, loop: 1).range(0, 1); }.pl ...
-
... al, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite (1, 5, inf ).asStream.nextN(10); // Random integers 1-5, multiplied ...
-
... ; //m.postln; ([256, 0].includes(m)).if{ // restrict to no modifier value = (x).linlin(0,v.bounds.width,0,1); v.doAction}; }; v.mouseMoveAction = v.mouseDownAction; // (5) (optional) define key actions v.keyDownAction = { arg view, char, mo ...