Debian Codegraph @

examples/oscil1.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 oscil1.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 giPan ftgen 0, 0, 8, -2, .5, .2, .8, .1, .9, 0, 1, .5
17
18 instr 1
19
20 istay = 2 ;how many seconds to stay on the first table value
21 asig vco2 .3, 220
22 kpan oscil1 istay, 1, p3-istay, giPan ;create panning
23 printk2 kpan ;print when new value
24 aL, aR pan2 asig, kpan ;apply panning
25 outs aL, aR
26
27 endin
28 </CsInstruments>
29 <CsScore>
30 i 1 0 10
31 e
32 </CsScore>
33 </CsoundSynthesizer>