<?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>soundout</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="DeprecatedTop.html" title="Deprecated Orchestra Opcodes and GEN Routines" /> <link rel="prev" href="push_f.html" title="push_f" /> <link rel="next" href="soundouts.html" title="soundouts" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">soundout</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="push_f.html">Prev</a> </td> <th width="60%" align="center">Deprecated Orchestra Opcodes and GEN Routines</th> <td width="20%" align="right"> <a accesskey="n" href="soundouts.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry"> <a id="soundout"></a> <div class="titlepage"></div> <a id="IndexSoundout" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">soundout</span> </h2> <p>soundout — Deprecated. Writes audio output to a disk file. </p> </div> <div class="refsect1"> <a id="idm281472813025992"></a> <h2>Description</h2> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p>The usage of <span class="emphasis"><em>soundout</em></span> is discouraged. Please use <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> instead.</p> </td> </tr> </table> </div> <p> Writes audio output to a disk file. </p> </div> <div class="refsect1"> <a id="idm281472812959384"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>soundout</strong></span> asig1, ifilcod [, iformat]</pre> </div> <div class="refsect1"> <a id="idm281472812957320"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ifilcod</em></span> -- integer or character-string denoting the destination soundfile name. An integer denotes the file soundin.filcod; a character-string (in double quotes, spaces permitted) gives the filename itself, optionally a full pathname. If not a full path, the named file is sought first in the current directory, then in that given by the environment variable <a class="link" href="CommandEnvironment.html" title="Csound Environment Variables"><em class="citetitle">SSDIR</em></a> (if defined) then by <a class="link" href="CommandEnvironment.html" title="Csound Environment Variables"><em class="citetitle">SFDIR</em></a>. See also <a class="link" href="GEN01.html" title="GEN01"><em class="citetitle">GEN01</em></a>. </p> <p> <span class="emphasis"><em>iformat</em></span> (optional, default=0) -- specifies the audio data file format: </p> <div class="itemizedlist"> <ul class="itemizedlist" style="list-style-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>2 = 8-bit A-law bytes</p> </li> <li class="listitem"> <p>3 = 8-bit U-law bytes</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> </ul> </div> <p> </p> <p> If <span class="emphasis"><em>iformat</em></span> = 0 it is taken from the soundfile header, and if no header from the Csound <a class="link" href="CommandFlags.html#FlagsMinusLowerO"><em class="citetitle">-o</em></a> command-line flag. The default value is 0. </p> </div> <div class="refsect1"> <a id="idm281472812944504"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>soundout</em></span> writes audio output to a disk file. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p>Use of <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> is recommended instead of <span class="emphasis"><em>soundout</em></span></p> </td> </tr> </table> </div> </div> <div class="refsect1"> <a id="idm281472812940808"></a> <h2>See Also</h2> <p> <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a>, <a class="link" href="out.html" title="out"><em class="citetitle">out</em></a>, <a class="link" href="outh.html" title="outh"><em class="citetitle">outh</em></a>, <a class="link" href="outo.html" title="outo"><em class="citetitle">outo</em></a>, <a class="link" href="outq.html" title="outq"><em class="citetitle">outq</em></a>, <a class="link" href="outq1.html" title="outq1"><em class="citetitle">outq1</em></a>, <a class="link" href="outq2.html" title="outq2"><em class="citetitle">outq2</em></a>, <a class="link" href="outq3.html" title="outq3"><em class="citetitle">outq3</em></a>, <a class="link" href="outq4.html" title="outq4"><em class="citetitle">outq4</em></a>, <a class="link" href="outs.html" title="outs"><em class="citetitle">outs</em></a>, <a class="link" href="outs1.html" title="outs1"><em class="citetitle">outs1</em></a>, <a class="link" href="outs2.html" title="outs2"><em class="citetitle">outs2</em></a> <a class="link" href="soundouts.html" title="soundouts"><em class="citetitle">soundouts</em></a> </p> </div> <div class="refsect1"> <a id="idm281472812927272"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Barry L. Vercoe, Matt Ingalls/Mike Berry</td> </tr> <tr> <td>MIT, Mills College</td> </tr> <tr> <td>1993-1997</td> </tr> </table> <p> </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="push_f.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="DeprecatedTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="soundouts.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">push_f </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> soundouts</td> </tr> </table> </div> </body> </html>