Map() function for curve

Check out my multimap() - Arduino Playground - MultiMap - code. It is made for this...