Design one RBJ-cookbook biquad and report its numerical behaviour.
biquadDesignDesign one RBJ-cookbook biquad and report its numerical behaviour.
The identical function that renders /lab/biquad/{type}/{freq}. Returns coefficients at the requested sample rate, coefficients at every other rate whose Nyquist limit clears the corner, pole/zero geometry, the −3 dB points solved by bisection, a Q sweep, a gain sweep where the type uses gain, and the quantised forms. The 240-point response curve is omitted unless include=curve is passed. Non-finite values (a notch is −∞ at f0; a low-pass is −∞ at Nyquist) are encoded as the strings "Infinity", "-Infinity" and "NaN" — JSON has no other honest option, and null would be a different answer.
Every result carries provenance.canonicalUrl — the published page for these exact inputs, or the lane hub when they are off the published grid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Filter Q. Defaults to the type’s own default. Shelves ignore it (S is fixed at 1, matching Web Audio). | |
| fs | No | Sample rate in Hz. Defaults to 48000. | |
| freq | Yes | Corner (or centre) frequency f0 in Hz. Must be below Nyquist. | |
| gain | No | Peak/shelf gain in dB. Ignored by types that do not use gain. | |
| type | Yes | Filter type. | |
| include | No | Optional heavy block to include, omitted by default. "curve": The 240-point log-spaced magnitude response, and one per sweep row. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The parsed inputs, echoed back with defaults filled in. | |
| result | Yes | The solved analysis. Shape is per-tool. | |
| license | Yes | ||
| provenance | Yes |