|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| std::vector< size_t > MayaFlux::Kinesis::Discrete::onset_positions | ( | std::span< const double > | data, |
| uint32_t | window_size, | ||
| uint32_t | hop_size, | ||
| double | threshold = 0.1 |
||
| ) |
Sample indices of onsets detected via spectral flux.
Onset positions are local maxima of the half-wave-rectified spectral flux curve that exceed the normalised threshold. Sequential processing is required — this function is not parallelisable.
| data | Input span |
| window_size | FFT window size in samples |
| hop_size | Hop size between successive FFT frames |
| threshold | Normalised flux threshold in [0, 1] (default: 0.1) |
Definition at line 670 of file Analysis.cpp.
References num_windows(), and onset_positions().
Referenced by MayaFlux::detect_onsets(), MayaFlux::detect_onsets(), MayaFlux::detect_onsets_per_channel(), MayaFlux::Yantra::extract_onsets(), and onset_positions().
Here is the call graph for this function:
Here is the caller graph for this function: