
This function maps a value in one range to another range.
map(value, start1, stop1, start2, stop2)
a numeric value
input value
lower bound of the value's current range
upper bound of the value's current range
lower bound of the value's taget range
upper bound of the value's target range