Debian Codegraph @

examples/line.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 realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o line.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 kp = p6
19 ;choose between expon or line
20 if (kp == 0) then
21 kpitch expon p4, p3, p5
22 elseif (kp == 1) then
23 kpitch line p4, p3, p5
24 endif
25
26 asig vco2 .6, kpitch
27 outs asig, asig
28
29 endin
30 </CsInstruments>
31 <CsScore>
32
33 i 1 0 2 300 600 0 ;if p6=0 then expon is used
34 i 1 3 2 300 600 1 ;if p6=1 then line is used
35 i 1 6 2 600 1200 0
36 i 1 9 2 600 1200 1
37 i 1 12 2 1200 2400 0
38 i 1 15 2 1200 2400 1
39 i 1 18 2 2400 30 0
40 i 1 21 2 2400 30 1
41 e
42 </CsScore>
43 </CsoundSynthesizer>