Debian Codegraph @

examples/dssiaudio.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 DSSIplay_mono.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 "caps.so", 19, 1 ; = mono phaser and
16 gaout init 0 ; verbose about all ports
17
18 instr 1 ; activate DSSI
19
20 dssiactivate gihandle, 1
21 endin
22
23 instr 2
24 ain1 diskin2 "beats.wav", 1,0,1 ; loop
25
26 gaout = gaout+(ain1*.5)
27 endin
28
29 instr 3
30
31 dssictls gihandle, 0, .8, 1 ; range -1 to 1
32 dssictls gihandle, 1, .05, 1 ; rate 0 to 10
33 dssictls gihandle, 2, .8, 1 ; depth 0 to 1
34 dssictls gihandle, 3, 2, 1 ; spread 0 to 3.14
35 dssictls gihandle, 4, .7, 1 ; feedback 0 to 0.999
36
37 endin
38
39 instr 4
40
41 aout1 dssiaudio gihandle, gaout ;get beats.wav, mono out
42 outs aout1,aout1
43
44 gaout = 0
45
46 endin
47 </CsInstruments>
48 <CsScore>
49 i 1 0 20
50 i 2 1 20
51 i 3 1 20
52 i 4 0 20
53
54 e
55 </CsScore>
56 </CsoundSynthesizer>