When you set a metronome to 120BPM you expect it to click 120 times a minute, every minute, without variation. What you actually get depends entirely on the engineering underneath. There are two fundamentally different approaches to metronome timing on a phone, and the difference between them is audible at fast tempos.
What "Accurate" Means for a Metronome
Accuracy in a metronome has two distinct components, and it is worth separating them because they affect your playing differently.
Drift is the average BPM wandering from the target over time. A metronome set to 120BPM that actually averages 119.8BPM over a long session is drifting. Drift is real but relatively rare in modern software. Any app that uses the system clock as its reference point will avoid significant drift, because system clocks are accurate to well under a millisecond per second.
Jitter is individual beats landing slightly off the expected instant, some 3ms early, some 5ms late, with no pattern. At 120BPM, a beat lands every 500ms. Jitter of 10ms is 2% of that interval. Research on rhythm perception places most musicians' detection threshold at roughly 5 to 10ms in a familiar tempo, and that threshold drops lower for trained listeners or at faster tempos. Consistent jitter at 160BPM makes the click feel fuzzy or elastic, even when the average tempo is technically correct. This is the problem that matters in practice.
How Timer-Based Metronomes Work (and Why Jitter Happens)
The simplest way to implement a metronome is a repeating timer callback: schedule a function to run every N milliseconds, play a sound when it fires. Android provides several mechanisms for this, including Handler.postDelayed() and scheduled executors. The problem is that these callbacks are dispatched by the operating system's scheduler, not by audio hardware.
Between the moment a callback is scheduled and the moment it actually fires, the OS may be handling an interrupt, running a garbage collection pass, processing a network event, or drawing a frame to the screen. These are not pathological scenarios. They happen on every phone, continuously, as normal housekeeping. Even on an idle device with nothing else running, scheduling jitter of 5 to 20ms is routine for software timers. On a busy phone with background apps active, it can be considerably worse. The click fires when the scheduler gets around to it, not when the beat was supposed to land.
Letting the Audio Clock Drive
The alternative is to let the audio hardware keep time. On Android this means using the AudioTrack API in STREAM mode with a blocking write loop; it is how the Metro Gnome metronome, built by the author of this article, works, and the same principle applies on any platform.
The loop works like this: build an audio buffer containing exactly one beat's worth of samples (the click transient followed by silence), hand that buffer to AudioTrack.write(), and wait. The write() call is blocking in STREAM mode. It does not return until the hardware audio ring buffer has accepted the entire buffer. That acceptance is gated by the audio hardware clock, not the OS scheduler. The hardware plays audio at exactly 44,100 samples per second, driven by a crystal oscillator. Nothing on the OS side can change that rate.
At 44,100Hz and 120BPM, one beat is exactly 22,050 samples. Those 22,050 samples take exactly 500.000ms to play. Not approximately. Not on average. Exactly, because the crystal running the audio DAC is the reference, and it does not yield to the OS scheduler. When write() returns and the loop begins building the next beat's buffer, it does so with that guarantee already satisfied by the hardware.
One detail matters at tempos that do not divide evenly. At 137 BPM a beat is 19,313.87 samples, and simply dropping the fraction on every beat would make the metronome run about 160 ms fast per hour. A careful engine carries the leftover fraction into the next beat, so the rounding never adds up.
There is still a delay between writing audio and hearing it, from a few tens of milliseconds to a few hundred depending on the phone and whether you use Bluetooth. But it is the same on every beat, so it shifts the whole click track without making it uneven. The click you hear at beat 100 is spaced just as precisely from beat 99 as beat 2 was from beat 1.
Keeping the Picture in Time With the Sound
A metronome usually also shows the beat: a flashing light, a swinging arm, a bouncing character. The obvious way to trigger that animation is from the loop that writes the audio, and it is wrong, because the code writes each beat well before you hear it.
How far ahead is easy to underestimate. Measured with a microphone on one recent Android phone, each click reached the speaker about a quarter of a second after the code that queued it ran. An animation fired at that moment visibly leads the sound. The fix is to ask the audio system when each beat will actually be played (Android reports this through AudioTrack.getTimestamp; browsers through the Web Audio clock and its output latency) and hold the animation until then. Metro Gnome moved its visuals to this method in version 7.2, and the browser metronome on this site does the same.
Pre-Generated Click Sounds
In a well-built engine, click synthesis happens once, at startup, not on each beat. Metro Gnome's, for example, generates a click and an accent buffer for every sound type: a standard click at 1,100Hz lasting 38ms with an accent at 1,800Hz lasting 50ms, a hi-hat tick at 9,000Hz with its accent at 7,000Hz, woodblock variants at 600Hz and 800Hz, and a warm click at 350Hz lasting 130ms, plus the optional sounds, among them a drum-machine hi-hat built from six square-wave oscillators and filtered noise. The warm click includes three early reflections at delays of 28ms, 52ms, and 80ms at decreasing amplitudes, simulating room reverb without a convolution reverb unit.
Pre-generating these buffers means the audio thread has zero CPU work on the beat itself. At the start of each beat loop iteration, it selects the appropriate pre-built buffer and copies it into the output. No floating-point synthesis, no memory allocation, no garbage collector pressure during the write. The thread does exactly one thing on the critical path: write data the hardware is waiting for.
Thread Isolation
The entire write loop runs on a Kotlin coroutine backed by Dispatchers.Default, a worker thread pool that is separate from the UI thread. The UI thread handles touch events, screen rendering, and animations. A slow frame caused by a complex layout or a garbage collection pause cannot delay the audio write loop, because they run on different threads. The audio thread does not draw anything and the UI thread does not write audio.
This matters at fast tempos and during heavy UI activity. Scrolling through settings, opening dialogs, triggering animations: none of these sit on the audio thread's critical path, so they cannot delay a beat the way they can delay a timer callback.
Is Google's Metronome Accurate Enough?
Google's built-in metronome, accessible by searching "metronome" in Google Search or Chrome, is a well-made tool for its purpose. Like any browser metronome, how steady it is depends on how it is built: a page that books each click ahead on the Web Audio clock keeps time the way an audio-clock app does, while one that plays a sound every time a JavaScript timer fires inherits the timer's jitter. From the outside you cannot tell which, so test it. For keeping a rehearsal from speeding up or counting bars, a well-made browser metronome works perfectly well; the online metronome on this site schedules on the audio clock.
For precision practice at fast tempos, for training a tight internal pulse, or for work where 10ms of jitter is perceptible, an audio-clock-anchored engine makes a measurable difference. Not every metronome app makes this distinction clear, and some that appear to use audio hardware still introduce jitter through their architecture. A quick check: at 200 BPM, does the click feel like a machine or does it feel elastic? For a proper test, record the click and measure the gaps, as described in how to test your metronome.
The engineering described here is not a feature you will find in a settings menu. It is the foundation underneath everything else. A precise click is not just nicer to practise with. It is the only kind that gives your internal sense of time something true to lock onto.
Metro Gnome: Free Metronome, Tuner and Speed Trainer
A sample-accurate metronome, a smart chromatic tuner, a structured Speed Trainer, and Groove Check mic timing feedback. Free on Android, no subscription ever.
Get it Free on Google Play