-
/* \line An line / ramp generator. a: start value b: end value curve: a curve value for the line. A 0 (zero) curve creates a linear line, a positive curve value makes the line tend towards the start value, and v.v. duration: duration of the ...
-
... ("12345")\xrand("3'4'5'6'")", 2, 1)"; /y- /************** Listing 34. Usage of \ramp() generator. **************/ /y = "\ramp("*", 1, 0.2, 1, `exp)::\pitch("*", "2", 0, 0)"; /y+ // randomly choose accel or decel /y = "\ramp("*", 1, 0.2, {2. ...
-
... e, in; dt = this.dt; speedValue = Control.names(\speed).kr(speed); speedValue = Ramp.kr(speedValue, dt); /* play default if input is not supplied */ if(input == nil, { in = Impulse.ar(speedValue.linlin(0,10, 5, rrand(50, 200.0))); in = BPF. ...
-
... d var halfsize; var c; var minu, subt, diff; // complex method var complex; var ramped, complexr; var num, den; var minMag, singlBins; // rfft var rfftSize; var cosTable; var rcomplex, rcomplexr; (mindb == -inf).if({ // continuous phase met ...
-
... of the point to change to a new valye linear: if true the lag will be a linear (ramp), if false (default) the lag is applied using a 3th order filter. The latter will produce less unnatural doppler shift changes. -- this is an UMapDef defin ...
-
... other notation e= EaseInAtan(10) e.value(0.5) //-- a= (0..100)/100; //a linear ramp with values 0.0 - 1.0 a.collect{|t| EaseInQuad.(t)}.plot; a.collect{|t| EaseOutQuad.(t)}.plot; a.collect{|t| EaseInOutQuad.(t)}.plot; //--similar in sclang ...
-
... \RHPF, \TwoZero, // \APF, // fixme \BRF, \HPF, \HPZ2, \BPZ2, \BRZ2, \Lag2, // \Ramp, // fixme \Lag3, \HPZ1, \BHiPass, \BLowShelf, \BPeakEQ, \BBandPass, \BBandStop, \BAllPass, \BHiShelf, \BLowPass, /* \NestedAllpassN, \NestedAllpassC, \Doub ...
-
... ar(in, "++nIn++");"; nOut.do{|i| defString= defString++"\n\tvar m"++i++"= Mix(z*Ramp.kr(o"++i++", lag));"}; nOut.do{|i| defString= defString++"\n\tReplaceOut.ar(out+"++i++", m"++i++");"}; defString= defString++"\n});"; ^defString.interpret; ...
-
... assertClose.(env.cumIntegralInverse(0), 0, 1e-9, "inverse at zero"); // linear ramp 1→3 over 2s: b(t)=1+t, M(t) = t + t²/2 ; M(1)=1.5, M(2)=4 env = Env([1, 3], [2]); assertClose.(env.cumIntegral(1.0), 1.5, 1e-9, "cumIntegral ramp mid"); as ...
-
... dur=1; SinOsc.ar( freq, 0, amp.slew( 0.1, 0.2 ) ) } ); // [Slew] ugen // Also: [Ramp] // useful conversions for frequencies: // midicps // cpsmidi Ndef( \testSynth ).clear; k.reset;