From 307660d83afda1c618c34dbe9e45866827730bc0 Mon Sep 17 00:00:00 2001 From: HiveBeats Date: Fri, 8 Sep 2023 00:10:22 +0400 Subject: [PATCH] wip: quick note --- src/Filter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Filter.cpp b/src/Filter.cpp index df54c67..7fcde3d 100644 --- a/src/Filter.cpp +++ b/src/Filter.cpp @@ -28,6 +28,8 @@ float Filter::Process(float in) { } void Filter::Process(std::vector& samples) { + // todo: that will not work for ADSR-controlled filter. So, let's calculate all the possible frequency values into array/dictionary + // then just lookup for each sample calculate_coefficients(); for (std::size_t i = 0; i < samples.size(); i++) { samples[i] = Process(samples[i]);