Debian Codegraph @

examples/printks2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 ; For Non-realtime ouput leave only the line below:
6 ; -o printk.wav -W ;;; for file output any platform
7 </CsOptions>
8 <CsInstruments>
9
10 ; Initialize the global variables.
11 sr = 44100
12 kr = 44100
13 ksmps = 1
14 nchnls = 1
15
16 ; Instrument #1.
17 instr 1
18 ; Change a value linearly from 0 to 100,
19 ; over the period defined by p3.
20 kval line 0, p3, 100
21
22 ; Print the value of kval when it changes.
23 printks2 "value now %f\n", int(kval)
24 endin
25
26
27 </CsInstruments>
28 <CsScore>
29
30 ; Play Instrument #1 for 5 seconds.
31 i 1 0 5
32 e
33
34
35 </CsScore>
36 </CsoundSynthesizer>