Onset refers to the beginning of a musical note or other sound.
In signal processing, onset detection is an active research area.
For example, the MIREX annual competition features an Audio Onset Detection contest.
The aim is often to judge onsets similarly to how a human would: so psychoacoustically-motivated strategies may be employed.
With a narrower focus, it can be more straightforward to obtain reliable detection.