import_audio_file
Loads an audio file from a browser-reachable location into a Session clip slot on an audio track. Returns a clear error if the file cannot be reached via Live's browser.
Instructions
Load an audio file from disk into a Session-view clip slot on an audio track.
LIMITATION: Live's Python API cannot load arbitrary file paths directly. The file must be reachable through Live's browser — i.e., either under ~/Music/Ableton/User Library/ (always reachable) or inside a folder that's been added as a Place in Live's browser sidebar (the '+ Add Folder' button).
If the file isn't in a browser-reachable location, this returns a clear error explaining what to do. The fallback is always to drag the file into the slot manually from Finder.
Parameters:
track_index: Audio track to load into (must be an audio track)
clip_index: Empty Session-view clip slot index
file_path: Absolute path to the audio file (.wav, .aif, .mp3, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |