Debian Codegraph @

examples/fmbell.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 fmbell.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 kamp = p4
19 kfreq = 880
20 kc1 = p5
21 kc2 = p6
22 kvdepth = 0.005
23 kvrate = 6
24
25 asig fmbell kamp, kfreq, kc1, kc2, kvdepth, kvrate
26 outs asig, asig
27 endin
28
29 instr 2
30
31 kamp = p4
32 kfreq = 880
33 kc1 = p5
34 kc2 = p6
35 kvdepth = 0.005
36 kvrate = 6
37
38 asig fmbell kamp, kfreq, kc1, kc2, kvdepth, kvrate, 1, 1, 1, 1, 1, p7
39 outs asig, asig
40 endin
41
42 </CsInstruments>
43 <CsScore>
44 ; sine wave.
45 f 1 0 32768 10 1
46
47 i 1 0 3 .2 5 5
48 i 1 + 4 .3 .5 1
49 s
50 i 2 0 12 .2 5 5 16
51 i 2 + 12 .3 .5 1 12
52
53
54 e
55 </CsScore>
56 </CsoundSynthesizer>