Debian Codegraph @

examples/wgbrass.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o wgbrass.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 ksmps = 10
14 nchnls = 1
15 0dbfs = 1
16
17 ; Instrument #1.
18 instr 1
19 kamp = 0.7
20 kfreq = p4
21 ktens = p5
22 iatt = p6
23 kvibf = p7
24 ifn = 1
25
26 ; Create an amplitude envelope for the vibrato.
27 kvamp line 0, p3, 0.5
28
29 a1 wgbrass kamp, kfreq, ktens, iatt, kvibf, kvamp, ifn
30 out a1
31 endin
32
33
34 </CsInstruments>
35 <CsScore>
36
37 ; Table #1, a sine wave.
38 f 1 0 1024 10 1
39
40 ; freq tens att vibf
41 i 1 0 4 440 0.4 0.1 6.137
42 i 1 4 4 440 0.4 0.01 0.137
43 i 1 8 4 880 0.4 0.1 6.137
44 e
45
46
47 </CsScore>
48 </CsoundSynthesizer>