Audio Crossfade(AudioCrossfadeStage)
The node accepts audio directly through the audio_a and audio_b inputs, and can also take audio carried by the video_a and video_b video inputs.
Audio Crossfade Stage
Description
Audio Crossfade combines two audio sources into a single continuous audio stream, blending the end of the first clip into the beginning of the second so that the transition does not click or cut abruptly. It sits in the ComfyTV/AudioFX category and is useful for stitching together generated audio segments, joining musical sections, or smoothing the audio seam between two video clips.
The node accepts audio directly through the audio_a and audio_b inputs, and can also take audio carried by the video_a and video_b video inputs. It produces one COMFYTV_AUDIO output that can be routed to a video combine node, an audio save node, or any other downstream audio consumer.
Inputs
Required
| Input | Type | Default | Description |
|---|---|---|---|
overlap | BOOLEAN | true | Controls whether the two segments overlap during the transition. When enabled, the tail of the first segment and the head of the second are mixed together over their shared region to produce a smooth crossfade. When disabled, the segments are joined without blending. |
Optional
| Input | Type | Description |
|---|---|---|
audio_a | COMFYTV_AUDIO | The first audio source. This is the "outgoing" clip whose ending is blended into the second source. |
audio_b | COMFYTV_AUDIO | The second audio source. This is the "incoming" clip whose beginning is blended with the end of the first source. |
video_a | COMFYTV_VIDEO | The first video source. Use this when the audio to crossfade is carried by a video clip rather than by a standalone audio input. |
video_b | COMFYTV_VIDEO | The second video source. Use this when the second audio to crossfade is carried by a video clip rather than by a standalone audio input. |
All four source inputs are optional, so the node can be fed by audio alone, by video alone, or by a mix of the two. Connect the A side pair (audio_a / video_a) and the B side pair (audio_b / video_b) according to where your media comes from.
Outputs
| Output | Type | Description |
|---|---|---|
| audio | COMFYTV_AUDIO | The resulting audio stream: the two sources joined with a crossfade between them, ready for downstream nodes. |
Usage Notes
- Supply both an A side and a B side for a true crossfade. If only one source is connected, there is nothing to blend, so the node is typically used as a pass-through for that single source.
- Keep
overlapenabled for the normal crossfade behavior. Turning it off is useful when you want the two segments butted together end to end, with the node acting as a simple concatenation step. - Use the video inputs when your audio is embedded in video clips; this avoids having to split the audio out with a separate node first.
- Because the transition is produced by blending the two sources, the result is shorter than the sum of both clip lengths when
overlapis enabled. Account for this when timing the audio against a video edit.
Comments
Sign in with GitHub to join the discussion.