| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
-odac ; activates real time sound output |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
|
| 7 |
sr = 44100 |
| 8 |
ksmps = 32 |
| 9 |
nchnls = 2 |
| 10 |
0dbfs = 1 |
| 11 |
|
| 12 |
instr 1 ; sound generating instrument - sparse noise bursts |
| 13 |
kEnv loopseg 0.5,0, 0,1,0.003,1,0.0001,0,0.9969,0,0 ; amp. envelope |
| 14 |
aSig pinkish kEnv ; noise pulses |
| 15 |
outs aSig, aSig ; audio to outs |
| 16 |
iRvbSendAmt = 0.4 ; reverb send amount (0 - 1) |
| 17 |
;write audio into the named software channel: |
| 18 |
chnmix aSig*iRvbSendAmt, "ReverbSend" |
| 19 |
endin |
| 20 |
|
| 21 |
instr 5 ; reverb (always on) |
| 22 |
aInSig chnget "ReverbSend" ; read audio from the named channel |
| 23 |
kTime init 4 ; reverb time |
| 24 |
kHDif init 0.5 ; 'high frequency diffusion' (0 - 1) |
| 25 |
aRvb nreverb aInSig, kTime, kHDif ; create reverb signal |
| 26 |
outs aRvb, aRvb ; send audio to outputs |
| 27 |
chnclear "ReverbSend" ; clear the named channel |
| 28 |
endin |
| 29 |
|
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
i 1 0 10 ; noise pulses (input sound) |
| 33 |
i 5 0 12 ; start reverb |
| 34 |
</CsScore> |
| 35 |
</CsoundSynthesizer> |
| 36 |
;example by Iain McCurdy |