Really correct octave
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
bab148c69a
commit
1edead1248
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ struct AudioToCVPitch : Module {
|
|||
|
||||
if (detectedPitchInHz > 0.f && pitchConfidence >= params[PARAM_CONFIDENCETHRESHOLD].getValue() * 0.01f)
|
||||
{
|
||||
const float linearPitch = 12.f * (log2f(detectedPitchInHz / 440.f) + octave - 6) + 69.f;
|
||||
const float linearPitch = 12.f * (log2f(detectedPitchInHz / 440.f) + octave - 5) + 69.f;
|
||||
cvPitch = std::max(-10.f, std::min(10.f, linearPitch * (1.f/12.f)));
|
||||
lastKnownPitchInHz = detectedPitchInHz;
|
||||
cvSignal = 10.f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue