Debian Codegraph @

examples/lposcilsa2.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 lposcilsa2.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; additions by Menno Knevel 2022
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 kcps = 1 ;only integers are allowed
21 kloop = 0 ;loop start time in samples
22 kend = 45000 ;loop end time in samples
23
24 aenv expsega 0.01, 0.2*p3, .9, 0.1*p3, 0.2, 0.5*p3, 0.7 ;envelope
25 aL, aR lposcilsa2 aenv, kcps, kloop, kend, 1 ;use it for amplitude
26 outs aL, aR
27
28 endin
29 </CsInstruments>
30 <CsScore>
31 ; Its table size is deferred,
32 ; and format taken from the soundfile header.
33 f 1 0 0 1 "drumsSlp.wav" 0 0 0
34
35 ; This will loop the drum pattern several times.
36 i 1 0 10.4
37 i 1 11 5
38
39 e
40 </CsScore>
41 </CsoundSynthesizer>