Variable

Read with AI
All docs in one file (llms-full.txt)

Nodes that hold a value and send it on. 7 in total: three that hold a single value, three that hold a list, and one that picks one out of a set of choices.

Use them as the origin point for reusing the same value over and over in the graph, or as an outlet that re-sends a value in time with the beat.

Single values (3)

NodeTypePorts
FloatDecimalIn / Trigger → Out
IntIntegerIn / Trigger → Out
StringStringIn / Trigger → Out

All three have the same structure.

  • When a value arrives at In, the held value is updated and flows straight to Out
  • Typing directly into the input field on the node without connecting In works the same way
  • Trigger pushes the currently held value out to Out once more

Trigger does not stop the value. If In moves, Out moves without you hitting Trigger. Trigger is for “sending the current value downstream once more, at this moment”. It is the same idea as Trigger in Math.

Arrays (3)

NodeTypePorts
FloatArrayList of decimalsIndex → Value
IntArrayList of integersIndex → Value
StringArrayList of stringsIndex → Value

You edit the contents of the list on the node (+ Add to add an entry; edit or delete from each row’s input field). The element at position Index comes out of Value.

Index wraps (it is not clamped)

An Index beyond the number of elements wraps around to the start using modulo.

int m = indexInput.Value % n;
return m < 0 ? m + n : m;   // 負の Index も末尾側へ回り込む

So with three elements, an Index of 3 gives element 0, 4 gives element 1, and -1 gives element 2. Plug in Counter from Operation directly and you get a sequencer that cycles without you having to worry about an upper limit.

When the list is empty, the default value (0 for Float) is explicitly sent so that no stale value is left downstream.

Choices (1)

Enum

Selects one of the choices you write on the node, one item per line, and outputs its name to Name, its number to IndexOut and the number of items to Count. There are three ways to select: the dropdown, the Index port, and the Next / Prev / Reset triggers, and while Index is connected the number coming from outside takes priority (the dropdown and the triggers are ignored).

Numbers out of range wrap by modulo with Loop ON, and are clamped with it OFF (unlike the array nodes, with Loop OFF they stop at the ends). Changed fires only at the moment the selection actually changes. See Enum for the details.

  • Color has moved to the Color category, and BPM (Global Tempo) to the Tempo category
  • Nodes that process values are in Math, and testing and branching in Operation

Pages linking here

Also referenced from