Debian Codegraph @

examples/timeinsts.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 timeinsts.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 kvib init 1
21 ktim timeinsts ;read time
22
23 if ktim > 2 then ;do something after 2 seconds
24 kvib oscili 2, 3, giSine ;make a vibrato
25 endif
26
27 asig poscil .5, 600+kvib, giSine ;add vibrato
28 outs asig, asig
29
30 endin
31 </CsInstruments>
32 <CsScore>
33
34 i 1 0 5
35 e
36 </CsScore>
37 </CsoundSynthesizer>