TIGA ALPHABlog

← All articles

Onset Detection: How Practice Apps Hear When a Note Begins

News ·

Onset Detection: How Practice Apps Hear When a Note Begins

Onset detection is the part of music software that decides when a new note or sound begins in an audio recording. For a piano practice app listening through a microphone, it is the first step before judging rhythm: the app must know that a note started at a particular instant before it can say whether that instant was early, late or on time. Good onset detection makes timing feedback feel fair; poor detection makes it feel random.

What an onset looks like in sound

When a piano hammer strikes a string, the sound jumps from near silence or from the decay of earlier notes to a sudden burst of energy. That burst contains a sharp attack across many frequencies, followed by a gradual fade. An onset detector searches for these abrupt changes.

In a single note played in a quiet room, the change is obvious. In real practice, notes overlap, the sustain pedal blurs boundaries, and repeated notes at the same pitch may barely change the overall loudness. Those situations are where the engineering becomes interesting.

Classic signal methods

Early approaches used hand-designed measurements that rise sharply at note starts.

These methods are fast and run comfortably on phones, but they need careful tuning for different instruments and rooms.

Trained detectors for note starts

Modern systems often train neural networks on recordings where note starts have been marked precisely. The network learns which patterns in a spectrogram usually mean a new note, including subtle cases such as soft notes under a sustained chord. For piano, training data can come from instruments that record key movements alongside audio, giving very accurate labels.

Why piano is a good case

Piano notes have a clear percussive attack, so onsets are easier to find than on bowed or sung notes, where sound can swell gradually.

Where piano is still hard

Fast repeated notes, very quiet playing and heavy pedalling remain challenging, especially through a phone microphone in a room with echoes.

Illustration of a keyboard player at a glowing synth rig on a neon street

From onsets to timing feedback

Once the app knows when each note began, it compares those times with the expected times from the score and tempo. Most systems allow a small window of tolerance, because human playing is never perfectly mechanical and because microphones and processing add tiny delays. Apps then need to align the performance to the score even when a learner skips a note or repeats a bar, which is a separate problem built on top of onset detection.

A tool like TIGA ALPHA combines this kind of listening with lesson content, so a learner sees not only that a note was late but which bar it was in and how it compared with the rest of the phrase.

How learners can help the software

You can improve accuracy with a few simple habits.

  • Place the device where it can hear the instrument clearly, away from fans or televisions.
  • Avoid playing along with loud background music while using listening features.
  • If you use a digital piano, connect by cable or a supported wireless link, which sends note data directly instead of relying on audio.
  • Check the app's audio settings for latency calibration if it offers one.

Why the details matter for teaching

Rhythm feedback influences how learners judge their own progress. If an app wrongly reports late notes, students may become discouraged or start rushing. Transparent tools explain their tolerance windows and make it easy to replay a passage to compare. Teachers can also use these reports as conversation starters rather than final verdicts.

FAQ

Q: Is onset detection the same as pitch detection?

A: No. Onset detection finds when notes start; pitch detection identifies which notes are sounding. Many apps use both together.

Q: Why does an app sometimes miss my repeated notes?

A: Repeated notes at the same pitch produce smaller changes in sound, especially when played softly or with pedal, so detectors can merge them.

Q: Does a digital piano connection avoid these problems?

A: Mostly. A direct connection sends exact key timing, so the app does not need to infer note starts from audio.

Q: Can onset detection work in a noisy room?

A: It can, but accuracy drops. A quieter space and closer device placement usually help.

Get started with TIGA ALPHA

TIGA ALPHA is an AI piano teaching app built by a Thai team, with lessons in 10 languages: Thai, English, Mandarin, Arabic, Japanese, Russian, Spanish, French, Hindi and Korean. Its CEO, Teacher Aum, has 20 years of experience in piano teaching, and that music teaching background shapes every lesson, while piano teaching with AI gives you feedback each time you play piano. Use it as an online piano lessons app for short daily sessions, follow it as a complete AI online piano course, or combine it with a piano course or piano learning course led by a teacher. Whether you want to learn piano from zero, learn piano online after a long break, learn music alongside your children or simply play music for fun, this online piano teaching application keeps your next step clear. New users get a 7-day free Premium trial, then US$24.99/month. Open the piano teaching app below and pick a first lesson that fits your week.

Every timing comment a practice app makes starts with one quiet question: exactly when did that note begin?

Start learning free on TIGA ALPHA