Skip to content
中文

Edit a beat-synced promo

A beat-synced promo runs on the music: shots change on the beat, scenes change on the downbeat, and one line of text closes it. Viewers want a satisfying rhythm, good-looking shots and a message they read at a glance. This recipe delivers a 15–30 second vertical promo.

This is a scene recipe: it says how this kind of video is cut well; parameters for every call are in the Cut script reference.

When to use this recipe

Use it when the request says “cut to the beat”, “sync to the music”, “make it punchy”, or gives only music and pictures with no narration. With a narration, use the narrated montage.

What a good result looks like

AspectStandard
RhythmEvery shot changes on a beat; a fast edit cuts on every beat, a calm one on every bar (the downbeat, label "1"); the pace may build from bar to beat within one song
PicturesEach shot keeps only its best moment; shots moving the same way sit next to each other; no shot is used twice
OpeningThe best shot lands on the first downbeat; the first frame is not black
TextFew words, large, on screen long enough (at least 1.5 s); text appears on a beat too; one closing line (place, slogan or call to action)
SoundThe music is the lead, about -14 LUFS overall (the export normalises); the footage’s sound muted; the music fades out or ends at the end of a phrase

Steps

Run the code below in codemode. Editing scripts go through praxis.cut.projects.execute({ body: { script } }); times inside scripts are seconds.

1. Read the beats

Once the music is chosen, read its beats:

const beats = GetAnalysis({ libraryId, assetId: musicId }, "beats");
Print(beats.length, beats.slice(0, 8));

When it is empty, request a measurement with praxis.cut.projects.analysis.create({ body: { kinds: ["beats"], … } }) and read again after retry_after_sec; no_music means the asset has no beat to cut to, so pick another track. Each beat is one segment; label is its place in the bar, and "1" is the downbeat.

2. Pick the shots

Find shots with praxis.media.libraries.search.semantic.create for the pictures you want (“sea of clouds”, “a boat in a canyon”, “city lights at night”); each hit carries its best segment. You need as many shots as cut points; pick them all in one pass.

3. Lay the shots on the beats

const music = AddTrack("audio", { name: "Music", role: "music" });
const song = Insert(music, { type: "audio", media: { libraryId, assetId: musicId }, start: 0, sourceIn: 0, length: 20 });
const shots = AddTrack("video", { name: "Shots" });
UpdateTrack(shots, { muted: true });
// A beat's place on the timeline = music clip start + beat source time - the music's sourceIn
const cuts = beats.filter(b => b.label === "1").map(b => b.from / 1e6).filter(t => t < 20);

Put one shot between each pair of neighbouring cut points (start at the earlier cut, length up to the next), with the hit’s segment start as sourceIn. Keep transitions short (0.2–0.4 s), on downbeats, and not on every cut.

4. Text and ending

Put one line of text at the start and one at the end, each starting on a beat and staying at least 1.5 s, in a large text style (ListTextStyles lists them). Fade the music out over the last 1–2 seconds (the audio clip’s fadeOut).

5. Look, export

Look at the opening, around two cuts and the ending with praxis.cut.projects.frames.list; export with praxis.cut.projects.exports.create, then read the checks.

Tiers

TierIncludesDone when
DraftMusic and shots cut on barsThe draft plays end to end
Standard (recommended)Draft plus opening and closing text, a few beat transitions, one look at framesThe export’s checks are clear and every cut lands on a beat
FineStandard plus a building pace (bars to beats), text animation, shot-by-shot tuningThe user approves each passage

Common mistakes

  • Guessing the beat: use the beat grid from GetAnalysis(…, "beats"), never fixed intervals.
  • Beat positions off: beats are in the music’s source time; add the music clip’s start and subtract its sourceIn to place them on the timeline.
  • A transition on every cut: the punch comes from hard cuts; keep transitions for a few downbeats.
  • Text that flashes by: at least 1.5 s, or nobody can read it.

Next steps

  • Cut a narrated montage: when there is narration and the shots must match the words, use this one.
  • Motion: keyframes, text entrances, clip transitions and playback speed.
  • Exports: set the output, track the job and locate failures.