multiMap() function - integer linear interpolation

jmcgihon:
I know this is an old thread, but I made it work with decremented IN values:
...

Thanks, can be really valuable in some cases (e.g. the IN array is measured runtime)
unfortunately it doubles the footprint,