Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 2906

csound-doc-5.19.01-10.mga5.noarch.rpm

<?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>x Statement</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="ScoregensTop.html" title="Score Statements and GEN Routines" />
    <link rel="prev" href="v.html" title="v Statement" />
    <link rel="next" href="leftbrace.html" title="{ Statement" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">x Statement</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="v.html">Prev</a> </td>
          <th width="60%" align="center">Score Statements and GEN Routines</th>
          <td width="20%" align="right"> <a accesskey="n" href="leftbrace.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="x Statement">
      <a id="x"></a>
      <div class="titlepage"></div>
      <a id="IndexXStatement" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">x Statement</span>
        </h2>
        <p>x — 
      Skip the rest of the current section.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp76896784"></a>
        <h2>Description</h2>
        <p>
      This statement may be used to skip the rest of the current section.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp76897464"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>x</strong></span> anything</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp76884432"></a>
        <h2>Initialization</h2>
        <p>
      All pfields are ignored.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp76885032"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the x statement. It uses the file <a class="ulink" href="examples/x.csd" target="_top"><em class="citetitle">x.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp76886000"></a>
          <p class="title">
            <strong>Example 1033. Example of the x statement.</strong>
          </p>
          <div class="example-contents">
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac     <span class="comment">;;;realtime audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if RT audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o x.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 2
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1

<span class="oblock">instr</span> 1

aenv <span class="opc">expseg</span> .01, p3<span class="op">*</span>0.25, 1, p3<span class="op">*</span>0.75, 0.01
asig <span class="opc">poscil3</span> .8<span class="op">*</span>aenv, p4, 1
     <span class="opc">outs</span> asig, asig

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="stamnt">f</span> 1 0 16384 10 1	<span class="comment">;sine wave</span>

<span class="stamnt">s</span>			<span class="comment">;first section</span>
<span class="stamnt">i</span> 1 0 2 110
<span class="stamnt">i</span> 1 3 2 220
<span class="stamnt">i</span> 1 6 2 440
<span class="stamnt">i</span> 1 9 2 880
<span class="stamnt">s</span>			<span class="comment">;second section</span>
<span class="stamnt">x</span>			<span class="comment">;skip the rest</span>
<span class="stamnt">i</span> 1 0 2 110		<span class="comment">;of this section</span>
<span class="stamnt">i</span> 1 3 2 220
<span class="stamnt">i</span> 1 6 2 440
<span class="stamnt">i</span> 1 9 2 880
<span class="stamnt">s</span>			<span class="comment">;but continue with this one</span>
<span class="stamnt">i</span> 1 0 2 880
<span class="stamnt">i</span> 1 3 2 440
<span class="stamnt">i</span> 1 6 2 220
<span class="stamnt">i</span> 1 9 2 110
<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="v.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ScoregensTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="leftbrace.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">v Statement </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> { Statement</td>
        </tr>
      </table>
    </div>
  </body>
</html>