Debian Codegraph @

examples/lposcila.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 lposcila.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 kcps = 1.3 ;a 3d up
19 kloop = 0 ;loop start time in samples
20 kend = 10000 ;loop end time in samples
21
22 aenv expsega 0.01, 0.1, 1, 0.1, 0.5, 0.5, 0.01 ;envelope with fast and short segment
23 asig lposcila aenv, kcps, kloop, kend, 1 ;use it for amplitude
24 outs asig*2, asig*2
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 ; Its table size is deferred,
30 ; and format taken from the soundfile header.
31 f 1 0 0 1 "drumsMlp.wav" 0 0 0
32
33 ; Play Instrument #1 for 6 seconds.
34 ; This will loop the drum pattern several times.
35 i 1 0 2
36
37 e
38 </CsScore>
39 </CsoundSynthesizer>