| 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 |
giLFOShape ftgen 0, 0, 2^12, 19, 0.5, 1, 180, 1 ; u-shaped parabola |
| 13 |
|
| 14 |
instr 1 |
| 15 |
aSig pinkish 0.1 ; pink noise |
| 16 |
|
| 17 |
aMod poscil 0.005, 0.05, giLFOShape ; delay time LFO |
| 18 |
iOffset = ksmps/sr ; minimum delay time |
| 19 |
kFdback linseg 0.8,(p3/2)-0.5,0.95,1,-0.95 ; feedback |
| 20 |
|
| 21 |
; -- create a delay buffer -- |
| 22 |
aBufOut delayr 0.5 ; read audio from end buffer |
| 23 |
aTap deltap3 aMod + iOffset ; tap audio from within buffer |
| 24 |
delayw aSig + (aTap*kFdback) ; write audio into buffer |
| 25 |
|
| 26 |
; send audio to the output (mix the input signal with the delayed signal) |
| 27 |
aOut linen (aSig + aTap)/2, .1, p3, 1 |
| 28 |
out aOut, aOut |
| 29 |
endin |
| 30 |
|
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
i 1 0 25 |
| 34 |
</CsScore> |
| 35 |
</CsoundSynthesizer> |
| 36 |
;example by Iain McCurdy |