DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::BeatTracker< T >::Result Struct Reference

What analyze() returns: one tempo, one grid, one number saying how much of the signal that grid explains, and the metrical alternative that lost. More...

#include <BeatTracker.h>

Public Attributes

T tempoBpm = T(0)
 Delivered tempo, fitted to the grid.
 
T confidence = T(0)
 Coherence of the envelope with the grid, [0,1].
 
T secondaryTempoBpm = T(0)
 The competing hypothesis that lost.
 
std::vector< int64_t > beatSamples
 Beat positions, ascending, in samples.
 

Detailed Description

template<FloatType T>
struct dspark::BeatTracker< T >::Result

What analyze() returns: one tempo, one grid, one number saying how much of the signal that grid explains, and the metrical alternative that lost.

Definition at line 342 of file BeatTracker.h.

Member Data Documentation

◆ beatSamples

template<FloatType T>
std::vector<int64_t> dspark::BeatTracker< T >::Result::beatSamples

Beat positions, ascending, in samples.

Definition at line 347 of file BeatTracker.h.

◆ confidence

template<FloatType T>
T dspark::BeatTracker< T >::Result::confidence = T(0)

Coherence of the envelope with the grid, [0,1].

Definition at line 345 of file BeatTracker.h.

◆ secondaryTempoBpm

template<FloatType T>
T dspark::BeatTracker< T >::Result::secondaryTempoBpm = T(0)

The competing hypothesis that lost.

Definition at line 346 of file BeatTracker.h.

◆ tempoBpm

template<FloatType T>
T dspark::BeatTracker< T >::Result::tempoBpm = T(0)

Delivered tempo, fitted to the grid.

Definition at line 344 of file BeatTracker.h.


The documentation for this struct was generated from the following file: