Debian Codegraph @

examples/dssiinit.csd

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