Debian Codegraph @

examples/capB.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 b.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
17
18 aenv expseg .01, p3*0.25, 1, p3*0.75, 0.01
19 asig poscil3 .4*aenv, 220, 1
20 outs asig, asig
21
22 endin
23
24 instr 2
25
26 asig pluck 0.7, p4, 220, 0, 1
27 outs asig, asig
28
29 endin
30
31 instr 3
32
33 asig loscil .8, 1, 2, 1
34 outs asig, asig
35
36 endin
37
38 instr 4
39 asig bamboo .8, 0.01
40 outs asig, asig
41
42 endin
43 </CsInstruments>
44 <CsScore>
45 f 1 0 16384 10 1 ;sine wave
46 f 2 0 0 1 "fox.wav" 0 0 0 ;sample
47
48 i1 0 2
49 i1 10 2
50
51 b 5 ; set the clock "forward"
52 i2 1 2 220 ; start time = 6
53 i2 2 2 110 ; start time = 7
54
55 B -6 ; move clock back
56 i3 3 2 ; start time = 2
57 i3 5.5 1 ; start time = 4.5
58
59
60 b 0 ; reset clock to normal
61 i4 10 2 ; start time = 10
62
63 e
64 </CsScore>
65 </CsoundSynthesizer>
66