FFTPeak:
Filter:
Classes (extension) | UGens > Analysis | UGens > FFT

FFTPeak : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

Find peak value in an FFT frame

Description

Given an FFT chain, this finds the bin with the strongest magnitude. It outputs the frequency of that bin, and its magnitude. No interpolation is done on the values.

This could be used as a primitive pitch detector, but in practice autocorrelation methods (as used in Pitch and Tartini) give more reliable pitch tracks. This simple approach gives poor resolution and robustness for that purpose. However it can be useful for other things...

Class Methods

FFTPeak.kr(buffer, freqlo: 0, freqhi: 50000)

Arguments:

buffer
freqlo
freqhi

Returns:

# freq, mag.

Inherited class methods

Instance Methods

Inherited instance methods

Examples