Listening · 5 min read
How VOX hears your notes.
VOX is a metronome that listens. To tell you whether a note landed early, late or right in the pocket, it first has to know the exact moment you played it. That moment is called the onset.
VOX finds it with a top-tier onset model of our own. It runs live on the phone, while the click plays from the same speaker. No headphones, no cables, no extra gear.
What an onset is.
An onset is the instant a note begins: the pick hits the string, the stick hits the drum, and new sound jumps out of silence or out of the note before it. For timing practice it is the only moment that matters, because that is where “on the beat” is decided.
Finding onsets automatically is a classic problem in music technology, called onset detection. The 2005 tutorial by Bello and colleagues is still the standard introduction, and the Fundamentals of Music Processing notebook on onset detection shows it with sound and pictures. Both make the same point: a drum hit is easy to spot, while a soft, slurred or very fast note is not.
The problem: one phone, two jobs.
VOX works over the phone's own speaker, with no headphones and no cables. That means one small device plays the click and listens to you at the same time. Its microphone hears everything mixed together: the click, your instrument, the room and whatever else is going on.
So the listener has to get four things right:
- Tell your note from the click. Both are short, sharp sounds, and the click is often louder than you.
- Work on any phone. Every model has a different speaker, microphone and built-in sound processing.
- Handle delay that changes from phone to phone. Sound takes time to travel through the speaker and back through the microphone. Google's own Android audio latency guide notes that this round trip “varies greatly depending on device model and Android build”.
- Survive real rooms. Echo off the walls, hum from an amp, a TV in the next room.
Phones already have a trick for calls. Speakerphones use acoustic echo cancellation: they subtract what they sent to the speaker from what the microphone hears. That trick is tuned for voices. On music it can smear the sharp attacks that mark a note, and it removes the click too.
Just your phone.
VOX needs no extra hardware. The click plays from the phone's own speaker, and the phone's own microphone does the listening. Other ways to get timing feedback usually ask for more:
| Way to get timing feedback | What you need |
|---|---|
| Some listening apps | Headphones, so the microphone never hears the click |
| Cable-based guitar apps | A cable or audio interface between your instrument and the phone |
| MIDI-based trainers | A MIDI keyboard, pad controller or electronic drum kit |
| VOX | The phone you already have |
There is no calibration step over the speaker either. VOX handles each phone's sound delay on its own, so you can switch phones, rooms or instruments and just play.
How it compares.
In our tests, VOX's model outscores two well-known research tools, and it does so deciding live on the phone. madmom is a standard research library whose onset detector comes from Schlüter and Böck's 2014 work. Spotify's Basic Pitch turns recordings into notes. Both are built to analyze finished recordings.
We scored all three the way the research field does, with the default of the mir_eval toolkit: a note counts as found if it is marked within 50 milliseconds. The score combines found notes and false notes into one number, where 100 is perfect.
| Test recordings | VOX | madmom | Basic Pitch |
|---|---|---|---|
| Phone takes, click on the speaker (4,472 notes) | 92 | 62 | 60 |
| Guitar, public research sets (23,936 notes) | 89 | 82 | 84 |
| Drums, public research sets (31,955 notes) | 93 | 82 | 11 |
| Piano, public research sets (45,126 notes) | 89 | 86 | 81 |
| Bowed strings, public research set (1,932 notes) | 64 | 60 | 57 |
The phone takes show the gap best. With the click playing, madmom marked 139 false notes per minute, mostly the click itself. VOX marked about 10.
Basic Pitch is built for pitched notes, so drums sit outside its job. Soft bowed strings stay hard for every detector. These are our own measurements, on recordings our model never trained on.
How it fits into VOX.
Inside VOX, that listening powers everything you see while you practice.
- ECO, live timing. ECO places every note against the click as you play: early, on time or late, by how many milliseconds, and what share of your notes landed inside your target window.
- META, tempo goals. META builds toward your next tempo step, and the same note timing tells it when you are ready to move up.
- Helpful hints. If VOX hears the click but none of your notes, or hears nothing at all, it can tell you to move closer or turn the volume up, instead of quietly scoring silence.
- Private by design. All of this runs on your phone. The listening and timing analysis happen on the device itself.
The result is simple to use: put the phone on the stand, start the click and play. VOX hears the difference between its click and your notes, and shows you where you sit in the pocket.
Further reading
- Bello et al., A Tutorial on Onset Detection in Music Signals, IEEE Transactions on Speech and Audio Processing, 2005.
- Müller, Fundamentals of Music Processing: Onset Detection, AudioLabs Erlangen.
- Schlüter and Böck, Improved Musical Onset Detection with Convolutional Neural Networks, ICASSP 2014.
- madmom, a Python library for music signal processing.
- Spotify Engineering, Meet Basic Pitch, 2022.
- Android Developers, Audio latency.
- Q-SYS, Acoustic Echo Cancellation white paper.
- Raffel et al., mir_eval: onset evaluation, the standard scoring toolkit for music research.