Audio Duck(AudioDuckStage)
The Audio Duck node performs sidechain ducking on a COMFYTV audio stream.
Audio Duck Stage
Description
The Audio Duck node performs sidechain ducking on a COMFYTV audio stream. It watches a second audio signal, the sidechain, and automatically reduces the level of the main audio while the sidechain is active. This is the classic broadcast and podcast technique for keeping background music, ambience, or room tone out of the way whenever narration, dialogue, or another priority signal is present, then letting the background return to its normal level once the priority signal stops.
The node exposes no threshold, ratio, attack, or release controls, so the ducking behavior is applied with the node's built-in settings. Use it as a self-contained stage: feed the program audio into audio, feed the trigger signal into sidechain, and connect the single audio output to whatever comes next in the graph.
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mix_back | BOOLEAN | Yes | true | Controls whether the sidechain signal is mixed back into the output. When true, the output contains the ducked main audio plus the audible sidechain, which is the usual case when the sidechain is narration or dialogue that must be heard in the final mix. Set it to false to use the sidechain purely as an inaudible control signal, producing an output that contains only the ducked main audio. |
audio | COMFYTV_AUDIO | No | - | The main program audio to be ducked. This is the signal whose level is reduced while the sidechain is active (music beds, ambience, room tone). |
sidechain | COMFYTV_AUDIO | No | - | The trigger audio. When this signal is present and active, the main audio input is ducked. Also the signal that is mixed into the output when mix_back is enabled. |
video | COMFYTV_VIDEO | No | - | An optional video source carried alongside the main audio. Use it when the program audio and picture travel together in the same pipeline rather than as a separate audio stream. |
sidechain_video | COMFYTV_VIDEO | No | - | An optional video source carrying the sidechain. Use it when the trigger signal comes from a video stream, for example a clip containing speech that should duck the music. |
All four media inputs are optional, so the node can be queued even when some of them are unconnected. In normal use you will connect audio plus at least one of the sidechain sources so there is something to trigger the ducking.
Outputs
| Output | Type | Description |
|---|---|---|
| AUDIO | COMFYTV_AUDIO | The processed audio: the main input ducked by the sidechain, with the sidechain mixed back in when mix_back is true. |
Usage Notes
- Typical music-and-voice setup: connect the music or ambience to
audio, connect the dialogue or narration tosidechain, and leavemix_backattrue. The result is a single finished mix in which the music automatically steps back under the voice. - Control-only setup: connect the music to
audioand the trigger tosidechainwithmix_backset tofalse. The trigger is heard nowhere, but the output music is still ducked whenever the trigger is active. This is useful when the trigger is already present elsewhere in the final mix and mixing it in again would double it. - The node outputs audio only. If you also need the picture downstream, keep a separate video path in the graph rather than expecting the video inputs to be passed through.
- Because ducking is relative, keep the main
audiolevel sane before this stage. Heavily clipping the music input leaves the ducked sections loud and the contrast between ducked and un-ducked passages hard to hear. - This node sits in the ComfyTV/AudioFX category, so it can be chained freely with the other audio effects in that category, for example a music bed that is filtered or equalized first and ducked last, just before final encoding.
Comments
Sign in with GitHub to join the discussion.