-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added test with 1st-order notch; .05 responsiveness and 2nd-order SC …
…seems to work
- Loading branch information
1 parent
8c3b50b
commit 83e0e88
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
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); | ||
|