Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created December 21, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcima/b7b74fc891318db154b62357fc6216b2 to your computer and use it in GitHub Desktop.
Save jpcima/b7b74fc891318db154b62357fc6216b2 to your computer and use it in GitHub Desktop.
Correctif DK simulator de Guitarix : filtre FIR
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