home/ atoms/ orca-variable-operator

Orca variables store and retrieve single characters via V, enabling cross-grid wiring

The V operator (variable) both writes and reads single-character values by name. Writing: aV5 stores the value 5 in variable a. Reading: Va outputs the current value of variable a southward. A critical rule: the write must appear above the read on the grid — Orca evaluates top-to-bottom and left-to-right within a frame, so a value written below or to the right of its read location will lag by one frame. Variables allow routing a value from one part of a large grid to another without a physical cable of characters. The K (konkat) operator extends this to read multiple variables at once: 3Kion reads variables i, o, and n side-by-side.

Examples

aV5 → writes 5 to variable a Va → outputs 5 southward 3Kion → reads i, o, n and outputs three characters side-by-side

Assessment

A student writes Va on row 1 and aV5 on row 2. What value does Va output, and why? How would they fix it?

“Notice how variables always have to be written above where they are read.”
corpus · orca-100r-livecoding-sequencer-docs-and-practice · chunk 1