File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
include/MusicBeatDetector/Utils/Data Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace introlab
25
25
void shift (const T& value);
26
26
const T& operator [](int64_t i) const ;
27
27
28
- const std::size_t size () const ;
28
+ std::size_t size () const ;
29
29
};
30
30
31
31
template <class T >
@@ -91,7 +91,7 @@ namespace introlab
91
91
}
92
92
93
93
template <class T >
94
- inline const std::size_t ShiftRegister<T>::size() const
94
+ inline std::size_t ShiftRegister<T>::size() const
95
95
{
96
96
return m_data.size ();
97
97
}
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ BpmEstimator::BpmEstimator(
16
16
float maxBpm,
17
17
size_t candidateCount)
18
18
: m_ossSamplingFrequency(ossSamplingFrequency),
19
- m_crossCorrelationCalculator(ossWindowSize ),
20
- m_candidateCount(candidateCount )
19
+ m_candidateCount(candidateCount ),
20
+ m_crossCorrelationCalculator(ossWindowSize )
21
21
{
22
22
if (minBpm <= 0 || maxBpm <= 0 )
23
23
{
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ float OssCalculator::calculateFlux()
74
74
float OssCalculator::calculateOss ()
75
75
{
76
76
float oss = 0 ;
77
- for (int64_t i = 0 ; i < m_fluxShiftRegister.size (); i++)
77
+ for (size_t i = 0 ; i < m_fluxShiftRegister.size (); i++)
78
78
{
79
79
oss += m_fluxShiftRegister[i] * m_fluxHamming (i);
80
80
}
You can’t perform that action at this time.
0 commit comments