Packages

final case class KeyState(keyCode: GE, lo: GE = 0.0f, hi: GE = 1.0f, lag: GE = 0.2f) extends SingleOut with ControlRated with Product with Serializable

A UGen that detects a specific keyboard stroke. When the given key is not pressed, the lo value is output, while the key is pressed the hi value is output. If lag is greater than zero, a Lag -type operation is applied for a smoother transition between lo and hi .

keyCode

hardware code for the key to monitor. This is likely platform dependent. For example, on Linux, key-codes 24 to 29 correspond to 'Q', 'W', 'E', 'R', 'T', 'Y'.

lo

value output when the currently pressed does not match the code

hi

value output when the currently pressed does match the code

lag

60 dB lag time in seconds.

See also

MouseX

MouseY

MouseButton

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeyState
  2. Serializable
  3. ControlRated
  4. SingleOut
  5. SomeOut
  6. Lazy
  7. GE
  8. UGenSource
  9. Expander
  10. Lazy
  11. Product
  12. Equals
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new KeyState(keyCode: GE, lo: GE = 0.0f, hi: GE = 1.0f, lag: GE = 0.2f)

    keyCode

    hardware code for the key to monitor. This is likely platform dependent. For example, on Linux, key-codes 24 to 29 correspond to 'Q', 'W', 'E', 'R', 'T', 'Y'.

    lo

    value output when the currently pressed does not match the code

    hi

    value output when the currently pressed does match the code

    lag

    60 dB lag time in seconds.

Value Members

  1. lazy val hashCode: Int
    Definition Classes
    UGenSource → AnyRef → Any
  2. val hi: GE
  3. val keyCode: GE
  4. val lag: GE
  5. val lo: GE
  6. final def name: String
    Definition Classes
    UGenSource
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. final def rate: Rate
    Definition Classes
    ControlRated