FloatArray

Read with AI
All docs in one file (llms-full.txt)
FloatArray #Variable #Node
FloatArray

Holds a variable-length list of floats and outputs the element at Index to Value. The contents of the list are edited on the node (+ Add to add, the field on each row to edit, - to delete).

  • A newly created node contains the 2 elements 0, 1
  • Index wraps by modulo (Index % element count. A negative Index wraps around to the end). With 3 elements, Index 3 is element 0, 4 is element 1, and -1 is element 2. It is not clamped, so plugging in Counter as is gives a sequencer that cycles without any concern for an upper limit
  • The header on the node shows [selected index] = value

When the list is empty, the default value 0 is explicitly sent so that no stale value remains downstream.

Input ports

Port IDType
Indexint

Output ports

Port IDType
Valuefloat

Scriptable members

PathType
indexInputint

Synapse Apps (scripting)

await synapse.modules.create({ type: "FloatArray" })

Pages linking here

Also referenced from