| 1 | |
| 2 | <chapter id="CommandTop"> |
| 3 | <title>The Csound Command</title> |
| 4 | |
| 5 | <para> |
| 6 | The command <emphasis>csound</emphasis> is a basic frontend to the system that can be used to generate a sound output from an <link linkend="OrchTop"><citetitle>orchestra</citetitle></link> file and a <link linkend="ScoreTop"><citetitle>score</citetitle></link> file (or a unified <link linkend="CommandUnifile"><citetitle>csd file</citetitle></link>). It is designed to be called from a terminal or DOS window. In addition to it, there are other <link linkend="OviewFrontEnds"><citetitle>front-ends</citetitle></link>, which might be simpler to use. 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 the CSOUND6RC <link linkend="CommandEnvironment"><citetitle>environment variable</citetitle></link>, or .csound6rc file in the HOME directory</para></listitem> |
| 18 | <listitem><para>A <link linkend="CommandUnifileParFile"><citetitle>.csound6rc</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>Passed on the Csound <link linkend="CommandDesc"><citetitle>command</citetitle></link> line</para></listitem> |
| 21 | </orderedlist> |
| 22 | </para> |
| 23 | |
| 24 | <para> |
| 25 | The later options in the list will override any earlier ones. |
| 26 | As of version 5.01 of Csound, 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 defined in the orchestra header. |
| 30 | </para> |
| 31 | </section> |
| 32 | |
| 33 | &commanddesc; |
| 34 | &commandflags; |
| 35 | &commandflagscategory; |
| 36 | &commandenvironment; |
| 37 | &commandunifile; |
| 38 | &commandpreproc; |
| 39 | |
| 40 | </chapter> |