A UGen that maps the vertical screen location of the mouse to a given linear or
exponential range. The lo
value corresponds to the ''bottom'' of the screen,
and the hi
value corresponds to the ''top'' of the screen (not vice-versa).
This UGen is useful for testing purposes. Mouse interaction with the regular desktop and windowing system is in no way altered by running this UGen.
- Value Params
- hi
value when the mouse is on the top side of the screen
- lag
60 dB decay time of a lag-time smoothing. Use zero to avoid any smoothing.
- lo
value when the mouse is on the bottom side of the screen. '''Note''': this value is never reached, because the maximum mouse coordinate is one pixel less than the screen height. For example, if the screen height is 900,
lo
is 0.0 andhi
is 1.0, the minimum value output is1.0 - 1.0 * 899.0/900 = 0.001111
.- warp
curve shape. Either zero (default) for a linear mapping, or 1 for an exponential mapping. '''Note''': When using exponential mapping, make sure the
lo
value is greater than zero, otherwise NaN values will be output.
- See also
- Companion
- object