| 1 | |
| 2 | <section id="OrchIblock"> |
| 3 | <title>Instrument and Opcode Block Statements</title> |
| 4 | |
| 5 | <para> |
| 6 | An instrument block is comprised of <emphasis>ordinary statements</emphasis> that set values, control the logical flow, or invoke the various signal processing subroutines that lead to audio output. Statements that define an instrument block are: |
| 7 | <itemizedlist> |
| 8 | <listitem> |
| 9 | <para><link linkend="instr"><citetitle>instr</citetitle></link></para> |
| 10 | </listitem> |
| 11 | <listitem> |
| 12 | <para><link linkend="endin"><citetitle>endin</citetitle></link></para> |
| 13 | </listitem> |
| 14 | </itemizedlist> |
| 15 | An instrument block looks like this: |
| 16 | <programlisting> |
| 17 | <emphasis role="oblock">instr</emphasis> 1 <emphasis role="comment">;A simple sine wave oscillator</emphasis> |
| 18 | aout <emphasis role="opc">oscils</emphasis> 10000, 440, 0 |
| 19 | out <emphasis role="opc">aout</emphasis> |
| 20 | <emphasis role="oblock">endin</emphasis></programlisting> |
| 21 | </para> |
| 22 | |
| 23 | <para> |
| 24 | Statements that define a user defined opcode (UDO) block are |
| 25 | <itemizedlist> |
| 26 | <listitem> |
| 27 | <para><link linkend="opcode"><citetitle>opcode</citetitle></link></para> |
| 28 | </listitem> |
| 29 | <listitem> |
| 30 | <para><link linkend="endop"><citetitle>endop</citetitle></link></para> |
| 31 | </listitem> |
| 32 | </itemizedlist> |
| 33 | See the <link linkend="OrchUDO"><citetitle>UDO</citetitle></link> section for more information. |
| 34 | </para> |
| 35 | |
| 36 | </section> |