Audio Parameter GUI

This is the way I think knobs and faders should respond in audio software when it comes to mapping / scaling of the values over the range of the input control. These are just example implementations. There's no sound. Use your browser's View Source to see the code.

Background story

Frequency Selector

The slider value ? becomes ? Hz.

hz = exp(slider_value * (log(20000) - log(20)) + log(20))

Volume Fader

The slider value ? becomes ? volume level.

amplitude = slider_value^3 * 3.162278

Decay / Release Time

The slider value ? becomes ?.

milliseconds = exp(slider_value * (log(2) - log(0.0001)) + log(0.0001))



piano