http://www.katjaas.nl/compander/compander.html translated in foast