hydra_audio
Tune audio reactivity for Hydra: enable the microphone, adjust FFT bins, smoothing, cutoff, and scale, or display band meters.
Instructions
Check and tune audio reactivity (Hydra's a object), or switch it on.
With no arguments: the current a.fft band values, volume and microphone permission — a quick way to see whether sound is getting in at all.
enable=true Hydra only listens if it was started with the microphone, so this reloads the deck page with ?audio=1. The piece is replayed afterwards; the browser asks for the mic, and a.fft reads zeros until someone clicks Allow. Video out has to be started again after the reload. bins number of frequency bands in a.fft (1–64; default 4). smooth 0–1: how slowly band values fall (higher = smoother). cutoff noise floor subtracted before scaling. scale how much raw loudness it takes to reach 1. show true draws the band meters on the canvas while you tune; false hides them.
Use it in code inside a function, or it is read once and frozen: shape(4, () => 0.2 + a.fft[0] * 0.5).out(o2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | ||
| show | No | ||
| scale | No | ||
| cutoff | No | ||
| enable | No | ||
| smooth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |