Debian Codegraph @

examples/vpow_i.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 cigoto.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr=44100
12 ksmps=128
13 nchnls=2
14
15 instr 1
16 ifn1 = p4
17 ival = p5
18 ielements = p6
19 idstoffset = p7
20 kval init 25
21 vpow_i ifn1, ival, ielements, idstoffset
22 endin
23
24 instr 2 ;Printtable
25 itable = p4
26 isize = ftlen(itable)
27 kcount init 0
28 kval table kcount, itable
29 printk2 kval
30
31 if (kcount == isize) then
32 turnoff
33 endif
34
35 kcount = kcount + 1
36 endin
37
38
39 </CsInstruments>
40
41 <CsScore>
42
43 f 1 0 16 -7 1 16 17
44
45 i2 0.0 0.2 1
46 i1 0.4 0.01 1 2 3 4
47 i2 0.8 0.2 1
48 i1 1.0 0.01 1 0.5 5 -3
49 i2 1.2 0.2 1
50 i1 1.4 0.01 1 1.5 10 12
51 i2 1.6 0.2 1
52 e
53
54 </CsScore>
55
56 </CsoundSynthesizer>