Debian Codegraph @

examples/alpass.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 alpass.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 100
13 nchnls = 2
14 0dbfs = 1
15
16 gamix init 0
17
18 instr 1
19
20 acps expon p4, p3, p5
21 asig vco 0.6, acps, 1
22 outs asig, asig
23
24 gamix = gamix + asig
25
26 endin
27
28 instr 99
29
30 arvt1 line 3.5*1.5, p3, 6
31 arvt2 line 3.5, p3, 4
32 ilpt = 0.1
33 aleft alpass gamix, arvt1, ilpt
34 aright alpass gamix, arvt2, ilpt*2
35 outs aleft, aright
36
37 gamix = 0 ; clear mixer
38
39 endin
40
41 </CsInstruments>
42 <CsScore>
43 f1 0 4096 10 1
44 i 1 0 3 20 2000
45
46 i 99 0 8
47 e
48
49 </CsScore>
50 </CsoundSynthesizer>