Debian Codegraph @

examples/repluck.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 repluck.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 instr 1
17
18 iplk = 0.75
19 kamp = .8
20 icps = 110
21 krefl = p4
22 kpick = p5
23
24
25 axcite oscil 1, 1, 1
26 asig repluck iplk, kamp, icps, kpick, krefl, axcite
27 asig dcblock2 asig ;get rid of DC offset
28 outs asig, asig
29
30 endin
31 </CsInstruments>
32 <CsScore>
33 f 1 0 16384 10 1 ;sine wave.
34
35 s
36 i 1 0 1 0.95 0.75 ;sounds heavier (=p5)
37 i 1 + 1 <
38 i 1 + 1 <
39 i 1 + 1 <
40 i 1 + 10 0.6
41
42 s
43 i 1 0 1 0.95 0.15 ;sounds softer (=p5)
44 i 1 + 1 <
45 i 1 + 1 <
46 i 1 + 1 <
47 i 1 + 10 0.6
48 e
49 </CsScore>
50 </CsoundSynthesizer>