Skip to content

Commit

Permalink
added test with 1st-order notch; .05 responsiveness and 2nd-order SC …
Browse files Browse the repository at this point in the history
…seems to work
  • Loading branch information
dariosanfilippo committed May 5, 2020
1 parent 8c3b50b commit 83e0e88
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_sc_suppression.dsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ import("suppression.lib");
response = .05; // in seconds
in = os.osc(freq);
freq = hslider("Freq", 1000, 20, 20000, .001);
process = in : su.notch(1000, dt.sc(1, response, in));
on = checkbox("active");
process = (in : su.notch(1000, dt.sc(2, response, in))) * on + in * (1 - on);
14 changes: 14 additions & 0 deletions test_sc_suppression2.dsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* This tests the responsiveness and accuracy of the suppression technique
* implementing spectral centroid detection and 1st-order notch filtering suppression.
*/

import("stdfaust.lib");
import("detection.lib");
import("suppression.lib");

response = .05; // in seconds
in = os.osc(freq);
freq = hslider("Freq", 1000, 20, 20000, .001);
on = checkbox("active");
process = (in : su.phase_invert(dt.sc(2, response, in)) + in) * on + in * (1 - on);

0 comments on commit 83e0e88

Please sign in to comment.