Debian Codegraph @

examples/expseg.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ;-o expseg.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Kevin Conder, additions by Menno Knevel 2021
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 kcps = cpspch(p4) ; p4 = frequency in pitch-class notation.
21 kenv expseg 0.01, p3*0.25, 1, p3*0.75, 0.001 ; amplitude envelope.
22 kamp = kenv
23 a1 oscili kamp, kcps
24 outs a1, a1
25
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 0.5 8.00
32 i 1 1 0.5 8.01
33 i 1 2 0.5 8.02
34 i 1 3 2.0 8.03
35 e
36 </CsScore>
37 </CsoundSynthesizer>