Commit eb7e5aef300487154a639c474dc7ae254c5c781b

Thomas de Grivel 2020-05-06T17:30:47

failing test synth bandpass2

diff --git a/README.md b/README.md
index b849efc..4f8f5e8 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,7 @@
 Real time signal processing in ANSI C.
 
 See https://rtbuf.kmx.io/
+
+## Issues
+
+signal/bandpass2 does not work
diff --git a/lib/signal/Makefile.am b/lib/signal/Makefile.am
index a9c24ba..dc1294f 100644
--- a/lib/signal/Makefile.am
+++ b/lib/signal/Makefile.am
@@ -1,4 +1,3 @@
-
 CLEANFILES =
 rtbuf_includedir = $(includedir)/rtbuf/signal
 rtbuf_include_HEADERS =
diff --git a/lib/signal/bandpass2.c b/lib/signal/bandpass2.c
index f1a6bc7..e3aefa2 100644
--- a/lib/signal/bandpass2.c
+++ b/lib/signal/bandpass2.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -159,4 +159,4 @@ s_rtbuf_lib_proc rtbuf_lib_proc =
     rtbuf_signal_bandpass2_in,
     rtbuf_signal_bandpass2_out };
 
-unsigned long   rtbuf_lib_ver = RTBUF_LIB_VER;
+unsigned long rtbuf_lib_ver = RTBUF_LIB_VER;
diff --git a/test_synth_bandpass2 b/test_synth_bandpass2
new file mode 100644
index 0000000..53909f6
--- /dev/null
+++ b/test_synth_bandpass2
@@ -0,0 +1,21 @@
+load glfw3/keyboard
+let Keyboard00 = new glfw3/keyboard
+load synth/adsr
+let ADSR00 = new synth/adsr
+load signal/sinus
+let Osc00 = new signal/sinus
+load synth/synth
+let Synth00 = new synth/synth
+bind Keyboard00 notes Synth00 notes
+bind ADSR00 signal Synth00 envelope
+bind Osc00 signal Synth00 oscillator
+
+load signal/bandpass2
+let Fx00 = new signal/bandpass2
+bind Synth00 signal Fx00 signal
+
+load portaudio/output
+let Output = new portaudio/output
+bind Synth00 signal Output left
+bind Fx00 signal Output right
+start