load_loops
Batch-load audio loops into REAPER by auto-creating named tracks and placing files at specified positions, with optional BPM alignment.
Instructions
Batch-load audio loops into REAPER, auto-creating tracks by name.
For each entry in the JSON array, find the named track (or create it if missing) and insert the audio file at the given position. Optionally sets the project BPM first so the loops align with the grid.
Args: loops: JSON array of entries. Each entry is an object with: - track_name (required): name of the destination track. Case-sensitive match against existing tracks; if no match, a new track is created with this name. - file_path (required): absolute path to the audio file. - position_sec (optional, default 0.0): start position in seconds within the project. project_bpm: If > 0, call transport_set_bpm before inserting media so the project's tempo grid is correct.
Returns a summary with tracks created vs reused, loops loaded, and per-entry errors (missing files, invalid entries) so the AI can recover without blowing up the whole batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loops | Yes | ||
| project_bpm | No |