Create a project from audio and MIDI files
project_createCreates a .sonare.json single-song project workspace from audio or MIDI inputs, arranging overlay/sequence tracks and optionally analyzing tempo, meter, key, chords, or sections.
Instructions
Creates a project file (.sonare.json): the workspace that carries one song between tools. Each audio input becomes an audio track, each .mid input its tracks; 'overlay' starts all inputs together, 'sequence' plays them in turn with an optional crossfade. 'analyze' derives tempo, meter, key, chords and sections from an audio input into the project's tempo map and annotations, and the response lists the tempo candidates. Without 'analyze' the tempo map and meter come from the first .mid input; every .mid input adds its tracks under the project's maps. Use it as the first step of arranging, mixing or rendering a song. Do not use it to edit an existing project (project_edit). Example: {"inputs": [{"path": "song.wav"}], "analyze": ["tempo", "key", "chords"]}.
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": {
"inputs": "<inputs>"
},
"name": "project_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| inputs | Yes | 1-16 audio or .mid files. | |
| layout | No | 'overlay' starts every input at the project start; 'sequence' plays them one after another, each on its own track. | overlay |
| output | No | Project file to write, ending in .sonare.json. Default: '<first input stem>.project.sonare.json' in the output directory. | |
| analyze | No | What to derive from an audio input: tempo, meter, key, chords, sections. | |
| dry_run | No | Build the project and report; write nothing. | |
| overwrite | No | Replace an existing 'output' file. | |
| tempo_bpm | No | A constant tempo for the project; excludes 'tempo' in analyze. | |
| sample_rate | No | Project sample rate in Hz. Default: the first audio input's, else 48000. | |
| analyze_input | No | 0-based index of the audio input to analyze. Default: the first audio input. | |
| crossfade_sec | No | layout 'sequence' only: overlap of neighboring inputs in seconds, shorter than the shorter of the two. | |
| tempo_candidate | No | With 'tempo' in analyze: 0 primary, 1 half, 2 double tempo (default 0). |