Debian Codegraph @

examples/a.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 a.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 aenv expseg .01, p3*0.25, 1, p3*0.75, 0.01
19 asig poscil3 .8*aenv, p4
20 outs asig, asig
21
22 endin
23 </CsInstruments>
24 <CsScore>
25 ;two sections
26 s
27 a 0 0 6 ;advance score 6 seconds
28 i 1 0 2 110 ;these first 2 notes
29 i 1 3 2 220 ;will not sound
30 i 1 6 2 440
31 i 1 9 2 880
32 s
33 a 0 3 6 ;advance score 6 seconds, but do this after 3 seconds
34 i 1 0 2 110 ;this will sound, because action time (p2) from a statement = 3
35 i 1 3 2 220 ;so these 2 notes
36 i 1 6 2 440 ;will not sound
37 i 1 9 2 880 ;and this one will
38 e
39 </CsScore>
40 </CsoundSynthesizer>
41