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 wrap.wav -W ;;; for file output any platform 8</CsOptions> 9<CsInstruments> 10 11sr = 44100 12ksmps = 32 130dbfs = 1 14nchnls = 2 15 16instr 1 ; Limit / Mirror / Wrap 17 18igain = p4 ;gain 19ilevl1 = p5 ; + level 20ilevl2 = p6 ; - level 21imode = p7 ;1 = limit, 2 = mirror, 3 = wrap 22 23ain soundin "fox.wav" 24ain = ain*igain 25 26if imode = 1 goto limit 27if imode = 2 goto mirror 28 29asig wrap ain, ilevl2, ilevl1 30goto outsignal 31 32limit: 33asig limit ain, ilevl2, ilevl1 34goto outsignal 35 36mirror: 37asig mirror ain, ilevl2, ilevl1 38outsignal: 39 40outs asig*.5, asig*.5 ;mind your speakers 41 42endin 43 44</CsInstruments> 45<CsScore> 46 47; Gain +Levl -Levl Mode 48i1 0 3 4.00 .25 -1.00 1 ;limit 49i1 4 3 4.00 .25 -1.00 2 ;mirror 50i1 8 3 4.00 .25 -1.00 3 ;wrap 51e 52</CsScore> 53</CsoundSynthesizer> 54