summaryrefslogtreecommitdiff
path: root/examples-xml/dssictls.csd.xml
blob: 546138b70c4eb079f9bb249e20f13f0b8f067f75 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<programlisting>
<emphasis role="csdtag">&lt;CsoundSynthesizer&gt;</emphasis>
<emphasis role="csdtag">&lt;CsOptions&gt;</emphasis>
<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
-odac     <emphasis role="comment">;;;RT audio out</emphasis>
<emphasis role="comment">;-iadc    ;;;uncomment -iadc if RT audio input is needed too</emphasis>
<emphasis role="comment">; For Non-realtime ouput leave only the line below:</emphasis>
<emphasis role="comment">; -o dssictls.wav -W ;;; for file output any platform</emphasis>
<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
<emphasis role="csdtag">&lt;CsInstruments&gt;</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

gihandle dssiinit "caps.so", 1, 1	<emphasis role="comment">; = equaliser and</emphasis>
gaoutl <emphasis role="opc">init</emphasis>  0				<emphasis role="comment">; verbose about all ports</emphasis>
gaoutr <emphasis role="opc">init</emphasis>  0

<emphasis role="oblock">instr</emphasis> 1	<emphasis role="comment">; activate DSSI</emphasis>

dssiactivate gihandle, 1
<emphasis role="oblock">endin</emphasis>

<emphasis role="oblock">instr</emphasis> 2
ain1	<emphasis role="opc">diskin2</emphasis> "beats.wav", 1,0,1	<emphasis role="comment">; loop</emphasis>

gaoutl <emphasis role="op">=</emphasis> gaoutl<emphasis role="op">+</emphasis>(ain1<emphasis role="op">*</emphasis>.1)		<emphasis role="comment">; temper input</emphasis>
gaoutr <emphasis role="op">=</emphasis> gaoutr<emphasis role="op">+</emphasis>(ain1<emphasis role="op">*</emphasis>.1)
<emphasis role="oblock">endin</emphasis>

<emphasis role="oblock">instr</emphasis> 3

dssictls gihandle, 2, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 31 Hz range -48 to 24</emphasis>
dssictls gihandle, 3, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 63 Hz range -48 to 24</emphasis>
dssictls gihandle, 4, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 125 Hz range -48 to 24</emphasis>
dssictls gihandle, 5, 20, 1	<emphasis role="comment">; 250 Hz range -48 to 24</emphasis>
dssictls gihandle, 6, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 500 Hz range -48 to 24</emphasis>
dssictls gihandle, 7, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 1 kHz Hz range -48 to 24</emphasis>
dssictls gihandle, 8, <emphasis role="op">-</emphasis>48, 1	<emphasis role="comment">; 2 kHz range -48 to 24</emphasis>
dssictls gihandle, 9, 24, 1	<emphasis role="comment">; 4 kHz range -48 to 24</emphasis>
dssictls gihandle, 10, 24, 1	<emphasis role="comment">; 8 kHz range -48 to 24</emphasis>
dssictls gihandle, 11, 24, 1	<emphasis role="comment">; 16 kHz range -48 to 24</emphasis>

<emphasis role="oblock">endin</emphasis>

<emphasis role="oblock">instr</emphasis> 4

aout1, aout2	dssiaudio gihandle, gaoutl, gaoutr	<emphasis role="comment">;get beats.wav, mono out</emphasis>
		<emphasis role="opc">outs</emphasis> aout1,aout2

gaoutl <emphasis role="op">=</emphasis> 0
gaoutr <emphasis role="op">=</emphasis> 0
<emphasis role="oblock">endin</emphasis>

<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
<emphasis role="stamnt">i</emphasis> 1 0 20 
<emphasis role="stamnt">i</emphasis> 2 1 20
<emphasis role="stamnt">i</emphasis> 3 1 20
<emphasis role="stamnt">i</emphasis> 4 0 20

<emphasis role="stamnt">e</emphasis>
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
</programlisting>