Debian Codegraph @

examples/oscil1i.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o oscil1i.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1
17
18 ipanfn = p4
19 asig vco2 .3, 220
20 kpan oscil1i 0, 1, p3, ipanfn ;create panning &
21 kleft = sqrt(kpan) ;start right away
22 kright = sqrt(1-kpan)
23 outs kleft*asig, kright*asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 f 1 0 3 -7 .5 3 .5 ;remain in center (.5 CONSTANT)
29 f 2 0 129 7 1 129 0 ;left-->right
30 f 3 0 129 7 .5 32 1 64 0 33 .5 ;center-->left-->right-->center
31
32 i 1 0 2 1 ;use table 1
33 i 1 3 2 2 ;use table 2
34 i 1 6 2 3 ;use table 3
35
36 e
37 </CsScore>
38 </CsoundSynthesizer>