Onset detection#

librosa.onset contains functions for computing onset strength envelopes and estimating onset events from audio signals.

onset_detect

Locate note onset events by picking peaks in an onset strength envelope.

onset_strength

Compute a spectral flux onset strength envelope.

onset_strength_multi

Compute a spectral flux onset strength envelope across multiple channels.

onset_backtrack

Backtrack detected onset events to the nearest preceding local minimum of an energy function.