Nodes/ComfyUI LC Audio_Video Nodes/LC Audio Crop ✂️
ComfyUI Node

LC Audio Crop ✂️

Cut a soundtrack to MM:SS without a video editor

By lonecatone23·Created 2 days ago·Updated 2 days ago· 1
LC Audio Crop ✂️
  • audio
  • audio
start_time0:00
end_time1:00

You generated a clip that's five seconds of visual and your soundtrack is a three-minute track. Either you export the whole song under a short clip - awful - or you trim the audio somewhere. LC Audio Crop is that somewhere, and it uses the format you already know from editing software: type a start and end as MM:SS and the middle survives. Defaults of 0:00 to 1:00 mean it grabs the first minute unless you tell it otherwise.

It's a deliberate clone of the familiar VRGDG_AudioCrop layout, so if you've used that (or another pack's crop with the same start/end-time strings) this is a like-for-like swap. It sits in the same family as LC Load Audio's start_time/end_time cutting - but where the loader trims on load in seconds, this one is the standalone node you drop into the middle of an audio chain to chop whatever you've already got, whether that came from a load, a stem separator, or a generated track.

How it works

The two text fields are parsed into seconds - MM:SS, the longer H:MM:SS, or even a bare number treated as seconds - and the waveform is sliced between them at the sample level. Sample-rate math keeps the boundaries exact. The details the tooltip gives away are the practical ones: an empty or unset end runs to the end of the file, and if you type the start after the end, the node swaps them rather than returning an empty crop. Since it operates on the AUDIO object in memory, cropping is non-destructive - nothing touches the source file, and you can crop different regions off the same track into different branches.

The inputs that matter

  • audio - the AUDIO to trim.
  • start_time - where the kept region begins, default 0:00. Format MM:SS or H:MM:SS.
  • end_time - where it ends, default 1:00. Leave it past the end of the file and you simply get everything from the start onward.

One output, audio, the trimmed cut - wire it straight into an LC Save Video's audio socket or another processing node.

How to install it

Part of the lonecatone23/ComfyUI_LC_AV_nodes pack (LC Audio_Video nodes by lonecatone23, MIT, the sibling of the image-side ComfyUI_LC123_nodes). Install once, use any of the 16 nodes:

  • ComfyUI Manager: search "LC Audio_Video" or ComfyUI_LC_AV_nodes.
  • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/lonecatone23/ComfyUI_LC_AV_nodes, then restart ComfyUI (console prints [LC AV] total 16 nodes).

No model files, no extra pip packages - this needs only the torch/numpy ComfyUI already has.

Where people stumble

The most common mistake is reading "1:00" as "one second" - it's one minute, which the MM:SS format makes easy to misread. If you want a one-second clip, type 0:01. And remember this trims in time only; it won't resample or change pitch, so if your audio is longer than your clip you'll also want the clip's playback or looping handled elsewhere. Trim first, then line up the result with your frame count via LC Audio Duration.

CategoryLC AV/audio

Inputs (3)

NameTypeDefaultDescription
audioAUDIO
start_timeSTRING0:00MM:SS (or H:MM:SS). Start of the kept region.
end_timeSTRING1:00MM:SS (or H:MM:SS). End of the kept region.

Outputs (1)

NameTypeDescription
audioAUDIO