Function
(interplx envelope {keyword value}*)
Returns the interpolated y value of x in envelope, a list of xy coordinate pairs. The return value can be optionally scaled and offset according to the keyword arguments.
interpl supports the following
keyword arguments:
:base number:scale number:offset number:min number:max number
;; Interpolation with scale and offset.
(interpl 50 '(0 0 100 1) :scale 2 :offset 3)
⇒ 4.0
(interpl 50 '(0 0 100 1) :min -5 :max 5)
⇒ 0.0
;; Exponential interpolation.
(interpl 50 '(0 0 100 1) :base 10)
⇒ 0.24025308
(interpl 50 '(0 0 100 1) :base .1 )
⇒ 0.7597469
(interpl 50 '(0 0 100 1) :base .1 :scale 1000)
⇒ 759.7469
interp [Function]lookup [Function]rescale-envelope [Function]tendency [Function]