BoolStateArray Op
Array filled with 0
, only one can be 1
Summary (oneliner)
Outputs an array where only one element is 1
, the other elements are 0
. By changing the Active Index
port you can decide which of the elements is the 1
.
E.g.:Active Index
is 2
: [0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
you can also set the inactive value and active value to change the 0
and 1
to something else like 9.5
and 0.1
- Ops.Array.BoolStateArray
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch BoolStateArray example
INPUT PORTS
How long the array should be
Which element is the 1
Zeroes are set to this number
Ones are set to this number
OUTPUT PORTS
The array containing elements with 0
, and one element with 1
Patches using BoolStateArray
Changelog
Ops.Array.ExclusiveBoolStateArray renamed to Ops.Array.BoolStateArray | pandur - 2019-06-13 10:45 |