classBooleanParam
Source: waax.
new BooleanParam(options)
Boolean parameter abstraction. Usually called by WX.defineParams method.
Parameters
Name | Type | Optional | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Parameter configruation. Values in
|
Methods
staticget() → Number
Returns the paramter value. Note that this is not a computed value of WA AudioParam instance.
- Returns
-
Number
Latest paramter value.
staticinit(options)
Initializes instance with options.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
Object |
|
Paramter configuration. |
staticset(value, time, rampType)
Sets parameter value with time and ramp type. Calls back a corresponding handler.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
value |
Number |
|
Parameter target value |
time |
(Number or Array) |
|
time or array of
|
rampType |
Number |
|
WAAX ramp type |