summaryrefslogtreecommitdiff
path: root/opcodes/mp3len.xml
blob: aee9a5a4bf27da82bd9e1156fea0b629e1d6fde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<refentry id="mp3len">
<indexterm id="IndexMp3len"><primary>mp3len</primary></indexterm>
  <refentryinfo><title>Signal I/O:Soundfile Queries</title></refentryinfo>
  <refmeta>
    <refentrytitle>mp3len</refentrytitle>
  </refmeta>


 
  <refnamediv>
    <refname>mp3len</refname>
    <refpurpose>
      Returns the length of an MP3 sound file.
          </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Returns the length of an MP3 sound file.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ir <command>mp3len</command> ifilcod</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ifilcod</emphasis> -- sound file to be queried
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>mp3len</emphasis> returns the length of the sound file <emphasis>ifilcod</emphasis> in seconds.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the mp3len opcode. It uses the file <ulink url="examples/mp3len.csd"><citetitle>mp3len.csd</citetitle></ulink>.

      <example>
        <title>Example of the mp3len opcode.</title>
        <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>
          <xi:include href="examples-xml/mp3len.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="mp3in"><citetitle>mp3in</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn;</member>
        <member>Feb 2011</member>
      </simplelist>
    </para>

    <para>New in Csound version 5.14</para>
  </refsect1>
</refentry>