BoolStateArray Op
Array filled with 0
, only one can be 1
Summary (oneliner)
<p>Outputs an array where only one element is <code>1</code>, the other elements are <code>0</code>. By changing the <code>Active Index</code> port you can decide which of the elements is the <code>1</code>.</p> <p>E.g.:<br><code>Active Index</code> is <code>2</code>: <code>[0, 0, 1, 0, 0, 0, 0, 0, 0, 0]</code></p> <p>you can also set the inactive value and active value to change the <code>0</code> and <code>1</code> to something else like <code>9.5</code> and <code>0.1</code></p>
- 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
<p>How long the array should be</p>
<p>Which element is the <code>1</code></p>
<p>Zeroes are set to this number</p>
<p>Ones are set to this number</p>
OUTPUT PORTS
<p>The array containing elements with <code>0</code>, and one element with <code>1</code></p>
Patches using BoolStateArray
Changelog
Ops.Array.ExclusiveBoolStateArray renamed to Ops.Array.BoolStateArray | pandur - 2019-06-13 10:45 |