load_loops
Batch import audio loops into REAPER with automatic track creation. Specify loops via JSON, set project BPM for grid alignment, and receive a summary of results including errors for recovery.
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 |