add_background_music
Add background music to a scene from an audio or MIDI file. Supports looping, volume control, and automatic ducking during narration.
Instructions
Add background music to the scene.
The music plays from the beginning of the rendered video. Accepts audio files (.mp3, .wav, .ogg) or MIDI files (.mid, .midi). MIDI files are rendered to audio using FluidSynth and a system SoundFont.
When narration tracks are also present, the music volume auto-ducks during narration via sidechain compression in post-processing.
IMPORTANT: Always use MCP tools for scene operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Loop the music to fill the video duration if shorter (default: False). | |
| volume | No | Playback volume 0.0-1.0 (default: 0.3). | |
| file_path | Yes | Path to an audio file or MIDI file. | |
| duck_ratio | No | Compression ratio for ducking (default: 4.0). | |
| duck_attack | No | Duck attack time in seconds (default: 0.1). | |
| duck_release | No | Duck release time in seconds (default: 0.5). | |
| duck_threshold | No | Sidechain compression threshold for ducking (default: "-24dB"). | -24dB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||