Fade audio in
fade_in_audioFade an audio clip in by writing Volume > Level keyframes from a floor level at its first frame to a target level after a set duration, replacing only keyframes inside the fade.
Instructions
Fade an audio clip in by writing two Volume > Level keyframes: floor_db at the clip's first frame and level_db at clip start + duration. Existing volume keyframes inside the fade are replaced; others are kept. level_db defaults to the clip's current level at that point. For a crossfade between two clips use the transitions tools. Returns the keyframes now on the clip (sequence time, dB). The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"duration": "<duration>"
},
"name": "fade_in_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| duration | Yes | Fade length in seconds (capped at the clip length). | |
| floor_db | No | Level at the start of the fade, in dB. Default silence (-infinity); -100 or lower = silence. | |
| level_db | No | Level at the end of the fade, in dB. Default: the clip's current level there. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "audio" in this toolset; "video" is rejected. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |