Debian Codegraph @

examples/transegb.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o transeg.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 128
13 nchnls = 2
14
15 0dbfs = 1
16
17 instr 1
18 ;p4 and p5 determine the type of curve for each
19 ;section of the envelope
20 kenv transegb 0.01, p3*0.25, p4, 1, p3, p5, 0.01
21 a1 oscil kenv, 440, 1
22 outs a1, a1
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 ; Table #1, a sine wave.
28 f 1 0 16384 10 1
29
30 i 1 0 2 2 2
31 i 1 + . 5 5
32 i 1 + . 1 1
33 i 1 + . 0 0
34 i 1 + . -2 -2
35 i 1 + . -2 2
36 i 1 + . 2 -2
37 e
38 </CsScore>
39 </CsoundSynthesizer>
40
41