line generates a ring that linearly interpolates from start to finish across N steps
line(from, to, steps: n) returns a ring of n evenly spaced values from from to to. Combined with tick, this enables smooth parameter automation within a live_loop (for instance, a cutoff sweep from 70 to 130 over 32 steps). Because it returns a ring it wraps, so after the last value it returns to the first. Appending .mirror creates a triangle (up-then-down) LFO-like movement.
Examples
live_loop :sweep do co = (line 70, 130, steps: 32).tick synth :prophet, note: :e1, release: 0.5, cutoff: co sleep 0.25 end
Assessment
Use line to automate reverb mix from 0 to 1 over 8 bars in a live_loop. Describe what .mirror appended to line does to the automation shape.