Skip to content

Pattern: PScaleLinLin

Map input from linear range [a,b] to linear range [c,d].

Example output

>>> p = PScaleLinLin(PWhite(), 0, 1, -50, 50)
>>> p.nextn(16)
[-34.434991496625955, -33.38823791706497, 42.153457333940267, 16.692545937573783, ... -48.850511242044604 ]