ComfyUI > Nodes > CRT-Nodes > Audio Frame Adjuster (CRT)

ComfyUI Node: Audio Frame Adjuster (CRT)

Class Name

AudioFrameAdjuster

Category
CRT/Audio
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

Install this extension via the ComfyUI Manager by searching for CRT-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter CRT-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Audio Frame Adjuster (CRT) Description

Adjusts audio duration to match specified frame count and FPS, with trim, extend, and fade options.

Audio Frame Adjuster (CRT):

The AudioFrameAdjuster node is designed to modify the duration of audio clips to align with a specified frame count and frames per second (FPS) rate. This node is particularly useful for synchronizing audio with video or animation sequences, ensuring that the audio duration matches the visual content's timing. It offers the capability to either trim or extend audio clips, depending on whether the current audio duration is longer or shorter than the target duration. The node supports various extension modes, including looping and adding silence, and can apply fade effects to create smooth transitions between audio segments. By providing precise control over audio duration, the AudioFrameAdjuster enhances the coherence and quality of multimedia projects.

Audio Frame Adjuster (CRT) Input Parameters:

audio

The audio parameter is the input audio data that you want to adjust. It consists of a waveform and a sample rate, where the waveform is a tensor representing the audio signal, and the sample rate is the number of samples per second. This parameter is crucial as it forms the basis of the adjustment process, and the node will modify this audio to match the specified frame count and FPS.

frame_count

The frame_count parameter specifies the total number of frames that the audio should match. It is an integer value with a default of 120, a minimum of 1, and a maximum of 999,999. This parameter determines the target duration of the audio in conjunction with the FPS, ensuring that the audio aligns perfectly with the visual content.

fps

The fps parameter stands for frames per second and indicates the frame rate of the visual content. It is a floating-point value with a default of 30.0, a minimum of 1.0, and a maximum of 120.0. This parameter, combined with the frame count, defines the target duration for the audio, allowing for precise synchronization with the video or animation.

extension_mode

The extension_mode parameter determines how the audio should be extended if it is shorter than the target duration. It offers three options: loop, silence, and fade_loop. The loop mode repeats the audio, silence adds silence to the end, and fade_loop applies a fade effect when looping. This parameter is essential for maintaining audio quality and ensuring smooth transitions when extending audio.

fade_duration

The fade_duration parameter is used in the fade_loop extension mode to specify the duration of the fade effect in seconds. It is a floating-point value with a default of 0.5, a minimum of 0.0, and a maximum of 5.0. This parameter helps create seamless audio loops by gradually blending the end and start of the audio segments, enhancing the listening experience.

Audio Frame Adjuster (CRT) Output Parameters:

audio

The audio output parameter is the adjusted audio data, which includes the modified waveform and the original sample rate. This output reflects the changes made to match the specified frame count and FPS, ensuring that the audio duration aligns with the visual content. The adjusted audio is ready for integration into multimedia projects, providing a synchronized audio-visual experience.

duration_seconds

The duration_seconds output parameter represents the final duration of the adjusted audio in seconds. This value is crucial for verifying that the audio has been correctly adjusted to match the target duration, providing a clear indication of the synchronization between the audio and visual elements.

Audio Frame Adjuster (CRT) Usage Tips:

  • To achieve seamless audio loops, use the fade_loop extension mode with an appropriate fade_duration to blend audio segments smoothly.
  • When synchronizing audio with high-frame-rate content, ensure that the fps parameter accurately reflects the visual content's frame rate for precise alignment.

Audio Frame Adjuster (CRT) Common Errors and Solutions:

Audio duration matches target, no adjustment needed

  • Explanation: This message indicates that the current audio duration already matches the target duration, so no adjustment is necessary.
  • Solution: No action is required as the audio is already synchronized with the specified frame count and FPS.

Trimming audio from X to Y samples

  • Explanation: This message occurs when the audio is longer than the target duration, and the node is trimming it to fit.
  • Solution: Ensure that the trimmed audio still meets your project's requirements, or adjust the frame_count and fps if a longer duration is needed.

Extending audio by X samples using 'extension_mode' mode

  • Explanation: This message appears when the audio is shorter than the target duration, and the node is extending it using the specified extension_mode.
  • Solution: Verify that the chosen extension mode (loop, silence, or fade_loop) is appropriate for your project, and adjust the fade_duration if using fade_loop for smoother transitions.

Audio Frame Adjuster (CRT) Related Nodes

Go back to the extension to check out more related nodes.
CRT-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Audio Frame Adjuster (CRT)