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 spsend.wav -W ;;; for file output any platform 8</CsOptions> 9<CsInstruments> 10 11sr = 44100 12ksmps = 32 130dbfs = 1 14nchnls = 2 ;stereo output 15 16ga1 init 0 17ga2 init 0 18 19instr 1 ;sends different amounts to reverb 20 21irev = p6 22asig diskin2 "fox.wav", 1 23a1, a2, a3, a4 space asig, 0, 0, irev, p4, p5 ;take position values from p4, p5 24ar1, ar2, ar3, ar4 spsend ;send to reverb 25 26ga1 = ga1+ar1 27ga2 = ga2+ar2 28 outs a1, a2 29 30endin 31 32instr 99 ; reverb instrument 33 34a1 reverb2 ga1, 2.5, .5 35a2 reverb2 ga2, 2.5, .5 36 outs a1, a2 37 38ga1=0 39ga2=0 40 41endin 42 43</CsInstruments> 44<CsScore> 45;WITH REVERB 46;place the sound in the left speaker and near 47i1 0 1 -1 1 .1 48;place the sound in the right speaker and far 49i1 1 1 45 45 .1 50;place the sound equally between left and right and in the middle ground distance 51i1 2 1 0 12 .1 52 53;NO REVERB 54;place the sound in the left speaker and near 55i1 6 1 -1 1 0 56;place the sound in the right speaker and far 57i1 7 1 45 45 0 58;place the sound equally between left and right and in the middle ground distance 59i1 8 1 0 12 0 60 61i 99 0 12 ;keep reverb active all the time 62e 63</CsScore> 64</CsoundSynthesizer> 65