Debian Codegraph @

examples/repluck-advanced.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_advanced.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; By Stefano Cucchi 2020
12
13 sr = 44100
14 ksmps = 32
15 0dbfs = 1
16 nchnls = 2
17
18 instr 1
19
20
21 iplk = p4
22 kamp = p5
23 icps = p6
24
25 krefll randomi 0.52, 0.99, 0.61
26 kpickl randomi 0.1, 0.9, 13
27
28 kreflr = p7
29 kpickr = p8
30
31 ain1 diskin "fox.wav", 1, 0
32
33 asigl repluck iplk, kamp, icps, kpickl, krefll, ain1
34 asigl dcblock2 asigl
35
36 asigr repluck iplk, kamp, icps, kpickr, kreflr, ain1
37 asigr dcblock2 asigr
38
39 kdeclick linseg 0, 0.05, 1, p3-0.1, 1, 0.05, 0
40
41 outch 1, asigl * kdeclick
42 outch 2, asigr * kdeclick
43 endin
44
45 </CsInstruments>
46 <CsScore>
47
48
49 i 1 0 4 0.11 0.5 69 0.9 0.11
50 i 1 3 4 0.11 0.5 12 0.9 0.11
51 i 1 6 4 0.41 0.5 1 0.2 0.11
52 i 1 9 4 0.11 0.5 300 0.9 0.99
53 i 1 12 4 0.11 0.5 182 0.9 0.99
54 i 1 15 15 0.99 0.5 12.039 0.9 0.11
55
56 e
57 </CsScore>
58 </CsoundSynthesizer>