<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>dumpk2</title> <link rel="stylesheet" href="csound.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="dumpk.html" title="dumpk" /> <link rel="next" href="dumpk3.html" title="dumpk3" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">dumpk2</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="dumpk.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="dumpk3.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="dumpk2"> <a id="dumpk2"></a> <div class="titlepage"></div> <a id="IndexDumpk2" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">dumpk2</span> </h2> <p>dumpk2 — Periodically writes two orchestra control-signal values to an external file. </p> </div> <div class="refsect1" title="Description"> <a id="id2831451"></a> <h2>Description</h2> <p> Periodically writes two orchestra control-signal values to a named external file in a specific format. </p> </div> <div class="refsect1" title="Syntax"> <a id="id2831463"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>dumpk2</strong></span> ksig1, ksig2, ifilname, iformat, iprd</pre> </div> <div class="refsect1" title="Initialization"> <a id="id2832274"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ifilname</em></span> -- 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 </p> <p> <span class="emphasis"><em>iformat</em></span> -- specifies the output data format: </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p>1 = 8-bit signed char(high order 8 bits of a 16-bit integer</p> </li> <li class="listitem"> <p>4 = 16-bit short integers</p> </li> <li class="listitem"> <p>5 = 32-bit long integers</p> </li> <li class="listitem"> <p>6 = 32-bit floats</p> </li> <li class="listitem"> <p>7 = ASCII long integers</p> </li> <li class="listitem"> <p>8 = ASCII floats (2 decimal places)</p> </li> </ul> </div> <p> </p> <p> 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. </p> <p> <span class="emphasis"><em>iprd</em></span> -- the period of <span class="emphasis"><em>ksig</em></span> 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. </p> </div> <div class="refsect1" title="Performance"> <a id="id2832364"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>ksig1, ksig2</em></span> -- control-rate signals. </p> <p> This opcode allows two generated control signal values 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 <span class="emphasis"><em>dumpk2</em></span> opcodes in an instrument or orchestra but each must write to a different file. </p> </div> <div class="refsect1" title="Examples"> <a id="id2832391"></a> <h2>Examples</h2> <p> See the example for <a class="link" href="dumpk.html" title="dumpk"><em class="citetitle">dumpk</em></a>. The only difference between <a class="link" href="dumpk.html" title="dumpk"><em class="citetitle">dumpk</em></a> and <span class="emphasis"><em>dumpk2</em></span> is that <span class="emphasis"><em>dumpk2</em></span> can write two values at a time from the file. </p> </div> <div class="refsect1" title="See Also"> <a id="id2832427"></a> <h2>See Also</h2> <p> <a class="link" href="dumpk.html" title="dumpk"><em class="citetitle">dumpk</em></a>, <a class="link" href="dumpk3.html" title="dumpk3"><em class="citetitle">dumpk3</em></a>, <a class="link" href="dumpk4.html" title="dumpk4"><em class="citetitle">dumpk4</em></a>, <a class="link" href="readk.html" title="readk"><em class="citetitle">readk</em></a>, <a class="link" href="readk2.html" title="readk2"><em class="citetitle">readk2</em></a>, <a class="link" href="readk3.html" title="readk3"><em class="citetitle">readk3</em></a>, <a class="link" href="readk4.html" title="readk4"><em class="citetitle">readk4</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="id2832503"></a> <h2>Credits</h2> <p>By: John ffitch and Barry Vercoe</p> <p>1999 or earlier</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="dumpk.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="dumpk3.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">dumpk </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> dumpk3</td> </tr> </table> </div> </body> </html>