1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<programlisting>
<emphasis role="csdtag"><CsoundSynthesizer></emphasis>
<emphasis role="csdtag"><CsOptions></emphasis>
<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
-odac <emphasis role="comment">;;;realtime audio out</emphasis>
<emphasis role="comment">;-iadc ;;;uncomment -iadc if realtime audio input is needed too</emphasis>
<emphasis role="comment">; For Non-realtime ouput leave only the line below:</emphasis>
<emphasis role="comment">; -o hsboscil.wav -W ;;; for file output any platform</emphasis>
<emphasis role="csdtag"></CsOptions></emphasis>
<emphasis role="csdtag"><CsInstruments></emphasis>
<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 32
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
<emphasis role="ohdr">0dbfs</emphasis> <emphasis role="op">=</emphasis> 1
<emphasis role="comment">; synth waveform</emphasis>
giwave <emphasis role="ohdr">ftgen</emphasis> 1, 0, 1024, 10, 1, 1, 1, 1
<emphasis role="comment">; blending window</emphasis>
giblend <emphasis role="ohdr">ftgen</emphasis> 2, 0, 1024, <emphasis role="op">-</emphasis>19, 1, 0.5, 270, 0.5
<emphasis role="oblock">instr</emphasis> 1 <emphasis role="comment">; produces Risset's glissando.</emphasis>
kamp <emphasis role="op">=</emphasis> .4
kbrite <emphasis role="op">=</emphasis> 0.3
ibasfreq <emphasis role="op">=</emphasis> 200
ioctcnt <emphasis role="op">=</emphasis> 5
<emphasis role="comment">; Change ktone linearly from 0 to 1, </emphasis>
<emphasis role="comment">; over the period defined by p3.</emphasis>
ktone <emphasis role="opc">line</emphasis> 0, p3, 1
asig <emphasis role="opc">hsboscil</emphasis> kamp, ktone, kbrite, ibasfreq, giwave, giblend, ioctcnt
<emphasis role="opc">outs</emphasis> asig, asig
<emphasis role="oblock">endin</emphasis>
<emphasis role="csdtag"></CsInstruments></emphasis>
<emphasis role="csdtag"><CsScore></emphasis>
<emphasis role="stamnt">i</emphasis> 1 0 10
<emphasis role="stamnt">e</emphasis>
<emphasis role="csdtag"></CsScore></emphasis>
<emphasis role="csdtag"></CsoundSynthesizer></emphasis>
</programlisting>
|