Debian Codegraph @

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

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -o dac
4 </CsOptions>
5 <CsInstruments>
6 nchnls = 2
7 sr = 44100
8 ksmps = 32
9 0dbfs = 1
10
11 gipos ftgen 1, 0, 128, 10, 1 ;position of the masses (initially: sine)
12 gimass ftgen 2, 0, 128, -7, 1, 128, 1 ;masses: constant value 1
13 gistiff ftgen 3, 0, 128, -7, 0, 64, 100, 64, 0 ;stiffness; triangle 0->100->0
14 gidamp ftgen 4, 0, 128, -7, 1, 128, 1 ;damping; constant value 1
15 givel ftgen 5, 0, 128, -2, 0 ;velocity; initially 0
16
17 instr 1
18 iamp = .2
19 ifrq = 440
20 a0 scantable 0, 0, gipos, gimass, gistiff, gidamp, givel
21 aScan poscil iamp, ifrq, gipos
22 aOut linen aScan, 1, p3, 1
23 out aOut, aOut
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 i 1 0 19
29 </CsScore>
30 </CsoundSynthesizer>
31 ;example by Christopher Saunders and joachim heintz