Onset (audio)
Beginning of a musical note or sound
Onset refers to the beginning of a musical note or other sound. It is related to (but different from) the concept of a transient: all musical notes have an onset, but do not necessarily include an initial transient.
01Onset detection
In signal processing, onset detection is an active research area. For example, the MIREX annual competition features an Audio Onset Detection contest.
Approaches to onset detection can operate in the time domain, frequency domain, phase domain, or complex domain, and include looking for:
- Increases in spectral energy
- Changes in spectral energy distribution (spectral flux) or phase
- Changes in detected pitch - e.g. using a polyphonic pitch detection algorithm
- Spectral patterns recognisable by machine learning techniques such as neural networks.
Simpler techniques such as detecting increases in time-domain amplitude can typically lead to an unsatisfactorily high amount of false positives or false negatives.
The aim is often to judge onsets similarly to how a human would: so psychoacoustically-motivated strategies may be employed. Sometimes the onset detector can be restricted to a particular domain (depending on intended application), for example being targeted at detecting percussive onsets. With a narrower focus, it can be more straightforward to obtain reliable detection.
Sources and credits
This article is adapted from the Wikipedia article “Onset (audio)”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.