home/ atoms/ hydra-panic-solid-with-safe-reactive

The Hydra panic default is a bounded, reactive osc sketch with non-zero base terms and clamped FFT reads

When a Hydra edit throws or the canvas goes black/blown-out, the recovery procedure is to reset to a minimal, always-valid sketch that satisfies all four safety constraints: a single source with a guaranteed .out(), all reactive values in () => thunks, only FFT bands 0..3 used with clamping, and non-zero base terms so the frame looks intentional when a.fft = 0. The absolute minimum fallback is solid(0.05, 0.05, 0.08).out(), which never errors and never blows out.

Examples

osc(12, 0.08, () => 0.7 + Math.min(1, a.fft[0]) * 1.2)
  .rotate(() => 0.05 + a.fft[2] * 0.3)
  .color(0.55, 0.35, 0.85)
  .out()

Assessment

Write a Hydra panic patch that has a guaranteed .out(), thunked reactive values, clamped 0..3 FFT reads, and non-zero base terms, then state the simplest single-line fallback.

“single source, guaranteed `.out()` (H2); reactive values are thunks (H3); only bands `0..3` used, bass clamped so it can't NaN or blow out (H4/H6); non-zero `base` terms keep a coherent frame when silent (H5)”
context/ · L5-debug/hydra.md · chunk 1