Debian Codegraph @

examples/STKSaxofony.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 STKSaxofony.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 ifreq = p4
19 kv1 = p5 ;reed stiffness
20 kv3 line p6, p3, p7 ;blow position
21 kv6 line 0, p3, 127 ;depth of low-frequency oscillator
22
23 asig STKSaxofony cpspch(p4), 1, 2, kv1, 4, 100, 26, 70, 11, kv3, 1, kv6, 29, 100
24 asig = asig * .5 ;too loud
25 outs asig, asig
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 3 6.00 30 100 10
32 i 1 + . 8.00 30 100 100
33 i 1 + . 7.00 90 127 30
34 e
35 </CsScore>
36 </CsoundSynthesizer>