# Ducker · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/Ducker/

Sidechain ducker. Inserts on the *target* bus (e.g. music) and listens to
the level of a source bus (e.g. voice). When the source is loud, the
target's gain drops; when quiet, it returns.

Implementation: an envelope follower running on the source bus's RMS,
driving an additional gain node spliced into the target's FX chain.

The envelope follower runs on the main thread at ~60 Hz — fine for a
speech ducker, not for sample-accurate audio-rate sidechaining. For that,
use a custom AudioWorklet (planned).

[← API](/api/)

Class

# Ducker

Sidechain ducker. Inserts on the \*target\* bus (e.g. music) and listens to the level of a source bus (e.g. voice). When the source is loud, the target's gain drops; when quiet, it returns. Implementation: an envelope follower running on the source bus's RMS, driving an additional gain node spliced into the target's FX chain. The envelope follower runs on the main thread at ~60 Hz — fine for a speech ducker, not for sample-accurate audio-rate sidechaining. For that, use a custom AudioWorklet (planned).

## Members

-   constructor
-   input
-   output
-   bypassed
-   dispose
-   setAmount
-   setThreshold
