RouteNumber Op

RouteNumber

Routes the value to one of the output ports (based on index, relay)



Full Name
  • Ops.Number.RouteNumber
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch RouteNumber Example

The SimpleAnim op outputs a steady signal (in this case between 0 and 1). We connect this to the Value port of the RouteNumber op, this is our signal we want to route to one of the three shapes.

The Index port of the ValueRouter op is connected to the Incrementor op, so it is either 0, 1 or 2, depending how often we clicked.

Click anywhere in the patch area and press the fkey to enable Flow Mode. Now click back in the canvas (a few times) and you should see how the flow of value coming out of SimpleAnim changes depending on how often we clicked – it goes to either the Rectangle, the Circle, or the Triangleop.

Open In Editor

INPUT PORTS


Index (Number:

<i>integer</i>

)

<p>Controls to which output port the value is routed</p>

Value (Number)

<p>The value to be routed to one of the output ports</p>

Default VaonlyOnePortlue (Number)
Set inactive to default (Number:

<i>boolean</i>

)

<p>Reset inactive ports to default value</p>

OUTPUT PORTS


Index 0 Value (Number)
Index 1 Value (Number)
Index 2 Value (Number)
Index 3 Value (Number)
Index 4 Value (Number)
Index 5 Value (Number)
Index 6 Value (Number)
Index 7 Value (Number)
Index 8 Value (Number)
Index 9 Value (Number)

Patches using RouteNumber

  • Examples
  • Public
  • My Patches

Changelog


renameOps.Value.RouteNumber renamed to Ops.Number.RouteNumberuser avatarpandur - 2023-12-06 09:54