Debian Codegraph @

preface/toot2XO.xml

raw symbols SCIP
1 <section id="PrefaceToot2">
2 <title>Toot 2</title>
3 <para>
4 The first instrument was not interesting because it could play only one note at one amplitude level. We can make things more interesting by allowing the pitch and amplitude to be defined by parameters in the score. Each column in the score constitutes a parameter field, numbered from the left. The first three parameter fields of the <link linkend="i"><citetitle>i statement</citetitle></link> have a reserved function:
5 </para>
6 <para><emphasis>p1</emphasis> = instrument number</para>
7 <para><emphasis>p2</emphasis> = start time</para>
8 <para><emphasis>p3</emphasis> = duration</para>
9 <para>
10 All other parameter fields are determined by the way the sound designer defines his instrument. In the instrument below, the oscillator's amplitude argument is replaced by <emphasis>p4</emphasis> and the frequency argument by <emphasis>p5</emphasis>. Now we can change these values at i-time, i.e. with each note in the score. The csd file <ulink url="examples/toot2.csd"><citetitle>toot2.csd</citetitle></ulink> now looks like:
11 </para>
12
13 <para>
14 <xi:include href="examples-xml/toot2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
15 </para>
16 </section>