Debian Codegraph @

examples/vibrato.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 vibrato.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 kaverageamp init .5
19 kaveragefreq init 5
20 krandamountamp line p4, p3, p5 ;increase random amplitude of vibrato
21 krandamountfreq init .3
22 kampminrate init 3
23 kampmaxrate init 5
24 kcpsminrate init 3
25 kcpsmaxrate init 5
26 kvib vibrato kaverageamp, kaveragefreq, krandamountamp, krandamountfreq, kampminrate, kampmaxrate, kcpsminrate, kcpsmaxrate, 1
27 asig poscil .8, 220+kvib, 1 ;add vibrato
28 outs asig, asig
29
30 endin
31 </CsInstruments>
32 <CsScore>
33 f 1 0 16384 10 1 ;sine wave
34
35 i 1 0 15 .01 20
36
37 e
38 </CsScore>
39 </CsoundSynthesizer>
40