Debian Codegraph @

examples/tlineto.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 tlineto.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
21 kmtr lfo 1, .5, 1 ;produce trigger signal
22 ktr trigger kmtr, .5, 0 ;with triangle wave
23
24 ktime = p4
25 kfreq randh 1000, 3, .2, 0, 500 ;generate random values
26 kfreq tlineto kfreq, ktime, ktr ;different glissando times
27 aout poscil .4, kfreq, giSine
28 outs aout, aout
29
30 endin
31 </CsInstruments>
32 <CsScore>
33
34 i 1 0 10 .2 ;short glissando
35 i 1 11 10 .8 ;longer glissande
36 e
37 </CsScore>
38 </CsoundSynthesizer>