| 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 fprintks.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
; by Matt Ingalls, edited by Kevin Conder & Menno Knevel 2021 |
| 12 |
|
| 13 |
sr = 44100 |
| 14 |
ksmps = 32 |
| 15 |
nchnls = 2 |
| 16 |
0dbfs = 1 |
| 17 |
|
| 18 |
instr 1 ; a score generator |
| 19 |
|
| 20 |
kstart init 0 |
| 21 |
kdur linrand 10 |
| 22 |
kpitch linrand 8 |
| 23 |
kpitch *= 100 |
| 24 |
; Printing to a file called "my.sco". |
| 25 |
fprintks "my.sco", "i1\\t%2.2f\\t%2.2f\\t%2.2f\\n", kstart, kdur, kpitch |
| 26 |
|
| 27 |
knext linrand 1 |
| 28 |
kstart = kstart + knext |
| 29 |
|
| 30 |
endin |
| 31 |
|
| 32 |
</CsInstruments> |
| 33 |
<CsScore> |
| 34 |
i 1 0 0.003 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |