From 2d4f4cc6f9a1e31008c6fbb67831fec9ae35edaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 15 May 2019 00:35:59 +0200 Subject: Fix typos --- lib/qm-dsp/dsp/chromagram/Chromagram.cpp | 2 +- lib/qm-dsp/dsp/chromagram/ConstantQ.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/qm-dsp/dsp/chromagram/Chromagram.cpp b/lib/qm-dsp/dsp/chromagram/Chromagram.cpp index 3e83367a9b..5ba2a762de 100644 --- a/lib/qm-dsp/dsp/chromagram/Chromagram.cpp +++ b/lib/qm-dsp/dsp/chromagram/Chromagram.cpp @@ -33,7 +33,7 @@ int Chromagram::initialise( ChromaConfig Config ) m_BPO = Config.BPO; // bins per octave m_normalise = Config.normalise; // if frame normalisation is required - // No. of constant Q bins, extended to a full cotave + // No. of constant Q bins, extended to a full octave m_uK = m_BPO * (unsigned int)ceil(log(m_FMax/m_FMin)/log(2.0)); // Create array for chroma result diff --git a/lib/qm-dsp/dsp/chromagram/ConstantQ.cpp b/lib/qm-dsp/dsp/chromagram/ConstantQ.cpp index aab4848406..f2129f2e6f 100644 --- a/lib/qm-dsp/dsp/chromagram/ConstantQ.cpp +++ b/lib/qm-dsp/dsp/chromagram/ConstantQ.cpp @@ -144,9 +144,9 @@ void ConstantQ::sparsekernel() hammingWindowIm[ origin + i ] = absol*imag; } - /* This code splits the hanning widow and moves it to the beginning - and the end, creating an epty gap in the middle. - Is disables, because it results in wrong results, + /* This code splits the hanning window and moves it to the beginning + and the end, creating an empty gap in the middle. + It is disabled, because it results in wrong results, when tested with sin waves centered on a bin frequency. for (unsigned i = 0; i < m_FFTLength/2; ++i) { double temp = hammingWindowRe[i]; @@ -303,7 +303,7 @@ void ConstantQ::initialise( CQConfig Config ) // Work out Q value for Filter bank m_dQ = 1/(pow(2,(1/(double)m_BPO))-1); - // No. of constant Q bins, extended to a full cotave + // No. of constant Q bins, extended to a full octave m_uK = m_BPO * (unsigned int)ceil(log(m_FMax/m_FMin)/log(2.0)); // std::cerr << "ConstantQ::initialise: rate = " << m_FS << ", fmin = " << m_FMin << ", fmax = " << m_FMax << ", bpo = " << m_BPO << ", K = " << m_uK << ", Q = " << m_dQ << std::endl; -- cgit v1.2.3