Learn R Programming

soundgen (version 2.3.0)

getSpectralFlux: Get spectral flux

Description

Internal soundgen function

Usage

getSpectralFlux(s)

Arguments

s

raw spectrogram (not normalized): rows = frequency bins, columns = STFT frames

Value

vector of length ncol(s)

Details

Calculates spectral flux: the average change across all spectral bins from one STFT frame to the next. Spectra are normalized in each frame, so amplitude changes have no effect on flux.