From 9851bb07bc58f2e0176dc69b0c519a692df92f54 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 9 Jul 2018 10:57:04 -0400 Subject: [PATCH] Add comment to VCF HP formula --- src/VCF.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/VCF.cpp b/src/VCF.cpp index 7b51679..bc2e5f7 100644 --- a/src/VCF.cpp +++ b/src/VCF.cpp @@ -46,6 +46,7 @@ struct LadderFilter { }); lowpass = state[3]; + // TODO This is incorrect when `resonance > 0`. Is the math wrong? highpass = clip((input - resonance*state[3]) - 4 * state[0] + 6*state[1] - 4*state[2] + state[3]); } };