| 1 |
|
| 2 |
<chapter id="CommandTop"> |
| 3 |
<title>The Csound Command</title> |
| 4 |
|
| 5 |
<para> |
| 6 |
<emphasis>Csound</emphasis> is a command to generate a sound output from an <link linkend="OrchTop"><citetitle>orchestra</citetitle></link> and <link linkend="ScoreTop"><citetitle>score</citetitle></link> files (or a unified <link linkend="CommandUnifile"><citetitle>csd file</citetitle></link>). It is designed to be called from a terminal or DOS window, but can be called from an easier to use front-end. The score file can be in one of many different formats, according to user preference. Translation, sorting, and formatting into orchestra-readable numeric text is handled by various preprocessors; all or part of the score is then sent on to the orchestra. Orchestra performance is influenced by <link linkend="CommandFlagsCategory"><citetitle>command flags</citetitle></link>, which set the level of displays and console reports, specify I/0 filenames and sample formats, and declare the nature of real-time sensing and control. |
| 7 |
</para> |
| 8 |
|
| 9 |
<section id="CommandOrder"> |
| 10 |
<title>Order of Precedence</title> |
| 11 |
|
| 12 |
<para> |
| 13 |
There are five places where options for Csound performance may be set. They are processed in the following order: |
| 14 |
|
| 15 |
<orderedlist> |
| 16 |
<listitem><para>Csound's own defaults</para></listitem> |
| 17 |
<listitem><para>File defined by CSOUNDRC <link linkend="CommandEnvironment"><citetitle>environment variable</citetitle></link>, or .csoundrc file in the HOME directory</para></listitem> |
| 18 |
<listitem><para><link linkend="CommandUnifileParFile"><citetitle>.csoundrc</citetitle></link> file in the current directory</para></listitem> |
| 19 |
<listitem><para><CsOptions> tag in a <link linkend="CommandUnifile"><citetitle>.csd file</citetitle></link></para></listitem> |
| 20 |
<listitem><para>Csound <link linkend="CommandDesc"><citetitle>command</citetitle></link> line</para></listitem> |
| 21 |
</orderedlist> |
| 22 |
</para> |
| 23 |
|
| 24 |
<para> |
| 25 |
The lower options in the list will override any earlier ones. |
| 26 |
As of version 5.01, sample and control rate override flags |
| 27 |
(<link linkend="FlagsMinusLowerR"><citetitle>-r</citetitle></link> and |
| 28 |
<link linkend="FlagsMinusLowerK"><citetitle>-k</citetitle></link>) |
| 29 |
specified anywhere override sr, kr, and ksmps in the orchestra header. |
| 30 |
</para> |
| 31 |
</section> |
| 32 |
|
| 33 |
&commanddesc; |
| 34 |
&commandflags; |
| 35 |
&commandflagscategory; |
| 36 |
&commandenvironment; |
| 37 |
&commandunifile; |
| 38 |
|
| 39 |
|
| 40 |
</chapter> |