Mapping from frequency to MIDI notes.
Computes a normalized frequency form a frequency.
Mapping from MIDI notes to frequency.
Computes a frequency.
Convert from dB to float.
Fletcher and Munson equal-loudness curve Reference: Xavier Serra thesis (1989).
Gets a factor for making exponential decay curves.
Convert from float to dB
Hermite interpolation.
SSE approximation of reciprocal square root.
Is this integer even?
Is this integer odd?
Linear interpolation, akin to GLSL's mix.
Map linearly x from the range [a, b] to the range [c, d]
map [0..1] to min..max logarithmically min and max must be all > 0, t in [0..1]
Computes next power of 2.
Computes next power of 2.
Give back a phase between -PI and PI
Quick and dirty sawtooth for testing purposes.
Quick and dirty square for testing purposes.
Quick and dirty triangle for testing purposes.
Cardinal sine
Same as GLSL smoothstep function. See: http://en.wikipedia.org/wiki/Smoothstep
DSP utility functions.