PV_HainsworthFoote:
Filter:
Classes | UGens > FFT

PV_HainsworthFoote : PV_ChainUGen : WidthFirstUGen : UGen : AbstractFunction : Object

FFT onset detector.
Source: FFT2.sc

Description

FFT onset detector based on work described in Hainsworth, S. (2003) Techniques for the Automated Analysis of Musical Audio. PhD, University of Cambridge engineering dept.See especially p128. The Hainsworth metric is a modification of the Kullback Liebler distance.

The onset detector has general ability to spot spectral change, so may have some ability to track chord changes aside from obvious transient jolts, but there's no guarantee it won't be confused by frequency modulation artifacts.

Hainsworth metric on it's own gives good results but Foote might be useful in some situations: experimental.

Class Methods

PV_HainsworthFoote.ar(buffer, proph: 0.0, propf: 0.0, threshold: 1.0, waittime: 0.04)

Arguments:

buffer

FFT buffer.

proph

What strength of detection signal from Hainsworth metric to use.

propf

What strength of detection signal from Foote metric to use. The Foote metric is normalised to (0..1).

threshold

Threshold hold level for allowing a detection.

waittime

If triggered, minimum wait until a further frame can cause another spot (useful to stop multiple detects on heavy signals).

Inherited class methods

Instance Methods

Inherited instance methods

Examples