Debian Codegraph @

examples/mandol.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 mandol.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 ksize = p5
20 kdetune = p6
21 asig mandol kamp, 880, .4, kdetune, 0.99, ksize, 1, 220
22 outs asig, asig
23
24 endin
25 </CsInstruments>
26 <CsScore>
27 ; "mandpluk.aiff" audio file
28 f 1 0 8192 1 "mandpluk.aiff" 0 0 0
29
30 i 1 .5 1 1 2 .99
31 i 1 + 1 .5 1 .99 ;lower volume to compensate
32 i 1 + 3 .3 .3 .99 ;lower volume to compensate
33
34 i 1 4 1 1 2 .39 ;change detune value
35 i 1 + 1 .5 1 .39
36 i 1 + 3 .3 .3 .39
37 e
38 </CsScore>
39 </CsoundSynthesizer>