summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2019-05-15 00:35:59 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2019-05-15 00:35:59 +0200
commit2d4f4cc6f9a1e31008c6fbb67831fec9ae35edaa (patch)
tree8d06d38d2154e9f7eab07dbb8fdc8dd47f4b8073 /lib
parentf3a28e306ed0b1fb7bb8fe05c317b3f8f35352ff (diff)
Fix typos
Diffstat (limited to 'lib')
-rw-r--r--lib/qm-dsp/dsp/chromagram/Chromagram.cpp2
-rw-r--r--lib/qm-dsp/dsp/chromagram/ConstantQ.cpp8
2 files changed, 5 insertions, 5 deletions
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;