Any numeric parameter in Hydra can be replaced with a function, enabling audio or MIDI to modulate visual parameters
Hydra’s API is uniformly numeric: wherever a number appears (frequency, rotate amount, modulate strength), a function can be substituted instead. This means audio FFT values, MIDI controller readings, or any computed value can drive any visual parameter without special routing. The audio input object provides frequency-band values (via FFT) that can be directly passed as parameters, and MIDI controllers map similarly. This design makes audio-reactivity a natural extension of the same patching idiom used for static values.
Examples
osc(10, 0.1, () => a.fft[0]).out(o0) — the oscillator’s color offset tracks the bass FFT bin in real time. Or: use a MIDI knob to control .rotate() amount.
Assessment
Demonstrate two ways to make a Hydra visual react to audio: one using FFT and one using MIDI. Explain why Hydra’s numeric-as-function design makes this straightforward.