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

What estimate() returns. More...

#include <DownbeatEstimator.h>

Public Attributes

int beatsPerBar = 0
 Beats in a bar: the caller's, or 3 or 4 as estimated. 0: nothing was read.
 
int firstDownbeat = -1
 Index, into the beats given, of the first one that opens a bar. -1: nothing was read.
 
T confidence = T(0)
 How far the chosen first beat stands above the others, 0 (level) to 1.
 
std::vector< int64_t > downbeatSamples
 The beats that open a bar, ascending: every beatsPerBar-th from firstDownbeat.
 

Detailed Description

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

What estimate() returns.

Definition at line 119 of file DownbeatEstimator.h.

Member Data Documentation

◆ beatsPerBar

template<FloatType T>
int dspark::DownbeatEstimator< T >::Result::beatsPerBar = 0

Beats in a bar: the caller's, or 3 or 4 as estimated. 0: nothing was read.

Definition at line 122 of file DownbeatEstimator.h.

◆ confidence

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

How far the chosen first beat stands above the others, 0 (level) to 1.

Definition at line 126 of file DownbeatEstimator.h.

◆ downbeatSamples

template<FloatType T>
std::vector<int64_t> dspark::DownbeatEstimator< T >::Result::downbeatSamples

The beats that open a bar, ascending: every beatsPerBar-th from firstDownbeat.

Definition at line 128 of file DownbeatEstimator.h.

◆ firstDownbeat

template<FloatType T>
int dspark::DownbeatEstimator< T >::Result::firstDownbeat = -1

Index, into the beats given, of the first one that opens a bar. -1: nothing was read.

Definition at line 124 of file DownbeatEstimator.h.


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