diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2019-05-12 22:56:41 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2019-05-12 22:56:41 +0200 |
commit | d128878c355fe2a1fbb6f55ffbacfebcac354fa9 (patch) | |
tree | 34508f352fae1771d901621a08b998ffd982afc0 /lib | |
parent | c2676d5c71e3e723d61cf7c15089e20496849b15 (diff) |
Improve comments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/qm-dsp/dsp/keydetection/GetKeyMode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/qm-dsp/dsp/keydetection/GetKeyMode.cpp b/lib/qm-dsp/dsp/keydetection/GetKeyMode.cpp index 55a13331b9..9aa527f0ab 100644 --- a/lib/qm-dsp/dsp/keydetection/GetKeyMode.cpp +++ b/lib/qm-dsp/dsp/keydetection/GetKeyMode.cpp @@ -63,10 +63,11 @@ GetKeyMode::GetKeyMode( int sampleRate, float tuningFrequency, m_ChromaConfig.FS = lrint(sampleRate/(double)m_DecimationFactor);
if (m_ChromaConfig.FS < 1) m_ChromaConfig.FS = 1;
- // Set C (= MIDI #12) as our base :
+ // Set C3 (= MIDI #48) as our base:
// This implies that key = 1 => Cmaj, key = 12 => Bmaj, key = 13 => Cmin, etc.
m_ChromaConfig.min = Pitch::getFrequencyForPitch
(48, 0, tuningFrequency);
+ // C7 (= MIDI #96) is the exclusive maximum key:
m_ChromaConfig.max = Pitch::getFrequencyForPitch
(96, 0, tuningFrequency);
|