Debian Codegraph @

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

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 nchnls = 1
8 ksmps = 32
9 0dbfs = 1
10
11 opcode FourModes, a, akk[]
12 ;kFQ[] contains four frequency-quality pairs
13 aIn, kBasFreq, kFQ[] xin
14 aOut1 mode aIn, kBasFreq*kFQ[0], kFQ[1]
15 aOut2 mode aIn, kBasFreq*kFQ[2], kFQ[3]
16 aOut3 mode aIn, kBasFreq*kFQ[4], kFQ[5]
17 aOut4 mode aIn, kBasFreq*kFQ[6], kFQ[7]
18 xout (aOut1+aOut2+aOut3+aOut4) / 4
19 endop
20
21 instr 1
22 kArr[] fillarray 1, 2000, 2.8, 2000, 5.2, 2000, 8.2, 2000
23 aImp mpulse .3, 1
24 out FourModes(aImp, 200, kArr)
25 endin
26
27 </CsInstruments>
28 <CsScore>
29 i 1 0 10
30 </CsScore>
31 </CsoundSynthesizer>
32 ;example by joachim heintz, based on an example of iain mccurdy