Processor: Not Relevant
Licensed under a Creative Commons Attribution 3.0 Unported License
This code snippet will generate numberator(b) and denominator(a) coefficients for a comb filter. (http://en.wikipedia.org/wiki/Comb_filter )
In reality, this code snippet is geared towards simulation purposes and is not recommended for a direct implemenation. The reason is that in order to simultate the delay of "x", the b coefficients have alot of zero's in them and you would not want to waste the instructions on multiplying by zero. What is nice about this code is that you can very easily plug it into the filter() function for a quick-and-easy comb filter of your signal.
This could be used as a DC blocker if you set the gain to a negative value. If you are comparing this code to the wikipedia article, "scalar" is the same as alpha and "order" is the same as K.