Skip to main content

VAR_NAMES

Constant VAR_NAMES 

Source
pub const VAR_NAMES: [&str; 27];
Expand description

The analysis variables an expression may reference, in slot order.

The first nine are the analysis frame’s headline values, bass through novelty. The four *_raw names after them are the absolute magnitudes the first four carried before ADR-0049 normalized them — reachable for looks that genuinely want absolute level rather than “loud for this track”. Then beat_index and time_since_beat, ADR-0050’s unconditional Layer 1 musical clock, and beat_in_bar/bar_index/bar_phase, its Layer 2 bar position — gated on a confidence the grammar deliberately cannot see, so these three are always something sensible and never wrong about the music. Then x/y/rad/ang, the vertex’s own position during a per-vertex evaluation (Plan 0100 Phase 1) — the same kind of thing as index one axis up, and 0 anywhere else. Then the reserved [latch] block (ADR-0137), LATCH_CAP slots an author never writes by these names: a preset’s own latch names resolve onto them at load, and the placeholders are held out of the identifier lookup so _latch0 is not a variable anybody can bind. index stays last and is different in kind: it is not audio but the element’s own position during a per-element evaluation (Plan 0034 Phase 4), and it reads 0 anywhere else.