Debian Codegraph @

utility/sndinfo.xml

raw symbols SCIP
1
2 <refentry id="sndinfo">
3 <refentryinfo><title>Utilities</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>sndinfo</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>sndinfo</refname>
10 <refpurpose>
11 Displays information about a soundfile.
12 <indexterm id="IndexSndinfo"><primary>sndinfo</primary></indexterm>
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Get basic information about one or more soundfiles.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>csound -U sndinfo</command> [options] soundfilenames ...</synopsis>
26
27 <synopsis><command>sndinfo</command> [options] soundfilenames ...</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>sndinfo</emphasis> will attempt to find each named
34 file, open it for reading, read in the soundfile header, then
35 print a report on the basic information it finds. The order of
36 search across soundfile directories is as described <link linkend="UtilityDir">above</link>. If the
37 file is of type AIFF, some further details are listed first.
38 </para>
39 <para>
40 There are two option types:
41 <orderedlist>
42 <listitem>
43 <para><emphasis>-i</emphasis> or <emphasis>-i1</emphasis> will print instrument information, which includes looping. The option continues until a <emphasis>-i0</emphasis> option.</para>
44 </listitem>
45 <listitem>
46 <para>The other option is <emphasis>-b</emphasis> which prints the broadcast information for WAV files. It can similarly be negated with <emphasis>-b0</emphasis>.</para>
47 </listitem>
48 </orderedlist>
49 </para>
50
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 <!-- <informalexample> -->
57 <programlisting>
58 <emphasis>csound -U sndinfo</emphasis> test Bosendorfer/&quot;BOSEN mf A0 st&quot; foo foo2</programlisting>
59 <!-- </informalexample> -->
60
61 where the environment variables SFDIR = /u/bv/sound, and SSDIR = /so/bv/Samples, might produce the following:
62
63 <!-- <informalexample> -->
64 <programlisting>
65 util SNDINFO:
66 /u/bv/sound/test:
67 srate 22050, monaural, 16 bit shorts, 1.10 seconds
68 headersiz 1024, datasiz 48500 (24250 sample frames)
69
70 /so/bv/Samples/Bosendorfer/BOSEN mf A0 st: AIFF, 197586 stereo samples, base Frq 261.6 (MIDI 60), sustnLp: mode 1, 121642 to 197454, relesLp: mode 0
71 AIFF soundfile, looping with modes 1, 0
72 srate 44100, stereo, 16 bit shorts, 4.48 seconds
73
74 headersiz 402, datasiz 790344 (197586 sample frames)
75
76 /u/bv/sound/foo:
77 no recognizable soundfile header
78
79 /u/bv/sound/foo2:
80 couldn't find</programlisting>
81 <!-- </informalexample> -->
82 <para>
83 Here is an example of the sndinfo utility. It uses the file <ulink url="examples/sndinfo.csd"><citetitle>sndinfo.csd</citetitle></ulink>.
84 <example>
85 <title>Example of the sndinfo utility.</title>
86 <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>
87 <xi:include href="examples-xml/sndinfo.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
88 </example>
89 </para>
90 </para>
91 </refsect1>
92 </refentry>