Debian Codegraph @

src/Examples/FLOSS Manual Examples/04 Sound Synthesis/04H01_scantable_1.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 aScan scantable iamp, ifrq, gipos, gimass, gistiff, gidamp, givel
21 aOut linen aScan, 1, p3, 1
22 out aOut, aOut
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 i 1 0 19
28 </CsScore>
29 </CsoundSynthesizer>
30 ;example by Christopher Saunders and joachim heintz