Debian Codegraph @

examples/times.csd

raw
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 times.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 1
16
17 ; Instrument #1.
18 instr 1
19 ; Print out the value from times every half-second.
20 k1 times
21 printks "k1 = %f seconds\\n", 0.5, k1
22 endin
23
24
25 </CsInstruments>
26 <CsScore>
27
28 ; Play Instrument #1 for two seconds.
29 i 1 0 2
30 e
31
32
33 </CsScore>
34 </CsoundSynthesizer>