gatetotrig
A gate to trigger operator.
new gatetotrig([options])
Options
Name | Type | Default | Description |
---|---|---|---|
edge | enum | pos | The @edge attribute sets the trigger transition direction. |
Methods
next(val): out1
Arguments
Name | Type | Default | Description |
---|---|---|---|
val | number |
Returns
Name | Type | Description |
---|---|---|
out1 | number | Outputs a 1.0 as a float value only when a transition is detected, otherwise outputs a zero. |