Debian Codegraph @

examples/e.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime 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 e.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 ga1 init 0
17
18 instr 1
19
20 aenv expseg .01, p3*0.1, 1, p3*0.9, 0.01
21 ga1 poscil3 .5*aenv, cpspch(p4), 1
22 outs ga1,ga1
23 endin
24
25 instr 99
26
27 aL, aR reverbsc ga1, ga1, 0.85, 12000, sr, 0.5, 1
28 outs aL,aR
29
30 ga1 = 0
31
32 endin
33 </CsInstruments>
34 <CsScore>
35 f 1 0 128 10 1 ;sine wave
36
37 i 1 1 0.1 8.00
38 i 1 2 0.1 8.02
39 i 1 3 0.1 8.04
40 i 1 4 0.1 9.06
41
42 i 99 0 6 ;remains active for 6 seconds
43
44 e10
45 </CsScore>
46 </CsoundSynthesizer>
47