Composition & scoring math

Time Signature and Bar Length Calculator for MIDI and Film

Compute exact cue durations, single-bar lengths, MIDI ticks at 96–960 PPQ, and 24/30/60 fps video frame counts for any meter from 1/4 to 16/16, then export a bar-marked MIDI template.

100% browser-local · zero upload · instant .mid export
Share this tool

100% browser-local WebAudio & SMF Type 1 export · zero upload · zero sign-up

Total Duration00:32.00 (32 s)
Single Bar Length2 s
Beat Duration500 ms
Ticks per Bar1,920 ticks
Total MIDI Ticks30,720 ticks
Video Frames24fps: 768 · 30fps: 960

Creator Cloud

Keep the versions and extend the phrase.

Creator Cloud adds cloud history and reviewed AI MIDI edits a month. The tool you are using stays free.

  • 60 reviewed AI MIDI edits each month
  • 50 cloud projects with 100 versions each
  • Cancel anytime; the free editor stays free
See Pro Producer · $49/yr

How to hit exact 15-second or 30-second commercial cue durations

Advertising briefs, game victory stingers, and YouTube intros demand strict wall-clock runtimes. Using this time signature and bar length calculator, you can adjust BPM, numerator, denominator, and bar count simultaneously until your musical phrase lands squarely on 15.00 or 30.00 seconds without cutting off a final cadence.

Understanding PPQ ticks across different MIDI sequencers

Standard MIDI Files measure note positions in Pulses Per Quarter note (PPQ). While classic hardware sequencers often ran at 96 PPQ, modern DAWs typically use 480 or 960 PPQ. Checking Ticks per Bar and Total MIDI Ticks before scripting or exporting prevents off-by-one loop seam glitches.

Export a ready-to-arrange bar-marker MIDI template

Download .mid writes your exact tempo, time signature meta event, and Bar 1 through Bar N marker events directly into a Type 1 MIDI file alongside a guide click track, ready for instant import into Logic Pro, Cubase, Reaper, or EditMIDI.

Time signature, PPQ tick, and frame-rate calculation specs

Reference relationships between meter, PPQ clock resolution, and picture-lock frame rates.

MetricFormulaWhere It Matters
Quarter notes per barNumerator × (4 / Denominator)Converts compound meters like 6/8 or 7/8 into DAW quarter beats
Ticks per barPPQ × Numerator × (4 / Denominator)Verifies exact MIDI loop length across 96, 240, 480, and 960 PPQ
Video framesTotal Seconds × FPS (24, 30, or 60)Spot-checks film cue hit points, ads, and game stingers

Frequently asked questions

How many seconds long is 16 bars at 120 BPM in 4/4 time?

At 120 BPM each quarter beat is 0.5 seconds, so one 4/4 bar lasts exactly 2.0 seconds and 16 bars last exactly 32.00 seconds.

How does 6/8 time calculate differently from 3/4 time in MIDI ticks?

Both 6/8 and 3/4 contain three quarter-note durations per bar (1,440 ticks at 480 PPQ), but 6/8 groups six eighth-note beats per measure with a TimeSignature denominator of 8.

Does the exported MIDI template include bar markers?

Yes. Every measure up to 32 bars includes a Standard MIDI Marker meta event (Bar 1, Bar 2, and so on) at the exact downbeat tick.

Can I measure the duration of an existing .mid file with tempo changes?

Yes. Use the dedicated EditMIDI Duration Calculator to inspect multi-tempo Standard MIDI Files directly in your browser.