Debian Codegraph @

examples/wgbow.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 RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o wgbow.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 kpres = p4 ;pressure value
19 krat = p5 ;position along string
20 kvibf = 6.12723
21
22 kvib linseg 0, 0.5, 0, 1, 1, p3-0.5, 1 ; amplitude envelope for the vibrato.
23 kvamp = kvib * 0.01
24 asig wgbow .7, 55, kpres, krat, kvibf, kvamp, 1
25 outs asig, asig
26
27 endin
28 </CsInstruments>
29 <CsScore>
30 f 1 0 2048 10 1 ;sine wave
31
32 i 1 0 3 3 0.127236
33 i 1 + 3 5 0.127236
34 i 1 + 3 5 0.23
35
36 e
37 </CsScore>
38 </CsoundSynthesizer>
39