MIDI Clock Calculator for BPM, PPQN, and SPP

MIDI Clock Calculator

Convert tempo into MIDI clock intervals, 24 PPQN pulse counts, Song Position Pointer values, bar and beat locations, latency offsets, and sample-accurate sync numbers.

🎛 Sequencer and Sync Presets

Choose a starting rig: load a common sequencer, DAW, drum machine, or modular timing situation, then adjust the BPM, meter, start position, latency, and sample rate.

Clock Inputs
Used in the printed breakdown.
The musical tempo sent to the clock network.
6/8 charts often use dotted-quarter BPM.
Top number of the meter, such as 4 in 4/4.
Bottom number of the meter.
MIDI clock standard is 24 pulses per quarter note.
Used for total tick and runtime estimates.
Calculates clocks in one sequence cycle.
Bar 1 beat 1 equals SPP 0.
Written beat number inside the selected bar.
Adds fine SPP offset after the bar and beat.
Positive means the slave is late; negative means early.
Used for samples per clock and latency conversion.
Shows how much of the clock interval one buffer occupies.
Useful for chase, arranger, and stage playback starts.
50 percent is straight; higher delays the off-beat eighth.
Clock Pulse Interval
20.83 ms
24 PPQN at 120 BPM
Ticks In Total Range
6144
64 bars of 4/4
Song Position Pointer
0
sixteenth-note MIDI beats
Samples Per Clock
1000
at 48 kHz

Sync Breakdown

Quarter-note BPM used by MIDI clock120 BPM
Quarter-note duration500.00 ms
Clocks per written bar96 clocks
Loop length and runtime384 clocks, 8.00 sec
SPP start locationBar 1 beat 1 = SPP 0
Latency correction4.50 ms = 216 samples
Buffer relation128 samples = 0.13 clocks
Swing off-beat delay0.00 ms
MIDI Clock Spec Grid
24
MIDI clock pulses per quarter note
6
clocks per SPP sixteenth-note unit
F8
status byte for MIDI Timing Clock
F2
status byte for Song Position Pointer
📊 Live Calculation Tables
Grid point Clocks Milliseconds Samples SPP units
Quarter note24500.00240004
Eighth note12250.00120002
Sixteenth note6125.0060001
One bar962000.009600016
🎼 BPM to 24 PPQN Clock Table
BPM Quarter note Clock pulse 4/4 bar clocks Use case
601000.00 ms41.67 ms96Slow click, ballad, SMPTE chase check
90666.67 ms27.78 ms96Mid-tempo groove or rehearsal playback
120500.00 ms20.83 ms96Common drum machine and DAW sync test
128468.75 ms19.53 ms96DJ, club, and loop-based performance rigs
150400.00 ms16.67 ms96Fast sequence, arpeggiator, or punk tempo
📍 Song Position Pointer Examples
Location in 4/4 Quarter offset SPP value MIDI clocks Reason
Bar 1 beat 1000Song start or hard reset
Bar 2 beat 141696One full 4/4 bar has passed
Bar 9 beat 132128768Common eight-bar section boundary
Bar 17 beat 3662641584Middle of a 16-bar phrase plus two beats
💾 Sample Conversion Reference at 120 BPM
Sample rate Samples per clock Samples per 4/4 bar 1 ms offset 128-sample buffer
44.1 kHz918.758820044.1 samples2.90 ms
48 kHz1000.009600048 samples2.67 ms
96 kHz2000.0019200096 samples1.33 ms
192 kHz4000.00384000192 samples0.67 ms
🔌 Sequencer Preset Guide
Preset Tempo and meter Start target Latency focus Typical sync check
Ableton Bridge120 BPM, 4/4Bar 1 beat 14.5 msDAW clock to drum machine input
Elektron Pattern128 BPM, 4/4Bar 9 beat 12 msPattern change and SPP chase point
6/8 Drum Box72 dotted BPM, 6/8Bar 5 beat 15 msCompound meter grid and click export
Hardware Chase100 BPM, 4/4Bar 33 beat 18 msRemote transport and pre-roll timing
Latency tip: measure MIDI arrival against recorded audio, then convert the offset to both clocks and samples. A few milliseconds can be a meaningful fraction of a 24 PPQN pulse at fast tempos.
SPP tip: Song Position Pointer counts sixteenth-note MIDI beats, not bars. In 4/4, each bar adds 16 SPP units and each SPP unit equals 6 standard MIDI clocks.

