Debian Codegraph @

examples/printks.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 printks.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 44100
14 ksmps = 1
15 nchnls = 1
16
17 ; Instrument #1.
18 instr 1
19 ; Change a value linearly from 0 to 100,
20 ; over the period defined by p3.
21 kup line 0, p3, 100
22 ; Change a value linearly from 30 to 10,
23 ; over the period defined by p3.
24 kdown line 30, p3, 10
25
26 ; Print the value of kup and kdown, once per second.
27 printks "kup = %f, kdown = %f\\n", 1, kup, kdown
28 endin
29
30
31 </CsInstruments>
32 <CsScore>
33
34 ; Play Instrument #1 for 5 seconds.
35 i 1 0 5
36 e
37
38
39 </CsScore>
40 </CsoundSynthesizer>