Debian Codegraph @

opcodes/filepeak.xml

raw symbols SCIP
1
2 <refentry id="filepeak">
3 <indexterm id="IndexFilepeak"><primary>filepeak</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Soundfile Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>filepeak</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>filepeak</refname>
11 <refpurpose>
12 Returns the peak absolute value of a sound file.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Returns the peak absolute value of a sound file.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ir <command>filepeak</command> ifilcod [, ichnl]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifilcod</emphasis> -- sound file to be queried
32 </para>
33
34 <para>
35 <emphasis>ichnl</emphasis> (optional, default=0) -- channel to
36 be used in calculating the peak value. Default is 0.
37 <itemizedlist>
38 <listitem>
39 <para><emphasis>ichnl</emphasis> = 0 returns peak value of all channels</para>
40 </listitem>
41
42 <listitem>
43 <para><emphasis>ichnl</emphasis> &gt; 0 returns peak value of <emphasis>ichnl</emphasis></para>
44 </listitem>
45 </itemizedlist>
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>Performance</title>
51 <para>
52 <emphasis>filepeak</emphasis> returns the peak absolute value of the sound file <emphasis>ifilcod</emphasis>.
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the filepeak opcode. It uses the file <ulink url="examples/filepeak.csd"><citetitle>filepeak.csd</citetitle></ulink>,
60 and <ulink url="examples/Church.wav"><citetitle>Church.wav</citetitle></ulink>.
61
62 <example>
63 <title>Example of the filepeak opcode.</title>
64
65 <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>
66 <xi:include href="examples-xml/filepeak.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68
69 The <emphasis>filepeak</emphasis>'s output should include lines like this:
70 <screen>
71 Peak value in file 'Church.wav' is 0.909363 (-0.825 dB).
72 Peak value in file 'Church_norm.wav' is 0.501190 (-6.000 dB).
73 </screen>
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>See also</title>
79 <para><link linkend="SigioQueries"><citetitle>Sound File Queries</citetitle></link></para>
80 </refsect1>
81
82 <refsect1>
83 <title>Credits</title>
84 <para>
85 <simplelist>
86 <member>Author: &namematt;</member>
87 <member>July 1999</member>
88 </simplelist>
89 </para>
90
91 <para>New in Csound version 3.57</para>
92 </refsect1>
93 </refentry>