dcblockSignal Modifiers:Specialized Filtersdcblockdcblock
A DC blocking filter.
Description
Implements the DC blocking filter
Y[i] = X[i] - X[i-1] + (igain * Y[i-1])
Based on work by &nameperry;.
Syntaxares dcblock ain [, igain]Initializationigain -- the gain of the filter, which defaults to 0.99
Performanceain -- audio signal input
The new dcblock2 opcode is an improved method of removing DC from an audio signal.Examples
The result can be viewed in a graphical audio editor program like audacity. audacity is available for Linux, Windows, and the MacOS and may be downloaded from http://audacity.sourceforge.net.
Here is an example of the dcblock opcode. It uses the file dcblock.csd, and drumsMlp.wav.
Example of the dcblock opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSpecialized Filters: High pass filtersCreditsAuthor: &namejohn;University of Bath, Codemist Ltd.Bath, UKNew in Csound version 3.49February 2003: Thanks to a note from Anders Andersson, corrected the formula.