Debian Codegraph @

opcodes/dumpk.xml

raw symbols SCIP
1
2 <refentry id="dumpk">
3 <indexterm id="IndexDumpk"><primary>dumpk</primary></indexterm>
4 <refentryinfo><title>Signal I/O:File I/O</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dumpk</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>dumpk</refname>
11 <refpurpose>
12 Periodically writes an orchestra control-signal value to an external file.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Periodically writes an orchestra control-signal value to a named external file in a specific format.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>dumpk</command> ksig, ifilname, iformat, iprd</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifilname</emphasis> -- character string (in double quotes, spaces permitted) denoting the external file name. May either be a full path name with target directory specified or a simple filename to be created within the current directory
32 </para>
33
34 <para>
35 <emphasis>iformat</emphasis> -- specifies the output data format:
36 <itemizedlist>
37 <listitem>
38 <para>1 = 8-bit signed char(high order 8 bits of a 16-bit integer</para>
39 </listitem>
40
41 <listitem>
42 <para>4 = 16-bit short integers</para>
43 </listitem>
44
45 <listitem>
46 <para>5 = 32-bit long integers</para>
47 </listitem>
48
49 <listitem>
50 <para>6 = 32-bit floats</para>
51 </listitem>
52
53 <listitem>
54 <para>7 = ASCII long integers</para>
55 </listitem>
56
57 <listitem>
58 <para>8 = ASCII floats (2 decimal places)</para>
59 </listitem>
60 </itemizedlist>
61 </para>
62
63 <para>
64 Note that A-law and U-law output are not available, and that all formats except the last two are binary. The output file contains no header information.
65 </para>
66
67 <para>
68 <emphasis>iprd</emphasis> -- the period of <emphasis>ksig</emphasis> output in seconds, rounded to the nearest orchestra control period. A value of 0 implies one control period (the enforced minimum), which will create an output file sampled at the orchestra control rate.
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>Performance</title>
74 <para>
75 <emphasis>ksig</emphasis> -- a control-rate signal
76 </para>
77
78 <para>
79 This opcode allows a generated control signal value to be saved in a named external file. The file contains no self-defining header information. But it contains a regularly sampled time series, suitable for later input or analysis. There may be any number of <emphasis>dumpk</emphasis> opcodes in an instrument or orchestra but each must write to a different file.
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>Examples</title>
85 <para>
86 Here is an example of the dumpk opcode. It uses the file <ulink
87 url="examples/dumpk.csd"><citetitle>dumpk.csd</citetitle></ulink>.
88 Note that the example must be run from a directory for which the
89 user has write access.
90 <example>
91 <title>Example of the dumpk opcode.</title>
92 <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>
93 <xi:include href="examples-xml/dumpk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
94 </example>
95 </para>
96 <para>
97 Here is another example of the dumpk opcode. It uses the file <ulink url="examples/dumpk-2.csd"><citetitle>dumpk-2.csd</citetitle></ulink>.
98 <example>
99 <title>Example 2 of the dumpk opcode.</title>
100 <xi:include href="examples-xml/dumpk-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
101 </example>
102 Its output should include lines like this:
103 <screen>
104 WARNING: Seeding from current time 683384022
105
106 i 1 time 1.00033: 463.64510
107 i 1 time 2.00000: 463.64510
108 i 1 time 3.00000: 483.14200
109 i 1 time 4.00000: 567.55973
110 i 1 time 5.00000: 576.37060
111 i 1 time 6.00000: 460.66550
112
113 i 2 time 6.00033: 463.64510
114 i 2 time 7.00000: 463.64510
115 i 2 time 8.00000: 483.14200
116 i 2 time 9.00000: 567.55970
117 i 2 time 10.00000: 576.37060
118 i 2 time 11.00000: 460.66550</screen>
119 </para>
120 </refsect1>
121 <!-- <refsect1>
122 <title>Examples</title>
123 <para>
124 <informalexample>
125 <programlisting>
126 knum <emphasis>=</emphasis> knum+1 ; at each k-period
127 ktemp <emphasis>tempest</emphasis> krms, .02, .1, 3, 2, 800, .005, 0, 60, 4, .1, .995 ;estimate the tempo
128 koct <emphasis>specptrk</emphasis> wsig, 6, .9, 0 ;and the pitch
129 <emphasis>dumpk3</emphasis> knum, ktemp, cpsoct(koct), &quot;what happened when&quot;, 8 0 ;&amp; save them
130 </programlisting>
131 </informalexample>
132 </para>
133 </refsect1>-->
134
135 <refsect1>
136 <title>See also</title>
137 <para><link linkend="SigioFileIO"><citetitle>File Input and Output</citetitle></link></para>
138 </refsect1>
139
140 <refsect1>
141 <title>Credits</title>
142 <para>By: &namejohn; and &namebarry;</para>
143 <para>1999 or earlier</para>
144 </refsect1>
145 </refentry>