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
- Alphabetic
- By Inheritance
- KeyState
- Serializable
- ControlRated
- SingleOut
- SomeOut
- Lazy
- GE
- UGenSource
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- lazy val hashCode: Int
- Definition Classes
- UGenSource → AnyRef → Any
- val hi: GE
- val keyCode: GE
- val lag: GE
- val lo: GE
- final def name: String
- Definition Classes
- UGenSource
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def rate: Rate
- Definition Classes
- ControlRated