Shared whitening, spectral/complex flux and SuperFlux feature history.
More...
#include <OnsetFeatures.h>
|
| void | prepare (double sampleRate, int fftSize, bool boundedWorkspace=false) |
| | Allocates histories and the canonical quarter-tone filterbank.
|
| |
| void | reset () noexcept |
| | Clears feature history without allocation or changing the filterbank.
|
| |
| int | getNumBands () const noexcept |
| |
| Frame | process (std::span< T > mag, std::span< const T > phase, Method method, bool whiten=false) noexcept |
| | Advances one frame; optional whitening modifies the supplied magnitudes. Phase-less frames support SpectralFlux, SuperFlux and BothFlux. ComplexDomain requires phases on every frame since reset; missing/incompatible data returns valid=false without changing history. No source clock is inferred here.
|
| |
|
| static std::size_t | preparationBytes (int fftSize) noexcept |
| | Setup payload allowance when prepare() reserves the bounded filterbank.
|
| |
template<FloatType T>
class dspark::detail::OnsetNovelty< T >
Shared whitening, spectral/complex flux and SuperFlux feature history.
Definition at line 199 of file OnsetFeatures.h.
◆ Method
| Enumerator |
|---|
| SpectralFlux | |
| ComplexDomain | |
| SuperFlux | |
| BothFlux | |
Definition at line 202 of file OnsetFeatures.h.
◆ getNumBands()
◆ preparationBytes()
◆ prepare()
Allocates histories and the canonical quarter-tone filterbank.
Definition at line 225 of file OnsetFeatures.h.
◆ process()
Advances one frame; optional whitening modifies the supplied magnitudes. Phase-less frames support SpectralFlux, SuperFlux and BothFlux. ComplexDomain requires phases on every frame since reset; missing/incompatible data returns valid=false without changing history. No source clock is inferred here.
Definition at line 267 of file OnsetFeatures.h.
◆ reset()
Clears feature history without allocation or changing the filterbank.
Definition at line 245 of file OnsetFeatures.h.
◆ kNumRegisters
The documentation for this class was generated from the following file: