smooth_audio
One-shot polish pass over the ACTIVE timeline's audio: every touching audio cut gets a short centered audio crossfade (builtin:tr-audio-cross-fade, default 4 frames = 2 each side), and every exposed clip edge (gap, timeline start/end, or a silent neighbor) gets a short fade-in/fade-out (default 4 frames). Applies to audio items and video items with audible audio, per track. Use when the user asks to smooth audio, remove pops/clicks at cuts, or "add small crossfades everywhere".
Idempotent and non-destructive — safe to run repeatedly:
Seams that already have an audio transition, and edges that already have a fade, are left untouched.
Locked, muted, and hidden tracks, muted clips, and video clips whose asset has no audio track are skipped and reported.
Seams without enough source handle material for a real crossfade fall back to a fade-out/fade-in pair.
Fades are clamped so fade-in + fade-out never exceed a clip's length.
Everything commits as ONE atomic batch; a failure rolls back the whole sweep. Returns counts (crossfades, fadeIns, fadeOuts, fallbackSeams) plus per-reason skip lists with item id prefixes. validateOnly:true returns the plan without committing.
Not for stylistic transitions: for an audible, deliberate crossfade on one specific cut use edit_item with an explicit duration instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "smooth_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trackIds | No | Restrict the sweep to these track ids (full ids). Omit to sweep every track on the active timeline. | |
| projectId | No | Project for this call (full ID or unambiguous prefix). Explicit-timeline calls never change the target of later calls; legacy project selection applies otherwise. | |
| timelineId | No | ||
| validateOnly | No | Plan and report without committing any change. | |
| fadeDurationInFrames | No | Fade-in/out length in frames at exposed clip edges (default 4). Stored as seconds using the timeline fps. | |
| crossfadeDurationInFrames | No | Crossfade length in frames at touching cuts, centered on the cut (default 4 = 2 frames each side). Clamped per seam by available source handles. |