Music beats → markers
ae_beatsMeasure beats and downbeats locally and write BAR/beat markers into an After Effects comp at the music layer's start offset, so you can cut or time hits accurately even when catalog BPMs are wrong.
Instructions
Measure beats and downbeats of a music file with beat_this (runs locally) and optionally write them as comp markers ('BAR n' on downbeats, 'beat' on the rest), offset by where the music layer starts. Use before cutting or timing hits on the beat — catalog BPMs can be wrong.
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": {
"file": "<file>"
},
"name": "ae_beats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | If given, write markers into this comp. | |
| file | Yes | Audio file (wav/mp3/m4a). | |
| clear | No | Remove earlier beat/BAR markers first (default true). | |
| offset | No | Comp time where the audio file's 0 s sits (default 0). | |
| instance | No | After Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live. | |
| onlyDownbeats | No | Markers only on downbeats (default false). |