Debian Codegraph @

examples/deinterleave.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -n
4 </CsOptions>
5 <CsInstruments>
6
7
8 instr 1
9
10 kInt[] fillarray 1,2,3,4,5,6,7,8
11
12 kout1[],kout2[] deinterleave kInt
13
14 printf "input: \n%d %d %d %d %d %d %d %d\n", 1,
15 kInt[0], kInt[1], kInt[2], kInt[3],
16 kInt[4], kInt[5], kInt[6], kInt[7]
17
18
19 printf "de-interleaved:\n%d %d %d %d \n%d %d %d %d\n", 1,
20 kout1[0], kout1[1], kout1[2], kout1[3],
21 kout2[0], kout2[1], kout2[2], kout2[3]
22 endin
23
24 </CsInstruments>
25 <CsScore>
26 i1 0 1
27 e
28 </CsScore>
29 </CsoundSynthesizer>