OnsetRate

streaming mode | Rhythm category

Inputs

  • signal (real) - the input audio signal

Outputs

  • onsetTimes (vector_real) - the detected onset times [s]

  • onsetRate (real) - the number of onsets per second

Description

This algorithm computes the number of onsets per second and their position in time for an audio signal. Onset detection functions are computed using both high frequency content and complex-domain methods available in OnsetDetection algorithm. See OnsetDetection for more information. Please note that due to a dependence on the Onsets algorithm, this algorithm is only valid for audio signals with a sampling rate of 44100Hz. This algorithm throws an exception if the input signal is empty.

Source code

See also

OnsetDetection (standard) OnsetDetection (streaming) OnsetRate (standard) Onsets (standard) Onsets (streaming)