| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac -iadc ;;;realtime audio I/O |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; inq.wav -W ;;; for file output any platform |
| 7 |
</CsOptions> |
| 8 |
<CsInstruments> |
| 9 |
|
| 10 |
sr = 44100 |
| 11 |
ksmps = 32 |
| 12 |
nchnls = 2 ;2 channels out |
| 13 |
0dbfs = 1 |
| 14 |
nchnls_i = 4 ;4 channels in |
| 15 |
|
| 16 |
instr 1 ;4 channels in, two channels out |
| 17 |
|
| 18 |
ain1, ain2, ain3, ain4 inq ;grab your mics and sing |
| 19 |
|
| 20 |
adel linseg 0, p3*.5, 0.02, p3*.5, 0 ;max delay time = 20ms |
| 21 |
adel2 linseg 0.02, p3*.5, 0, p3*.5, 0.02 ;max delay time = 20ms |
| 22 |
aoutl flanger ain1, adel, .7 |
| 23 |
aoutr flanger ain2, adel*2, .8 |
| 24 |
aoutla flanger ain3, adel2, .9 |
| 25 |
aoutra flanger ain4, adel2*2, .5 |
| 26 |
;write to quad file, 16 bits with header |
| 27 |
fout "in_4.wav", 14, aoutl, aoutr, aoutla, aoutra |
| 28 |
outs (aoutl+aoutla)*.5, (aoutr+aoutra)*.5 ;stereo out |
| 29 |
|
| 30 |
endin |
| 31 |
</CsInstruments> |
| 32 |
<CsScore> |
| 33 |
|
| 34 |
i 1 0 10 |
| 35 |
e |
| 36 |
</CsScore> |
| 37 |
</CsoundSynthesizer> |