Debian Codegraph @

opcodes/dcblock.xml

raw symbols SCIP
1
2 <refentry id="dcblock">
3 <indexterm id="IndexDcblock"><primary>dcblock</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Specialized Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dcblock</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>dcblock</refname>
11 <refpurpose>
12 A DC blocking filter.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Implements the DC blocking filter
20 <literallayout>
21 Y[i] = X[i] - X[i-1] + (igain * Y[i-1])
22 </literallayout>
23 </para>
24
25 <para>
26 Based on work by &nameperry;.
27 </para>
28 </refsect1>
29
30 <refsect1>
31 <title>Syntax</title>
32 <synopsis>ares <command>dcblock</command> ain [, igain]</synopsis>
33 </refsect1>
34
35 <refsect1>
36 <title>Initialization</title>
37 <para>
38 <emphasis>igain</emphasis> -- the gain of the filter, which defaults to 0.99
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Performance</title>
44 <para>
45 <emphasis>ain</emphasis> -- audio signal input
46 </para>
47 <note>
48 <para>The new <link linkend="dcblock2"><citetitle>dcblock2</citetitle></link> opcode is an improved method of removing DC from an audio signal.</para>
49 </note>
50 </refsect1>
51
52 <refsect1>
53 <title>Examples</title>
54 <para>
55 The result can be viewed in a graphical audio editor program like <emphasis>audacity</emphasis>. <emphasis>audacity</emphasis> is available for Linux, Windows, and the MacOS and may be downloaded from <ulink url="http://audacity.sourceforge.net/"><citetitle>http://audacity.sourceforge.net</citetitle></ulink>.
56 </para>
57 <para>
58 Here is an example of the dcblock opcode. It uses the file <ulink url="examples/dcblock.csd"><citetitle>dcblock.csd</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>.
59 <example>
60 <title>Example of the dcblock opcode.</title>
61 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
62 <xi:include href="examples-xml/dcblock.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
63 </example>
64
65 </para>
66 </refsect1>
67
68 <refsect1>
69 <title>See also</title>
70 <para><link linkend="SigmodSpeciali"><citetitle>Specialized Filters: High pass filters</citetitle></link></para>
71 </refsect1>
72
73 <refsect1>
74 <title>Credits</title>
75 <para>
76 <simplelist>
77 <member>Author: &namejohn;</member>
78 <member>University of Bath, Codemist Ltd.</member>
79 <member>Bath, UK</member>
80 </simplelist>
81 </para>
82 <para>New in Csound version 3.49</para>
83 <para>February 2003: Thanks to a note from Anders Andersson, corrected the formula.</para>
84 </refsect1>
85 </refentry>