home/ atoms/ glicol-one-chain-per-line

Glicol requires exactly one named chain per line; multiple chains on one line cause a parse error

Glicol’s syntax is one named chain per line: name: node >> node. Putting two chains on the same line, or starting a chain without a name prefix, is a parse error. Every chain must have a name — either out: (audio output) or ~busname: (internal bus). This rule also means that a line cannot continue a chain from the previous line; the entire chain must be on one line.

Examples

out: sin 110 (ok); out: sin 110 ~lfo: sin 2 (parse error — two chains, one line).

Assessment

Write the correct Glicol syntax to define a modulator bus and a main output chain, and explain what happens if they are placed on the same line.

“one named chain per line**: `name: node >> node`. Split multi-chain lines; give every chain a name (`out:` or `~bus:`).”
context/ · L5-debug/glicol.md · chunk 1