Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03A21_Init_explcit_implicit.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 instr 1
12
13 ;explicit initialization
14 k_Exp init 10
15 S_Exp init "goodbye"
16
17 ;implicit initialization
18 k_Imp linseg 10, 1, 0
19 S_Imp strcpyk "world"
20
21 ;print out at init-time
22 prints "k_Exp -> %d\n", k_Exp
23 printf_i "S_Exp -> %s\n", 1, S_Exp
24 prints "k_Imp -> %d\n", k_Imp
25 printf_i "S_Imp -> %s\n", 1, S_Imp
26
27 endin
28
29 </CsInstruments>
30 <CsScore>
31 i 1 0 1
32 </CsScore>
33 </CsoundSynthesizer>
34 ;example by joachim heintz