Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03D01_Table_norm_notNorm.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -nm0
4 </CsOptions>
5 <CsInstruments>
6 instr 1 ;prints the values of table 1 or 2
7 prints "%nFunction Table %d:%n", p4
8 indx init 0
9 while indx < 7 do
10 ival table indx, p4
11 prints "Index %d = %f%n", indx, ival
12 indx += 1
13 od
14 endin
15 </CsInstruments>
16 <CsScore>
17 f 1 0 -7 -2 1.1 2.2 3.3 5.5 8.8 13.13 21.21; not normalized
18 f 2 0 -7 2 1.1 2.2 3.3 5.5 8.8 13.13 21.21; normalized
19 i 1 0 0 1; prints function table 1
20 i 1 0 0 2; prints function table 2
21 </CsScore>
22 </CsoundSynthesizer>
23 ;example by joachim heintz