Sophie

Sophie

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

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>m Statement (Mark 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="i.html" title="i Statement (Instrument or Note Statement)" />
    <link rel="next" href="n.html" title="n Statement" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">m Statement (Mark Statement)</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="i.html">Prev</a> </td>
          <th width="60%" align="center">Score Statements and GEN Routines</th>
          <td width="20%" align="right"> <a accesskey="n" href="n.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="m Statement (Mark Statement)">
      <a id="m"></a>
      <div class="titlepage"></div>
      <a id="IndexMStatement" class="indexterm"></a>
      <a id="IndexMarkStatement" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">m Statement (Mark Statement)</span>
        </h2>
        <p>m — 
      Sets a named mark in the score.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp76688096"></a>
        <h2>Description</h2>
        <p>
      Sets a named mark in the score, which can be used by an <a class="link" href="n.html" title="n Statement"><em class="citetitle">n statement</em></a>.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp76723208"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>m</strong></span> p1</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp76724208"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>p1</em></span> -- Name of mark.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp76725032"></a>
        <h2>Performance</h2>
        <p>
      This can be helpful in setting a up verse and chorus structure in the score. Names may contain letters and numerals.
    </p>
        <p>
      For example, the following score:
    </p>
        <pre class="programlisting">
<span class="stamnt">m</span> foo
<span class="stamnt">i</span>1 0 1
<span class="stamnt">i</span>1 1 1.5
<span class="stamnt">i</span>1 2.5 2
<span class="stamnt">s</span>
<span class="stamnt">i</span>1 0 10
<span class="stamnt">s</span>
<span class="stamnt">n</span> foo
<span class="stamnt">e</span>
</pre>
        <p>
      Will be passed from the preprocessor to Csound as:
    </p>
        <pre class="programlisting">
<span class="stamnt">i</span>1 0 1
<span class="stamnt">i</span>1 1 1.5
<span class="stamnt">i</span>1 2.5 2
<span class="stamnt">s</span>
<span class="stamnt">i</span>1 0 10
<span class="stamnt">s</span>
<span class="comment">;; this is named section repeated</span>
<span class="stamnt">i</span>1 0 1
<span class="stamnt">i</span>1 1 1.5
<span class="stamnt">i</span>1 2.5 2
<span class="stamnt">s</span>
<span class="comment">;; end of named section</span>
<span class="stamnt">e</span>
</pre>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp76734440"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the m statement. It uses the file <a class="ulink" href="examples/m.csd" target="_top"><em class="citetitle">m.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp76735408"></a>
          <p class="title">
            <strong>Example 1027. Example of the m 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 m.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">m</span> foo			<span class="comment">;mark section</span>
<span class="stamnt">i</span> 1 0   1 110
<span class="stamnt">i</span> 1 1.5 1 220
<span class="stamnt">i</span> 1 3   1 440
<span class="stamnt">i</span> 1 4.5 1 880
<span class="stamnt">s</span>			<span class="comment">;second section</span>
<span class="stamnt">i</span> 1 0 2 110
<span class="stamnt">i</span> 1 2 2 220
<span class="stamnt">s</span>
<span class="stamnt">n</span> foo			<span class="comment">;repeat marked section</span>
<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 class="refsect1" title="Credits">
        <a id="idp76736408"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: John ffitch</td>
          </tr>
          <tr>
            <td>University of Bath/Codemist Ltd.</td>
          </tr>
          <tr>
            <td>Bath, UK</td>
          </tr>
          <tr>
            <td>April, 1998</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound version 3.48</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="i.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="n.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">i Statement (Instrument or Note Statement) </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> n Statement</td>
        </tr>
      </table>
    </div>
  </body>
</html>