Debian Codegraph @

examples/dssiplay_stereo.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o DSSIplay_stereo.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10 sr = 44100
11 kr = 4410
12 ksmps = 10
13 nchnls = 2
14
15 gihandle dssiinit "g2reverb.so", 0, 1
16 gaout init 0
17
18 instr 1
19 ; activate DSSI
20 dssiactivate gihandle, 1
21 endin
22
23 instr 2
24 ain1 diskin2 "beats.wav", 1
25
26 gaout = gaout+(ain1*.3)
27 endin
28
29 instr 3
30 dssictls gihandle, 4, 100, 1 ; room 10 to 150
31 dssictls gihandle, 5, 10, 1 ; reverb time 1 to 20
32 dssictls gihandle, 6, .5, 1 ; input bandwith 0 to 1
33 dssictls gihandle, 7, .25, 1 ; damping 0 to 1
34 dssictls gihandle, 8, 0, 1 ; dry -80 to 0
35 dssictls gihandle, 9, -10, 1 ; reflections -80 to 0
36 dssictls gihandle, 10, -15, 1 ; rev. tail -80 to 0
37 endin
38
39 instr 4
40
41 aout1, aout2 dssiaudio gihandle, gaout, gaout ;get beats.wav and
42 outs aout1,aout2 ; stereo DSSI plugin
43
44 gaout = 0
45 endin
46
47
48 </CsInstruments>
49 <CsScore>
50 i 1 0 2
51 i 2 1 10
52 i 3 1 10
53 i 4 0 10
54
55 e
56 </CsScore>
57 </CsoundSynthesizer>