Debian Codegraph @

examples/expsegba.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 expsega.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 1
16
17 ; Instrument #1.
18 instr 1
19 ; Define a short percussive amplitude envelope that
20 ; goes from 0.01 to 20,000 and back.
21 aenv expsegba 0.01, 0.1, 20000, 0.2, 0.01
22
23 a1 oscil aenv, 440, 1
24 out a1
25 endin
26
27
28 </CsInstruments>
29 <CsScore>
30
31 ; Table #1, a sine wave.
32 f 1 0 16384 10 1
33
34 ; Play Instrument #1 for one second.
35 i 1 0 1
36 ; Play Instrument #1 for one second.
37 i 1 1 1
38 ; Play Instrument #1 for one second.
39 i 1 2 1
40 ; Play Instrument #1 for one second.
41 i 1 3 1
42 e
43
44
45 </CsScore>
46 </CsoundSynthesizer>