Module scaling

Source
Expand description

Scaling operations module.

Functionsยง

ampdb
Convert an amplitude value to decibels.
dbamp
Convert a decibel value to amplitude.
linexp
Map an input value from one range to another with an exponential curve. It performs clipping on the input value in the range of from_min and from_max. Using generics, this function can map any type that implements the Float trait.
linlin
Map an input value from one range to another. It performs clipping on the input value in the range of from_min and from_max. Using generics, this function can map any type that implements the Into trait.