add PatrickvL comments

This commit is contained in:
RadWolfie 2020-05-14 19:12:37 -05:00
parent 9871b25fa8
commit 772e6ed18e
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ static inline int32_t converter_freq2pitch(uint32_t freq) {
// Edit hertz variable to see the result.
float hertz = 12000.0f;
float hertzRatio = 48000.0f;
float pitchRatio = 4096.0f;
float hertzRatio = 48000.0f; // base frequency
float pitchRatio = 4096.0f; // pitch per octave
// Convert hertz to pitch
float pitch = log2(hertz / hertzRatio) * pitchRatio;