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

Clamps Dictionary

m-exp-zero

Function

(m-exp-zero x min max)

Return the exponential interpolation for a MIDI value in the range [min..max] as a float value. For x = 0 the result is always 0. 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 close to 0.
max The output value for x = 127.

Examples

(m-exp-zero 0 0.01 1) ; => 0.0

(m-exp-zero 64 0.01 1) ; => 0.101829596

(m-exp-zero 127 0.01 1) ; => 1.0

Author: Orm Finnendahl

Created: 2025-08-17 So 16:52

Validate