| 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 lposcilsa.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.3 ;a 3th up |
| 21 |
kloop = 0 ;loop start time in samples |
| 22 |
kend = p4 ;loop end time in samples |
| 23 |
|
| 24 |
aenv expsega 0.01, 0.1, .8, 1, .3, 1.1, .42 ;envelope with fast and short segment |
| 25 |
aL, aR lposcilsa aenv, kcps, kloop, kend, 1 ;use it for amplitude |
| 26 |
outs aL, aR |
| 27 |
|
| 28 |
endin |
| 29 |
</CsInstruments> |
| 30 |
<CsScore> |
| 31 |
; table size of stereo file is deferred, |
| 32 |
; and format taken from the soundfile header. |
| 33 |
f 1 0 0 1 "drumsSlp.wav" 0 0 0 |
| 34 |
|
| 35 |
i 1 0 5 45000 |
| 36 |
i 1 6 3 15000 |
| 37 |
e |
| 38 |
</CsScore> |
| 39 |
</CsoundSynthesizer> |