From 772e6ed18e172ff9f14883e48934e5c5c1c6da6d Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Thu, 14 May 2020 19:12:37 -0500 Subject: [PATCH] add PatrickvL comments --- src/common/audio/converter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/audio/converter.hpp b/src/common/audio/converter.hpp index 9c45e12bb..75dc1b965 100644 --- a/src/common/audio/converter.hpp +++ b/src/common/audio/converter.hpp @@ -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;