Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-PainterNodes > Painter Audio Cut

ComfyUI Node: Painter Audio Cut

Class Name

PainterAudioCut

Category
audio/processing
Author
princepainter (Account age: 1255days)
Extension
ComfyUI-PainterNodes
Latest Updated
2026-07-14
Github Stars
0.14K

How to Install ComfyUI-PainterNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-PainterNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-PainterNodes 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

Painter Audio Cut Description

Facilitates precise audio trimming with frame-based start and end cuts, head and tail silence frames, and 4N+1 frame count alignment for compatibility.

Painter Audio Cut:

The PainterAudioCut node is designed to facilitate precise audio trimming within the ComfyUI framework. Its primary function is to cut audio segments by specifying start and end frames based on a given frame rate. This node is particularly beneficial for users who need to manage audio clips with precision, as it allows for the addition of silence frames at both the beginning and end of the audio segment, known as head and tail silence frames, respectively. One of the standout features of this node is its ability to automatically align the output frame count to a 4N+1 format, ensuring consistency and compatibility with various audio processing requirements. This alignment is crucial for maintaining the integrity of audio data when integrating with other systems or processes. By using this node, you can efficiently manage audio segments, ensuring they meet specific timing and formatting needs without requiring extensive manual adjustments.

Painter Audio Cut Input Parameters:

audio

This parameter represents the audio data to be processed. It is expected to be a dictionary containing the waveform and sample rate. The waveform is the actual audio signal, while the sample rate indicates how many samples per second are in the audio. This parameter is crucial as it forms the basis of the trimming operation.

frame_rate

The frame rate parameter specifies the number of frames per second for the audio trimming process. It is essential for determining how the audio is divided into frames. The frame rate must be greater than 0, as it directly influences the calculation of samples per frame and the overall trimming precision.

head_silence_frames

This parameter defines the number of silence frames to be added at the beginning of the trimmed audio. It allows you to introduce a pause or silence before the actual audio content starts, which can be useful for synchronization purposes or to meet specific audio formatting requirements.

start_frame

The start frame parameter indicates the frame at which the audio trimming should begin. It is crucial for defining the starting point of the audio segment you wish to retain. The start frame must be less than the end frame to ensure a valid trimming operation.

end_frame

This parameter specifies the frame at which the audio trimming should end. It marks the endpoint of the audio segment to be retained. The end frame must be greater than the start frame to ensure a valid trimming operation.

tail_silence_frames

The tail silence frames parameter determines the number of silence frames to be added at the end of the trimmed audio. This feature is useful for adding a pause or silence after the audio content, which can be beneficial for synchronization or formatting purposes.

Painter Audio Cut Output Parameters:

waveform

The waveform output is the final trimmed audio signal, including any added head or tail silence frames. It represents the processed audio data that can be used for further processing or playback. The waveform is aligned to a 4N+1 frame format, ensuring consistency and compatibility with other audio processing tasks.

sample_rate

This output parameter indicates the sample rate of the processed audio. It remains unchanged from the input audio, ensuring that the audio quality and timing are preserved throughout the trimming process.

aligned_frames

The aligned frames output provides the total number of frames in the processed audio, adjusted to the 4N+1 format. This information is useful for understanding the structure of the trimmed audio and ensuring it meets specific formatting requirements.

Painter Audio Cut Usage Tips:

  • Ensure that the frame rate is set correctly to match the intended playback or processing speed of the audio. This will help maintain synchronization with other media elements.
  • Use head and tail silence frames to create smooth transitions between audio segments or to align audio with visual elements in multimedia projects.
  • Verify that the start and end frames are set appropriately to capture the desired audio segment without cutting off important content.

Painter Audio Cut Common Errors and Solutions:

"Frame rate must be greater than 0"

  • Explanation: This error occurs when the frame rate parameter is set to 0 or a negative value, which is invalid for audio processing.
  • Solution: Ensure that the frame rate is set to a positive value that reflects the desired frames per second for the audio trimming operation.

"Start frame must be less than end frame"

  • Explanation: This error arises when the start frame is set to a value greater than or equal to the end frame, resulting in an invalid trimming range.
  • Solution: Adjust the start and end frame parameters to ensure that the start frame is less than the end frame, defining a valid range for audio trimming.

Painter Audio Cut Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-PainterNodes
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.

Painter Audio Cut