Debian Codegraph @

utility/sdif2ad.xml

raw symbols SCIP
1
2 <refentry id="sdif2ad">
3 <refentryinfo><title>Utilities</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>sdif2ad</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>sdif2ad</refname>
10 <refpurpose>
11 Converts SDIF files to files usable by adsyn.
12 <indexterm id="IndexSdif2ad"><primary>sdif2ad</primary></indexterm>
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Convert files Sound Description Interchange Format (SDIF) to the
20 format usable by Csound's <emphasis>adsyn</emphasis> opcode. As of
21 Csound version 4.10, <emphasis>sdif2ad</emphasis> was available
22 only as a standalone program for Windows console and DOS.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <!-- <synopsis><command>csound -U sdif2ad</command> [flags] infilename outfilename</synopsis> -->
29 <synopsis><command>sdif2ad</command> [flags] infilename outfilename</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 Flags:
36 <itemizedlist>
37 <listitem><para><emphasis>-s</emphasis>N -- apply amplitude
38 scale factor N</para></listitem>
39 <listitem><para><emphasis>-p</emphasis>N -- keep only the
40 first N partials. Limited to 1024 partials. The source partial
41 track indices are used directly to select internal storage. As
42 these can be arbitrary values, the maximum of 1024 partials may
43 not be realized in all cases.</para></listitem>
44 <listitem><para><emphasis>-r</emphasis> -- byte-reverse output
45 file data. The byte-reverse option is there to facilitate
46 transfer across platforms, as Csound's <link
47 linkend="HetroFileFormat"><citetitle>adsyn</citetitle></link> file
48 format is not portable.</para></listitem>
49 </itemizedlist>
50 </para>
51
52 <para>
53 If the filename passed to <link
54 linkend="hetro"><citetitle>hetro</citetitle></link> has the
55 extension <quote>.sdif</quote>, data will be written in SDIF
56 format as 1TRC frames of additive synthesis data. The utility
57 program <emphasis>sdif2ad</emphasis> can be used to convert any
58 SDIF file containing a stream of 1TRC data to the Csound <link
59 linkend="HetroFileFormat"><citetitle>adsyn</citetitle></link>
60 format. <emphasis>sdif2ad</emphasis> allows the user to limit the
61 number of partials retained, and to apply an amplitude scaling
62 factor. This is often necessary, as the SDIF specification does
63 not, as of the release of <emphasis>sdif2ad</emphasis>, require
64 amplitudes to be within a particular
65 range. <emphasis>sdif2ad</emphasis> reports information about the
66 file to the console, including the frequency range.
67 </para>
68
69 <para>
70 The main advantages of SDIF over the <emphasis>adsyn</emphasis>
71 format, for Csound users, is that SDIF files are fully portable
72 across platforms (data is <quote>big-endian</quote>), and do not
73 have the duration limit of 32.76 seconds imposed by the 16 bit
74 <emphasis>adsyn</emphasis> format. This limit is necessarily
75 imposed by <emphasis>sdif2ad</emphasis>. Eventually, SDIF reading
76 will be incorporated directly into <emphasis>adsyn</emphasis>,
77 thus enabling files of any length (subject to system memory
78 limits) to be analysed and processed.
79 </para>
80
81 <para>
82 Users should remember that the SDIF formats are still under
83 development. While the 1TRC format is now fairly well established,
84 it can still change.
85 </para>
86
87 <para>
88 For detailed information on the Sound Description Interchange
89 Format, refer to the CNMAT website:
90
91 <ulink
92 url="http://cnmat.CNMAT.Berkeley.EDU/SDIF"><citetitle>http://cnmat.CNMAT.Berkeley.EDU/SDIF</citetitle></ulink>
93 </para>
94
95 <para>
96 Some other SDIF resources (including a viewer) are available via
97 the NC_DREAM website:
98
99 <ulink
100 url="http://www.bath.ac.uk/~masjpf/NCD/dreamhome.html"><citetitle>http://www.bath.ac.uk/~masjpf/NCD/dreamhome.html</citetitle></ulink>
101 </para>
102 </refsect1>
103
104 <refsect1>
105 <title>Credits</title>
106 <para>Author: Richard Dobson</para>
107 <para>Somerset, England</para>
108 <para>August, 2000</para>
109 <para>New in Csound version 4.08</para>
110 </refsect1>
111 </refentry>