Debian Codegraph @

opcodes/dcblock2.xml

raw symbols SCIP
1
2 <refentry id="dcblock2">
3 <indexterm id="IndexDcblock2"><primary>dcblock2</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Specialized Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dcblock2</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>dcblock2</refname>
11 <refpurpose>
12 A DC blocking filter.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Implements a DC blocking filter with improved DC attenuation.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>dcblock2</command> ain [, iorder] [, iskip]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>iorder</emphasis> -- filter order, minimum 4th order, defaults to 128.
32 </para>
33 <para>
34 <emphasis>iskip</emphasis> -- set to 1 to skip initialization (defaults to 0).
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Performance</title>
40 <para>
41 <emphasis>ares</emphasis> -- filered audio signal
42 </para>
43 <para>
44 <emphasis>ain</emphasis> -- input audio signal
45 </para>
46 <note>
47 <para>Using a value for <emphasis>iorder</emphasis> less that <link linkend="ksmps"><citetitle>ksmps</citetitle></link> will not reduce DC offset efficiently.</para>
48 </note>
49 </refsect1>
50
51 <refsect1>
52 <title>Examples</title>
53 <para>
54 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>.
55 </para>
56 <para>
57 Here is an example of the dcblock2 opcode. It uses the file <ulink url="examples/dcblock2.csd"><citetitle>dcblock2.csd</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>.
58 <example>
59 <title>Example of the dcblock2 opcode.</title>
60 <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>
61 <xi:include href="examples-xml/dcblock2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="SigmodSpeciali"><citetitle>Specialized Filters: High pass filters</citetitle></link></para>
69 </refsect1>
70
71 <refsect1>
72 <title>Credits</title>
73 <para>By: &namevictor;</para>
74 <para>New in Csound version 5.09</para>
75 </refsect1>
76 </refentry>