remap An object that translates ranges of nubmers

Remap maps values from one range to another. It performs an transformation from a given minimum and maximum to another new minimum and maximum.

Inlets & Arguments:
#
Name
Arg
Description
1
Old Value
n/a
A float, int, symbol, bang, or list.
2
stuff
n/a
Old minimum
3
stuff
n/a
Old maxium
4
stuff
n/a
New minimum
5
stuff
n/a
New maximum

Standard Outlets:
#
Name Description
1
New Value new value = (oldvalue-oldmin)/(oldmax-oldmin) * newmax + newmin

Messages:

none
Example: