| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-nm0 |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
sr = 44100 |
| 7 |
ksmps = 44100 ;very high because of printing |
| 8 |
|
| 9 |
opcode Faster, 0, 0 |
| 10 |
setksmps 4410 ;local ksmps is 1/10 of global ksmps |
| 11 |
printks "UDO print!%n", 0 |
| 12 |
endop |
| 13 |
|
| 14 |
instr 1 |
| 15 |
printks "Instr print!%n", 0 ;print each control period (once per second) |
| 16 |
Faster ;print 10 times per second because of local ksmps |
| 17 |
endin |
| 18 |
|
| 19 |
</CsInstruments> |
| 20 |
<CsScore> |
| 21 |
i 1 0 2 |
| 22 |
</CsScore> |
| 23 |
</CsoundSynthesizer> |
| 24 |
;example by joachim heintz |