Optimizing Audio Latency
Audio latency is the delay between pressing a key and hearing the note — and it decides whether playing feels responsive. In The Ultimate Piano most of it is settled outside the app, in your browser and your sound setup. This guide shows you how to measure your own delay and gives you three routes to a shorter one, from the one-minute fix to the fully tuned setup.
On this page

Why Optimizing Audio Latency Matters for Piano
Audio latency is the total time between a key press and the audible note. When you press a key on your MIDI keyboard, the signal travels through several stages before you hear sound: USB transmission, driver processing, audio buffering, and output through your speakers or headphones. Each stage adds a small delay, and how large each one is depends on your computer, browser and sound hardware.
Trained musicians notice a delay most when they play along with a backing track or the metronome.
The good news: The Ultimate Piano offers all of its features regardless of which audio source you use. Visualization, note detection, chord analysis, sheet-music display, and the training exercises all run from MIDI data, so you can pair them with a zero-latency audio source and lose nothing.
Measure Your Latency: the Audio & MIDI Check
Before you change anything, measure. Open Settings → MIDI → Diagnostics and click Run Audio & MIDI Check:
1. The window first shows your system, audio and MIDI input details.
2. Click Start Test and play exactly as you normally would, for as long as you need. At least 10 keypresses are needed for the latency figures.
3. Click Stop & build report.
The result lists every measured stage in milliseconds — from the MIDI hardware to the app, the time until the sound plays, and the time until the key lights up on screen — each with minimum, average, maximum and 95th percentile, plus display figures such as refresh rate and dropped frames. When the sound arrives quickly, a verdict appears above the table: Excellent below 20 ms, Good below 30 ms. Run the check again after each change to see what it brought. Copy Report and Download everything give you a plain-text report to send to support — nothing leaves your computer unless you send it.
See Settings → MIDI for the full description of the check.
Option 1: Using The Ultimate Piano Audio Samples
The built-in audio samples are the simplest option and work immediately with no setup. The Ultimate Piano ships with recordings of an acoustic grand piano covering all 88 keys (MIDI notes 21 to 108). The engine loads a light layer first (about 5 MB) and upgrades in the background to 8 velocity layers (about 40 MB) on a computer for richer dynamics; on an iPad it stops at 3 layers to stay within the tablet's memory.
These audio samples are ideal for:
- Learning and practicing without additional equipment
- Using the app on a tablet with touch input
- Quick practice sessions where convenience matters more than minimal latency
- Demonstrations and exploring music theory
Many musicians find the built-in sound perfectly acceptable for learning new pieces, practicing scales, or exploring chords and theory. The Audio & MIDI Check tells you what it measures on your own system.
Option 2: Using Your Keyboard's Built-in Sound
Your digital piano's own sound engine is the fastest zero-setup path to low latency. Most digital pianos and stage keyboards have high-quality built-in voices with virtually zero latency, which is often the best solution for serious practice.
How to set this up:
1. Connect your keyboard to your computer for MIDI data
2. Connect your keyboard's audio output to your speakers or headphones
3. Make sure "Local Control" is enabled on your keyboard (check your keyboard's manual)
4. In The Ultimate Piano, click the speaker icon in the header to open the Audio Mixer and mute the Piano row — the app stops sounding the notes you play, while the metronome and the song players stay audible
5. Play and enjoy zero-latency sound from your keyboard while using all app features
Your keyboard sends MIDI data to The Ultimate Piano for visualization and analysis, while simultaneously producing sound through its own audio system. You get professional-grade audio response and all the learning features of the app at once.
Features that work perfectly with muted app audio:
- Real-time keyboard visualization showing which keys you play
- Chord detection and display
- Note names overlay
- Sheet music notation following your playing
- MIDI recording (up to 30 minutes per take) and playback visualization
- Note reading and scale training exercises (the app detects your playing via MIDI)
- Chord training across all 12 keys
- Scale practice with visual feedback
- Pedal status display for the sustain pedal (CC64)
This setup is ideal for musicians who already own a quality digital piano and want to enhance their practice with visualization and learning tools.
Option 3: Using a DAW with ASIO and VST Instruments
A DAW with ASIO drivers delivers the lowest computer-based latency. For the best sound quality and response on a computer, professional musicians often use a Digital Audio Workstation (DAW) with ASIO drivers and VST piano instruments like Keyscape, Pianoteq, or Addictive Keys.
How to set this up:
1. Install a virtual MIDI cable (like loopMIDI on Windows or IAC Driver on Mac)
2. Configure your MIDI keyboard to send to the virtual MIDI cable
3. In The Ultimate Piano, open Settings → MIDI and tick the virtual cable in the device list
4. Configure your DAW to also receive MIDI from the virtual cable
5. Load your preferred VST piano instrument in the DAW
6. Set your DAW to use ASIO with a low buffer size (64 to 128 samples)
7. Mute the Piano row in The Ultimate Piano's Audio Mixer
With this setup, your key presses reach both The Ultimate Piano and your DAW at the same time. The app provides visualization and learning features while your DAW produces the sound, with a delay set by your audio interface and buffer size.
This option requires more setup but delivers the best possible audio quality and response time. It is ideal for:
- Recording sessions where you want both visualization and pristine audio
- Advanced practice where every millisecond matters
- Musicians who already own professional audio equipment
- Using premium VST instruments with The Ultimate Piano's learning features
Choosing the Right Setup
For beginners and casual practice, use the built-in audio samples. They sound great and require no setup.
For regular practice with a digital piano, use your keyboard's built-in sound with the app's Piano channel muted. This gives you zero latency with minimal setup.
For professional work and recording or streaming, use a DAW with ASIO and your favorite VST instruments. This requires more setup but delivers the best results.
Remember: The Ultimate Piano's visualization, analysis, and training features work identically regardless of your audio setup. The app detects your playing through MIDI data, not audio. Muting the app audio does not affect any functionality except the sound output itself.
Quick Reference: Muting App Audio
The speaker icon in the top header bar opens the Audio Mixer with three rows, each with a volume slider and a mute button:
- Master — everything the app plays: your piano, the song players, the metronome and its drum grooves
- Piano — the notes you play yourself
- Player — playback in the MIDI Player and Sheet Music Player, and the chord playback of the Progression Generator and Leadsheet Editor
The speaker icon shows when Master is silent, and a small dot appears on it while the Piano or Player channel is muted. All other features keep working; click a mute button again to bring the sound back. Your mixer settings are remembered the next time you open the app.
Technical Notes
The Ultimate Piano uses the Web Audio API with settings tuned for the lowest possible browser latency: interactive latency mode and zero lookahead scheduling. Everything plays through one shared audio clock, so the metronome and the song players stay in time with each other, and the song players use their own piano instance so playback never gets in the way of what you play live.
The Audio & MIDI Check measures the stages inside the browser — from the MIDI hardware to the app, through the audio engine, to the highlight on screen. Two stages lie outside what a browser can measure, and the report lists them as estimates:
- USB MIDI cable: about 1–3 milliseconds
- Converter and speaker: about 1–2 milliseconds
The audio buffering in the browser and the operating system's sound processing are outside the control of any web application. Using an external audio source — your keyboard's own sound or a DAW — bypasses those stages entirely.
Related: Adjust audio and MIDI options in Settings. Learn more about the Audio engine. For setup help, see Getting Started.
Frequently Asked Questions
How does optimizing audio latency work in a web browser?
3 steps: measure your delay with the Audio & MIDI Check in Settings → MIDI (it rates below 20 ms as excellent and below 30 ms as good), then shorten it by switching the sound source — your keyboard's own sound has practically no delay, and a DAW with ASIO drivers bypasses the browser's audio buffering — and measure again.
Are the built-in audio samples good enough for practice?
Yes. The Ultimate Piano uses recordings of an acoustic grand piano covering all 88 keys, loading up to 8 velocity layers on a computer for realistic dynamics. They work instantly with no setup and suit most learning and practice sessions.
Do all features work when audio is muted?
Yes. Visualization, chord detection, note names, sheet-music notation, MIDI recording, and all training exercises work identically regardless of your audio setup, because the app detects your playing through MIDI data, not audio.
How do I set up a DAW with ASIO and The Ultimate Piano?
3 steps get you there: install a virtual MIDI cable (loopMIDI on Windows, IAC Driver on Mac), set both The Ultimate Piano and your DAW to receive from that cable, then load a VST piano and mute the Piano channel in The Ultimate Piano's Audio Mixer while your DAW runs ASIO at a 64 to 128 sample buffer.
Ready to try it?
Open The Ultimate Piano in your browser — no download needed.
Open The Ultimate Piano →