| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in |
| 5 |
-n ; no sound |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o system.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
instr 1 |
| 17 |
; Waits for command to execute before continuing |
| 18 |
ires system_i 1,{{ ps |
| 19 |
date |
| 20 |
cd ~/Desktop |
| 21 |
pwd |
| 22 |
ls -l |
| 23 |
whois csounds.com |
| 24 |
}} |
| 25 |
print ires |
| 26 |
turnoff |
| 27 |
endin |
| 28 |
|
| 29 |
instr 2 |
| 30 |
; Runs command in a separate thread |
| 31 |
ires system_i 1,{{ ps |
| 32 |
date |
| 33 |
cd ~/Desktop |
| 34 |
pwd |
| 35 |
ls -l |
| 36 |
whois csounds.com |
| 37 |
}}, 1 |
| 38 |
|
| 39 |
print ires |
| 40 |
turnoff |
| 41 |
endin |
| 42 |
|
| 43 |
</CsInstruments> |
| 44 |
<CsScore> |
| 45 |
i 1 0 1 |
| 46 |
i 2 5 1 |
| 47 |
e |
| 48 |
</CsScore> |
| 49 |
</CsoundSynthesizer> |