Debian Codegraph @

src/Examples/FLOSS Manual Examples/04 Sound Synthesis/04H04_Hammer.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -o dac
4 </CsOptions>
5 <CsInstruments>
6 sr=44100
7 ksmps=32
8 nchnls=2
9 0dbfs=1
10
11 instr 1
12 ipos ftgen 1, 0, 128, 10, 1 ; Initial Shape, sine
13 imass ftgen 2, 0, 128, -7, 1, 128, 1 ;Masses(adj.), constant value 1
14 istiff ftgen 3, 0, 128, -7, 0, 64, 100, 64, 0 ;Stiffness triangle
15 idamp ftgen 4, 0, 128, -7, 1, 128, 1; ;Damping; constant value 1
16 ivel ftgen 5, 0, 128, -7, 0, 128, 0 ;Initial Velocity 0
17 iamp = 0.2
18 a1 scantable iamp, 60, ipos, imass, istiff, idamp, ivel
19 outs a1, a1
20 endin
21 </CsInstruments>
22 <CsScore>
23 i 1 0 14
24 f 1 1 128 10 1 1 1 1 1 1 1 1 1 1 1
25 f 1 2 128 10 1 1 0 0 0 0 0 0 0 1 1
26 f 1 3 128 10 1 1 1 1 1
27 f 1 4 128 10 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
28 f 1 5 128 10 1 1
29 f 1 6 128 13 1 1 0 0 0 -.1 0 .3 0 -.5 0 .7 0 -.9 0 1 0 -1 0
30 f 1 7 128 21 6 5.745
31 </CsScore>
32 </CsoundSynthesizer>
33 ;example by Christopher Saunders