Nodes/ComfyUI-vlo/LTX Set Audio Latent Binary Masks
ComfyUI Node

LTX Set Audio Latent Binary Masks

Converts a binary mask image or mask video into an audio latent noise mask by reducing each frame to active/inactive, resizing only along time, and broadcasting that timeline across the audio latent.

By PxTicks·Created 3 months ago·Updated about a month ago· 0
LTX Set Audio Latent Binary Masks
  • audio_latent
  • masks
  • audio_latent
threshold0.50
resize_modenearest
existing_mask_modeoverwrite
Categorylatent/audio

Inputs (5)

NameTypeDefaultDescription
audio_latentLATENTAudio latent whose noise_mask will be set.
masksMASKBinary mask image or mask video. Only the temporal activity of each frame is used; spatial dimensions are ignored after thresholding.
thresholdFLOAT0.500–1Per-pixel threshold used when deciding whether a mask frame is active. If any pixel in a frame meets this threshold, that frame activates audio masking.
resize_modeCOMBOnearestHow to resize the derived binary timeline to the audio latent length. 'nearest' preserves hard ranges; 'linear' smooths transitions before the final binary threshold.
existing_mask_modeCOMBOoverwriteHow to combine with an existing audio noise mask. 'overwrite' replaces it, 'add' takes the max, and 'subtract' clears masked regions.

Outputs (1)

NameTypeDescription
audio_latentLATENT