Debian Codegraph @

examples/linen.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 realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o linen.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 ; p4=amp
18 ; p5=freq
19 ; p6=attack time
20 ; p7=release time
21 ares linen p4, p6, p3, p7
22 asig poscil ares, p5, 1
23 outs asig, asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 f1 0 4096 10 1 ; sine wave
29
30 ;ins strt dur amp freq attack release
31 i1 0 1 .5 440 0.5 0.7
32 i1 1.5 1 .2 440 0.9 0.1
33 i1 3 1 .2 880 0.02 0.99
34 i1 4.5 1 .2 880 0.7 0.01
35 i1 6 3 .7 220 0.5 0.5
36 e
37 </CsScore>
38 </CsoundSynthesizer>