2 summary:: Map a linear range to an exponential range
3 related:: Classes/LinLin
4 categories:: UGens>Maths
9 Converts a linear range of values to an exponential range of values.
17 The input signal to convert.
22 Lower limit of input range.
27 Upper limit of input range.
32 Lower limit of output range.
37 Upper limit of output range.
40 The code::dstlo:: and code::dsthi:: arguments
41 must be nonzero and have the same sign.
50 var mod = SinOsc.kr(Line.kr(1, 10, 10));
51 SinOsc.ar(mod * 400 + 500) * 0.1
57 var mod = SinOsc.kr(Line.kr(1, 10, 10));
58 SinOsc.ar(LinExp.kr(mod, -1,1, 100, 900)) * 0.1
62 // modulating destination values.
65 var mod = LFNoise2.ar(80);
66 SinOsc.ar(LinExp.ar(mod, -1,1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1
71 code::linexp:: and code::exprange:: can be used to create a LinExp implicitly from a ugen, mapping its output values from linear range to an exponential one. The rate is derived from the ugen.
77 var mod = LFNoise2.ar(80);
78 SinOsc.ar(mod.linexp(-1,1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1
85 var mod = LFNoise2.ar(80).exprange(MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1));