OM-SCALE

[GENERIC-FUNCTION]


OM 6.1
Function Reference
ARGUMENTS:
  - self number or list [default = 1]
  - minout a number [default = 0]
  - maxout a number [default = 0]
&optional
 
  - minin   [default = 0]
  - maxin   [default = 0]

Description:

Scales <self> (a number or list of numbers) considered to be in the interval [<minin> <maxin>] towards the interval [<minout> <maxout>].

If [<minin> <maxin>] not specified or equal to [0 0], it is bound to the min and the max of the list.

Ex. (om-scale 5 0 100 0 10) => 50
Ex. (om-scale '(0 2 5) 0 100 0 10) => (0 20 50)
Ex. (om-scale '(0 2 5) 0 100) => (0 40 100)