src/Examples/FLOSS Manual Examples/03 Csound Language/03A07_Init-values_of_k-variables.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -o dac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | instr 1 |
| 7 | gkLine line 0, p3, 1 |
| 8 | endin |
| 9 | instr 2 |
| 10 | iInstr2LineValue = i(gkLine) |
| 11 | print iInstr2LineValue |
| 12 | endin |
| 13 | instr 3 |
| 14 | iInstr3LineValue = i(gkLine) |
| 15 | print iInstr3LineValue |
| 16 | endin |
| 17 | </CsInstruments> |
| 18 | <CsScore> |
| 19 | i 1 0 5 |
| 20 | i 2 2 0 |
| 21 | i 3 4 0 |
| 22 | </CsScore> |
| 23 | </CsoundSynthesizer> |
| 24 | ;example by joachim heintz |