Created
December 21, 2018 22:34
-
-
Save jpcima/b7b74fc891318db154b62357fc6216b2 to your computer and use it in GitHub Desktop.
Correctif DK simulator de Guitarix : filtre FIR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/trunk/tools/ampsim/DK/dk_templates.py b/trunk/tools/ampsim/DK/dk_templates.py | |
index 36f7e645..b721ec20 100644 | |
--- a/trunk/tools/ampsim/DK/dk_templates.py | |
+++ b/trunk/tools/ampsim/DK/dk_templates.py | |
@@ -1076,7 +1076,7 @@ declare description "@plugindef.description"; | |
import("stdfaust.lib"); | |
-process = pre : fi.iir((@b_list),(@a_list)) with { | |
+process = pre : %if (@a_list) fi.iir((@b_list),(@a_list)) %else fi.fir((@b_list)) %end with { | |
LogPot(a, x) = ba.if(a, (exp(a * x) - 1) / (exp(a) - 1), x); | |
Inverted(b, x) = ba.if(b, 1 - x, x); | |
s = 0.993; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment