MouseY

object MouseY extends ProductReader[MouseY]

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.

===Examples===

// control sine frequency
play {
 val freq = MouseY.kr(100, 4000, 1)
 SinOsc.ar(freq) * 0.1 * AmpComp.kr(freq)
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[MouseY]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def kr: MouseY
def kr(lo: GE, hi: GE, warp: GE, lag: GE): MouseY
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.

def read(in: RefMapIn, key: String, arity: Int): MouseY