[feat]: Filter #18

Merged
e1lama merged 15 commits from feature/filter-1 into master 2023-09-09 21:56:47 +00:00
9 changed files with 170 additions and 0 deletions
Showing only changes of commit 307660d83a - Show all commits

View File

@@ -28,6 +28,8 @@ float Filter::Process(float in) {
}
void Filter::Process(std::vector<float>& 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]);