Skip to content

Reference library > Analysis > OnsetDetector

OnsetDetector

OnsetDetector(input=0.0, threshold=2.0, min_interval=0.1)

Simple time-domain onset detector. Outputs an impulse when an onset is detected in the input. Maintains short-time and long-time averages. An onset is registered when the short-time average is threshold x the long-time average. min_interval is the minimum interval between onsets, in seconds.


Last update: 2023-12-03
Created: 2023-12-03