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