1<CsoundSynthesizer>
2<CsOptions>
3; Select audio/midi flags here according to platform
4; Audio out   Audio in
5-odac           -iadc    ;;;RT audio I/O
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/* Written by Matt Ingalls, edited by Kevin Conder. */
12; Initialize the global variables.
13sr = 44100
14kr = 4410
15ksmps = 10
16nchnls = 1
17
18; Instrument #1 - a score generator example.
19instr 1
20  ; K-rate stuff.
21  kstart init 0
22  kdur linrand 10
23  kpitch linrand 8
24
25  ; Printing to to a file called "my.sco".
26  fprintks "my.sco", "i1\\t%2.2f\\t%2.2f\\t%2.2f\\n", kstart, kdur, 4+kpitch
27
28  knext linrand 1
29  kstart = kstart + knext
30endin
31
32
33</CsInstruments>
34<CsScore>
35
36/* Written by Matt Ingalls, edited by Kevin Conder. */
37; Play Instrument #1.
38i 1 0 0.001
39
40
41</CsScore>
42</CsoundSynthesizer>
43