ComfyUI Node
CB Roll and Trim Audio Samples ⚡️
Rolls audio by a time offset first, then trims from start/end. No resampling is performed; this is a cyclic sample shift and sample-accurate trim.
CB Roll and Trim Audio Samples ⚡️
- audio
- trimmed_audio
- start_audio
- end_audio
◄offset0.000►
◄trim_start0.000►
◄trim_end0.000►
CategoryCoolB Nodes ⚡️
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | AUDIO | Audio input. Expects an AUDIO dict with 'waveform' and 'sample_rate'. | |
| offset | FLOAT | 0.000-3600–3600 | Roll amount in seconds. Positive = wave samples shift forward with modulo wrapping; negative = backward. |
| trim_start | FLOAT | 0.0000–3600 | Seconds to remove from the start (after rolling). |
| trim_end | FLOAT | 0.0000–3600 | Seconds to remove from the end (after rolling). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| trimmed_audio | AUDIO | — |
| start_audio | AUDIO | — |
| end_audio | AUDIO | — |