MIDI timing describe where musical events happen within the spaces between the notes. If the MIDI timing of a musical performance are not accurate, the performance can appear to be loose or uncoordinated. Small inaccuracy in MIDI timing can occur when using drum machines, sequencers, and click tracks.

For instance, if the kick drum of a drum machine play slightly early, or if a sequencer plays slightly ahead of the song that is being played, the MIDI timing is incorrect. In order to correct the MIDI timing, it is first essential to understand what each signal of the MIDI timing mean to the musical performance, and then to make specific corrections to that timing information. The standard MIDI clock pulse contain information that indicates that twenty-four pulses occur within a quarter note of music.

MIDI Timing Basics

Twenty-four pulses per quarter note were chosen as the standard because this timing allow for enough resolution of the musical performance by both hardware and software components of the musical devices. Each MIDI clock pulse indicates that a new slice of musical time has began. The time between clock pulse can be changed by altering the tempo of the music.

For instance, the difference between a tempo of 120 beats per minute and 128 beats per minute can be noticeable when using multiple musical device in a musical arrangement. You can use a calculator to determine the number of millisecond and samples that each tempo and number of pulses per quarter note equates to, thus avoiding having to manually calculate such value. The Song Position Pointer is a different signal that is used within MIDI for timing of musical performances.

Unlike the MIDI clock pulse, the Song Position Pointer do not continuously send pulses of MIDI data. Instead, the Song Position Pointer contains information that tells a musical device at what position within a song it should begin playing. The Song Position Pointer counts in sixteenth note units.

For example, a bar of four-four time have sixteen sixteenth note units. Musical devices utilize the Song Position Pointer when a musical arrangement is to begin playing from a specific section of the song. For instance, if a song has a sequencer that should begin playing on bar nine, beat one, the Song Position Pointer will contain a value that represents the meter and the starting point of the Song Position Pointer.

The sixteenth note offset can be altered by adding or subtracting step in the Song Position Pointer, but altering the sixteenth note offset will not change the bar that the Song Position Pointer jump to. Another common problem with MIDI timing is the presence of latency. Many people who experience problem with MIDI timing have the problem caused by incorrect measurements of the latency of the system.

The latency that is measured on many devices is the round-trip latency of the audio interface, not the MIDI clock pulse arrival at the instrument. A few millisecond of latency could result in a large fraction of a MIDI clock pulse if the tempo of the music is very high. In order to account for this latency in MIDI timing, a calculator can provide the latency in samples and clock fraction.

These measured latencies allow for a decision to be made as to whether adjustments should be made to the MIDI clock source, the buffer size, or the start of the performance. Sample rate is one factor that must be considered in the relationship between timing and MIDI. All decision regarding timing exist within an audio buffer.

For instance, at a sample rate of 48 kilohertz, a MIDI clock pulse at 120 beats per minute occupy 1000 samples. If the sample rate is increased to 96 kilohertz, the same MIDI clock pulse will occupy 2000 samples. Thus, changing the sample rate have an impact on the length of the MIDI clock pulse that can be utilized for a given buffer size.

Knowing this relationship between sample rate and MIDI clock pulse help to ensure accurate MIDI timing for musical performances. Swing introduce a delay to the off-beat subdivisions of a musical arrangement. The percentage value of swing indicates the degree to which the eighth notes of the music are delay from their expected position within the beat.

At 50% swing, there is no delay to the musical notes. At 60% swing, the off-beat eighth note is delayed by one-tenth of the duration of a quarter note. While this amount of time may be small when measuring in relation to time, the effect on the musical notes are large.

Moreover, each type of musical device may have a different swing setting compared to another device, yet both play at the same tempo. The reference table that are provided in the MIDI timing calculator are useful in providing a general understanding of how many clock pulses or samples occur within specific length of time at specific tempos and sample rates. These reference table are not to be used as a replacement for performing the measurements of the timing of the musical devices.

However, they can help to provide a sense of scale regarding the relationship between time, tempo, and sample rate. For instance, a time difference of one millisecond at 150 beats per minute is a larger portion of a MIDI clock pulse than the same difference of one millisecond at 90 beats per minute. Knowing this relationship allow for an understanding of the amount of compensation that should of been made in adjusting the MIDI timing of a musical performance.

It is recommended that you measure the MIDI timing of a song once, and then make a decision as to what that measurement mean regarding the number of clock pulses and samples of the song. After making this decision, only one adjustment should be made to the MIDI timing of the musical performance. The MIDI timing calculator can determine the mathematical value for the MIDI timing of a song, but the decision of how and if to apply such values is up to the individual musician.

MIDI Clock Calculator for BPM, PPQN, and SPP

Leave a Comment