| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in No messages |
| 5 |
-odac -iadc -d |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o schedkwhennamed.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 48000 |
| 12 |
ksmps = 16 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
; Example by Jonathan Murphy 2007 |
| 17 |
|
| 18 |
gSinstr2 = "printer" |
| 19 |
|
| 20 |
instr 1 |
| 21 |
|
| 22 |
ktrig metro 1 |
| 23 |
if (ktrig == 1) then |
| 24 |
;Call instrument "printer" once per second |
| 25 |
schedkwhennamed ktrig, 0, 1, gSinstr2, 0, 1 |
| 26 |
|
| 27 |
endif |
| 28 |
|
| 29 |
endin |
| 30 |
|
| 31 |
instr printer |
| 32 |
|
| 33 |
ktime timeinsts |
| 34 |
printk2 ktime |
| 35 |
|
| 36 |
endin |
| 37 |
|
| 38 |
</CsInstruments> |
| 39 |
<CsScore> |
| 40 |
i1 0 10 |
| 41 |
e |
| 42 |
</CsScore> |
| 43 |
</CsoundSynthesizer> |
| 44 |
|