Preset's curve
f =

Keyboard's curve
g =



Composition
f∘g = Edit in JS Bin