aboutsummaryrefslogtreecommitdiffstats
path: root/templates/6_iir_test.cpp
diff options
context:
space:
mode:
authorClyne <clyne@bitgloo.com>2022-05-24 17:38:05 -0400
committerClyne <clyne@bitgloo.com>2022-05-24 17:38:05 -0400
commit5902a67796000c7546d07fa778b26619c4588c3a (patch)
tree1c1fa04635a3c248d07fde4dce8857885ca23952 /templates/6_iir_test.cpp
parent1cf4908a23dc5537be0bab1089ffcaa7079d5434 (diff)
parentdff847ff4455e7b8c5123167a7d01afe7c45f585 (diff)
Merge pull request 'devel: Ready for pre-release' (#1) from devel into masterv0.1
Reviewed-on: https://code.bitgloo.com/clyne/stmdspgui/pulls/1
Diffstat (limited to 'templates/6_iir_test.cpp')
-rw-r--r--templates/6_iir_test.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/templates/6_iir_test.cpp b/templates/6_iir_test.cpp
deleted file mode 100644
index 116a680..0000000
--- a/templates/6_iir_test.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-Sample *process_data(Samples samples)
-{
- constexpr float alpha = 0.7;
-
- static Sample prev = 2048;
-
- samples[0] = (1 - alpha) * samples[0] + alpha * prev;
- for (unsigned int i = 1; i < samples.size(); i++)
- samples[i] = (1 - alpha) * samples[i] + alpha * samples[i - 1];
- prev = samples[samples.size() - 1];
-
- return samples.data();
-}