MouseY

final case
class MouseY(lo: GE, hi: GE, warp: GE, lag: GE) extends SingleOut with ControlRated

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 and hi is 1.0, the minimum value output is 1.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
trait Serializable
trait ControlRated
class SingleOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final
def name: String
Inherited from
UGenSource
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def rate: Rate
Inherited from
ControlRated

Inherited fields

lazy override
val hashCode: Int
Inherited from
UGenSource