home/ atoms/ punctual-arrow-operators

Punctual's three arrow operators have distinct roles: >> routes to output, <> sets crossfade duration, and << is assignment (synonym for =)

Punctual uses three arrow-like operators that are easy to confuse. >> is the output routing operator: sig >> audio sends a signal to audio output. <> followed by a number sets the crossfade duration in seconds for changes to that statement: sig >> audio <> 2 crossfades new values over 2 seconds. << is assignment, synonymous with =: l << [1,2,3] assigns to variable l. The common mistake is treating << as output routing (it is not) or using <> where >> is needed.

Examples

lo >> rgb; — routes lo-band energy to rgb output. osc 220 >> audio <> 2; — 2-second crossfade on changes. myvar << osc 440; — assigns to myvar.

Assessment

Write one Punctual statement each for: (a) routing an oscillator to audio with a 4-second crossfade, (b) assigning an expression to variable v, (c) routing a circle to rgb.

“`>>` is output, `<>` is crossfade, `<<` is *definition*.”
context/ · L1-instruments/punctual/gotchas.md · chunk 1