ComfyUI > Nodes > ComfyUI_MusicTools > Music - Audio Trimmer

ComfyUI Node: Music - Audio Trimmer

Class Name

Music_AudioTrimmer

Category
music
Author
jeankassio (Account age: 3193days)
Extension
ComfyUI_MusicTools
Latest Updated
2025-12-09
Github Stars
0.11K

How to Install ComfyUI_MusicTools

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

Music - Audio Trimmer Description

Extracts specific audio segments by trimming to defined start and end times for precise editing.

Music - Audio Trimmer:

The Music_AudioTrimmer node is designed to help you extract a specific portion of an audio file by trimming it to a defined time range. This node is particularly useful when you need to focus on a specific segment of an audio track, whether for editing, analysis, or creative purposes. By specifying the start and end times, you can isolate the desired section of the audio, making it easier to work with or manipulate. This functionality is essential for tasks such as creating loops, removing unwanted sections, or preparing audio samples for further processing. The node ensures that the trimming process is efficient and precise, providing you with a seamless way to manage audio content.

Music - Audio Trimmer Input Parameters:

audio

The audio parameter represents the audio data that you want to trim. It is expected to be in a format compatible with the ComfyUI audio dictionary, which typically includes waveform data and sample rate information. This parameter is crucial as it serves as the source material from which the specified segment will be extracted.

start_time

The start_time parameter defines the beginning of the audio segment you wish to extract, specified in seconds. It allows you to set the exact point in the audio track where the trimming should start. The minimum value is 0.0 seconds, the maximum is 3600.0 seconds, and the default is 0.0 seconds. Adjusting this parameter lets you control the starting point of the trimmed audio, ensuring you capture the precise section you need.

end_time

The end_time parameter specifies the endpoint of the audio segment to be extracted, also in seconds. It determines where the trimming should stop, allowing you to define the length of the audio segment. The minimum value is 0.0 seconds, the maximum is 3600.0 seconds, and the default is 10.0 seconds. By setting this parameter, you can ensure that the trimmed audio includes only the desired portion, avoiding unnecessary data.

Music - Audio Trimmer Output Parameters:

AUDIO

The AUDIO output parameter provides the trimmed audio segment as a result of the trimming process. This output is in the same format as the input audio, typically a dictionary containing waveform data and sample rate. The trimmed audio is a precise extraction based on the specified start and end times, allowing you to use it directly in your projects or for further processing.

Music - Audio Trimmer Usage Tips:

  • Ensure that the start_time is less than the end_time to avoid errors and to ensure a valid audio segment is extracted.
  • Use the start_time and end_time parameters to focus on specific parts of the audio that are most relevant to your project, such as a particular verse or chorus in a song.
  • If you are unsure of the exact times, experiment with different values to find the perfect segment for your needs.

Music - Audio Trimmer Common Errors and Solutions:

Error in Music - Audio Trimmer: Start time must be less than end time and be within the audio length.

  • Explanation: This error occurs when the start_time is greater than or equal to the end_time, or if the specified times are outside the bounds of the audio length.
  • Solution: Double-check the start_time and end_time values to ensure that start_time is less than end_time and both are within the duration of the audio file. Adjust the values accordingly to resolve the issue.

Music - Audio Trimmer Related Nodes

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