home/ atoms/ p5live-audio-reactivity-sources

P5LIVE has three distinct audio reactivity sources and no automatic 4-bin a.fft rig bridge

P5LIVE is not wired as a rig engine in this repo, so there is no automatic Strudel→4-bin a.fft shim. Three distinct audio reactivity routes exist, each requiring its own setup: (1) p5.sound — call setupAudio(true) in setup and updateAudio() at the top of draw, then read fft/amp/waveform; (2) HY5/Hydra bridge — exposes a.fft up to 8 bins, requires Hydra running with detectAudio:true; (3) Strudel — add .p5live(()=>{…}) to the Strudel pattern. Mixing routes or expecting the rig shim silently yields zero values and frozen reactivity.

Examples

Using a.fft[0] in P5LIVE without an active Hydra session returns undefined/0. Fix: setupAudio(true) in setup, updateAudio() at top of draw, then read fft[0].

Assessment

Name the three audio reactivity sources available in P5LIVE. For each, state the required setup call and explain why using the wrong source produces silent frozen visuals.

“Pick ONE source: p5.sound → `setupAudio(true)` in setup, `updateAudio()` at top of draw, read `fft`/”
context/ · L5-debug/p5live.md · chunk 1