Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: m-exp-dev , Previous: M , Up: M , Home: Overview

Clamps Dictionary

m-exp

Function

(m-exp x min max)

Return the exponential interpolation for a MIDI value in the range [min..max] as a float value. The min and max values have to be positive.

Arguments

x An input value in the range [0..127] to be interpolated.
min The output value for x = 0.
max The output value for x = 127.

Examples

#+BEGIN_SRC lisp
(m-exp 0 1 100) ; => 1.0 (100.0%)

(m-exp 64 1 100) ; => 10.18296

(m-exp 127 1 100) ; => 100.0

#+ENDSRC

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate