Debian Codegraph @

examples/trigexpseg.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -d -m0d -M0 -+rtmidi=virtual ;;;RT audio I/O with MIDI in
6 ; For Non-realtime ouput leave only the line below:
7 ; -o midiin.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10 sr = 44100
11 ksmps = 32
12 nchnls = 2
13 0dbfs = 1
14
15 instr 1
16 aEnv expseg 0.0001, .2, 1, .2, .5, .2, .7, .2, 0.0001
17 a1 oscili aEnv, 400
18 outs a1, a1
19 endin
20
21 instr 2
22 kTrig metro 1
23 aEnv trigexpseg kTrig, 0.0001, .2, 1, .2, .5, .2, .7, .2, 0.0001
24 a1 oscili aEnv, 400
25 outs a1, a1
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 i1 0 1
31 i2 3 8
32 </CsScore>
33 </CsoundSynthesizer>