librosax.feature.fourier_tempogram

fourier_tempogram(*, y: ndarray | None = None, sr: float = 22050, onset_envelope: ndarray | None = None, hop_length: int = 512, win_length: int = 384, center: bool = True, window: str = 'hann') ndarray[source]

Compute the Fourier tempogram: Fourier transform of the onset strength envelope.

This is a wrapper around librosa.feature.fourier_tempogram.

Parameters

ynp.ndarray [shape=(…, n)] or None

Audio time series. Required if onset_envelope is not provided.

srfloat > 0

Sampling rate of the audio time series

onset_envelopenp.ndarray [shape=(n,)] or None

Optional pre-computed onset strength envelope

hop_lengthint > 0

Number of audio samples between successive onset measurements

win_lengthint > 0

Length of the onset window (in frames/onset measurements)

centerbool

If True, onset windows are centered. If False, windows are left-aligned.

windowstr, tuple, number, callable, or list-like

A window specification as in get_window

Returns

ftgramnp.ndarray [shape=(…, win_length // 2 + 1, n), dtype=complex]

Fourier tempogram matrix

See Also

tempogram librosa.feature.fourier_tempogram