| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o deltap.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 |
gasig init 0 |
| 17 |
gidel = 1 ;delay time in seconds |
| 18 |
|
| 19 |
instr 1 |
| 20 |
|
| 21 |
ain pluck .7, 440, 1000, 0, 1 |
| 22 |
outs ain, ain |
| 23 |
|
| 24 |
vincr gasig, ain ;send to global delay |
| 25 |
endin |
| 26 |
|
| 27 |
instr 2 |
| 28 |
|
| 29 |
ifeedback = p4 |
| 30 |
|
| 31 |
abuf2 delayr gidel |
| 32 |
adelL deltap .4 ;first tap (on left channel) |
| 33 |
adelM deltap 1 ;second tap (on middle channel) |
| 34 |
delayw gasig + (adelL * ifeedback) |
| 35 |
|
| 36 |
abuf3 delayr gidel |
| 37 |
kdel line 1, p3, .01 ;vary delay time |
| 38 |
adelR deltap .65 * kdel ;one pitch changing tap (on the right chn.) |
| 39 |
delayw gasig + (adelR * ifeedback) |
| 40 |
;make a mix of all deayed signals |
| 41 |
outs adelL + adelM, adelR + adelM |
| 42 |
|
| 43 |
clear gasig |
| 44 |
endin |
| 45 |
|
| 46 |
</CsInstruments> |
| 47 |
<CsScore> |
| 48 |
|
| 49 |
i 1 0 1 |
| 50 |
i 1 3 1 |
| 51 |
i 2 0 3 0 ;no feedback |
| 52 |
i 2 3 8 .8 ;lots of feedback |
| 53 |
e |
| 54 |
</CsScore> |
| 55 |
</CsoundSynthesizer> |