summaryrefslogtreecommitdiff
path: root/opcodes/dumpk.xml
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/dumpk.xml')
-rw-r--r--opcodes/dumpk.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/opcodes/dumpk.xml b/opcodes/dumpk.xml
index b4d3c94..40537df 100644
--- a/opcodes/dumpk.xml
+++ b/opcodes/dumpk.xml
@@ -79,6 +79,7 @@
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.
</para>
</refsect1>
+
<refsect1>
<title>Examples</title>
<para>
@@ -89,6 +90,30 @@
<xi:include href="examples-xml/dumpk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
+ <para>
+ Here is another example of the dumpk opcode. It uses the file <ulink url="examples/dumpk-2.csd"><citetitle>dumpk-2.csd</citetitle></ulink>.
+ <example>
+ <title>Example 2 of the dumpk opcode.</title>
+ <xi:include href="examples-xml/dumpk-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+ </example>
+ Its output should include lines like this:
+ <screen>
+WARNING: Seeding from current time 683384022
+
+ i 1 time 1.00033: 463.64510
+ i 1 time 2.00000: 463.64510
+ i 1 time 3.00000: 483.14200
+ i 1 time 4.00000: 567.55973
+ i 1 time 5.00000: 576.37060
+ i 1 time 6.00000: 460.66550
+
+ i 2 time 6.00033: 463.64510
+ i 2 time 7.00000: 463.64510
+ i 2 time 8.00000: 483.14200
+ i 2 time 9.00000: 567.55970
+ i 2 time 10.00000: 576.37060
+ i 2 time 11.00000: 460.66550</screen>
+ </para>
</refsect1>
<!-- <refsect1>
<title>Examples</title>