Debian Codegraph @

examples/lineto.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 lineto.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 giSine ftgen 0, 0, 2^10, 10, 1
17
18 instr 1
19
20 kfreq randh 1000, 20, 2, 1, 2000 ;generates ten random number between 100 and 300 per second
21 kpan randh .5, 1, 2, 1, .5 ;panning between 0 and 1
22 kp lineto kpan, .5 ;smoothing pan transition
23 aout poscil .4, kfreq, giSine
24 aL, aR pan2 aout, kp
25 outs aL, aR
26
27 endin
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 10
32 e
33 </CsScore>
34 </CsoundSynthesizer>