Debian Codegraph @

examples/dam.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 dam.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1 ;normal audio
17
18 asig diskin2 "drumsMlp.wav", 1, 0, 1
19 outs asig, asig
20
21 endin
22
23
24 instr 2 ; compressed audio
25
26 kthreshold = 0.2
27 icomp1 = 0.8
28 icomp2 = 0.2
29 irtime = 0.01
30 iftime = 0.5
31 asig diskin2 "drumsMlp.wav", 1, 0, 1
32 asig dam asig, kthreshold, icomp1, icomp2, irtime, iftime
33 outs asig, asig
34 endin
35
36 </CsInstruments>
37 <CsScore>
38
39 i 1 0 2
40 i 2 2.5 8.5
41
42 e
43 </CsScore>
44 </CsoundSynthesizer>