2
<emphasis role="csdtag"><CsoundSynthesizer></emphasis>
3
<emphasis role="csdtag"><CsOptions></emphasis>
4
<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
5
<emphasis role="comment">; Audio out Audio in</emphasis>
6
-odac -iadc <emphasis role="comment">;;;RT audio I/O</emphasis>
7
<emphasis role="comment">; For Non-realtime ouput leave only the line below:</emphasis>
8
<emphasis role="comment">; -o gen01.wav -W ;;; for file output any platform</emphasis>
9
<emphasis role="csdtag"></CsOptions></emphasis>
10
<emphasis role="csdtag"><CsInstruments></emphasis>
12
<emphasis role="comment">; Initialize the global variables.</emphasis>
13
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
14
<emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 4410
15
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10
16
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 1
18
<emphasis role="comment">; Instrument #1.</emphasis>
19
<emphasis role="oblock">instr</emphasis> 1
20
kamp <emphasis role="op">=</emphasis> 30000
21
ifn <emphasis role="op">=</emphasis> 2
22
ibas <emphasis role="op">=</emphasis> 1
24
<emphasis role="comment">; Play the audio sample stored in Table #1.</emphasis>
25
k1 <emphasis role="opc">oscil</emphasis> 1, 10, 1
26
a1 <emphasis role="opc">oscil</emphasis> kamp<emphasis role="op">*</emphasis>k1, 440, ifn
27
<emphasis role="opc">out</emphasis> a1
28
<emphasis role="oblock">endin</emphasis>
31
<emphasis role="csdtag"></CsInstruments></emphasis>
32
<emphasis role="csdtag"><CsScore></emphasis>
34
<emphasis role="comment">; Table #1: read an audio file (using GEN01).</emphasis>
35
<emphasis role="stamnt">f</emphasis> 1 0 131072 "tanh" 0.1 10 0
36
<emphasis role="stamnt">f</emphasis> 2 0 8192 10 1
38
<emphasis role="comment">; Play Instrument #1 for 2 seconds.</emphasis>
39
<emphasis role="stamnt">i</emphasis> 1 0 2
40
<emphasis role="stamnt">e</emphasis>
43
<emphasis role="csdtag"></CsScore></emphasis>
44
<emphasis role="csdtag"></CsoundSynthesizer></emphasis>
b'\\ No newline at end of file'