Cut pictures to the beat of music
cut_to_beatsCreates a Premiere Pro sequence cut to music by detecting beats and placing picture clips on V1 so each cut lands on a beat; returns the sequence, cut times, and clips, with a dry-run planning option.
Instructions
Build a new sequence cut to music: detects the beats of a music item's media with ffmpeg, then places the pictures (item_ids or a bin; videos and stills, picture only) on V1 so that every cut lands on a beat (one cut every every_n_beats beats), with the music on A1 from its in point. Items are used in order and repeated when there are more segments than items; a video shorter than its segment is skipped for that segment. The cut ends with the music (or at max_seconds). Returns the new sequence, the cut times and the V1 clips. dry_run returns the beat and cut plan only. Needs ffmpeg.
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": {
"music_item_id": "<music_item_id>"
},
"name": "cut_to_beats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the new sequence. Default "Beat Cut". | |
| order | No | Clip order: "given" (item_ids order), "name" (natural name order), "date" (media file modification time, oldest first) or "project" (Project-panel order). Default "given" with item_ids, else "project". | |
| bin_id | No | Take the items of this bin (id). Omit bin_* and item_ids to use the project root. | |
| dry_run | No | true: return the plan without changing anything. Default false. | |
| bin_name | No | Take the items of this bin (name; first match). | |
| bin_path | No | Take the items of this bin (path, e.g. "Footage/Day 1"). | |
| item_ids | No | Project item ids to use, in this order. Alternative to a bin. | |
| recursive | No | With a bin: include the items of its sub-bins too. Default false. | |
| max_seconds | No | Stop the cut after this many seconds. Default: the music length. | |
| sensitivity | No | Beat detection sensitivity 0-1; higher finds weaker beats. Default 0.5. | |
| every_n_beats | No | Cut every N detected beats. Default 2. | |
| music_item_id | Yes | Project item id of the music (an audio or video file with sound). | |
| name_contains | No | With a bin: keep only items whose name contains this text (case-insensitive). | |
| min_beat_spacing | No | Smallest time between two beats, in seconds. Default 0.25. |