Debian Codegraph @

examples/prepiano.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 real audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o prepiano.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 ;; fund NS detune stiffness decay loss (bndry) (hammer) scan prep
18 aa,ab prepiano 60, 3, 10, p4, 3, 0.002, 2, 2, 1, 5000, -0.01, p5, p6, 0, 0.1, 1, 2
19 outs aa*.2, ab*.2
20
21 endin
22 </CsInstruments>
23 <CsScore>
24 f1 0 8 2 1 0.6 10 100 0.001 ;; 1 rattle
25 f2 0 8 2 1 0.7 50 500 1000 ;; 1 rubber
26 i1 0.0 1 1 0.09 20
27 i1 1 . -1 0.09 40 ;; 1 -> skip initialisation
28 i1 2 . -1 0.09 60
29 i1 3 . -1 0.09 80
30 i1 4 1.8 -1 0.09 100
31 e
32 </CsScore>
33 </CsoundSynthesizer>