Debian Codegraph @

examples/assign.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o assign.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14
15 instr 1
16 ; Assign a value to the variable i1.
17 i1 = 1234
18
19 ; Print the value of the i1 variable.
20 print i1
21 endin
22
23
24 </CsInstruments>
25 <CsScore>
26
27 ; Play Instrument #1 for one second.
28 i 1 0 1
29 e
30
31 </CsScore>
32 </CsoundSynthesizer>