Module Msynth.Math

Generic arithmetical operations .

val clip : float -> float
val stretch : ?mode:[< `Linear | `Logarithmic Linear ] -> ?min:float -> ?max:float -> float -> float

Stretch a parameter between 0 and 1 to be between given bounds.

val unstretch : ?mode:[< `Linear | `Logarithmic Linear ] -> ?min:float -> ?max:float -> float -> float

Inverse of stretch.

module Osc : sig ... end

Oscillators with period 1., first going up, starting from 0.