1<CsoundSynthesizer> 2<CsOptions> 3; Select audio/midi flags here according to platform 4-odac ;;;realtime 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 b.wav -W ;;; for file output any platform 8</CsOptions> 9<CsInstruments> 10 11sr = 44100 12ksmps = 32 13nchnls = 2 140dbfs = 1 15 16instr 1 17 18aenv expseg .01, p3*0.25, 1, p3*0.75, 0.01 19asig poscil3 .4*aenv, 220, 1 20 outs asig, asig 21 22endin 23 24instr 2 25 26asig pluck 0.7, p4, 220, 0, 1 27 outs asig, asig 28 29endin 30 31instr 3 32 33asig loscil .8, 1, 2, 1 34 outs asig, asig 35 36endin 37 38instr 4 39asig bamboo .8, 0.01 40 outs asig, asig 41 42endin 43</CsInstruments> 44<CsScore> 45f 1 0 16384 10 1 ;sine wave 46f 2 0 0 1 "fox.wav" 0 0 0 ;sample 47 48i1 0 2 49i1 10 2 50 51b 5 ; set the clock "forward" 52i2 1 2 220 ; start time = 6 53i2 2 2 110 ; start time = 7 54 55b -1 56i3 3 2 ; start time = 2 57i3 5.5 1 ; start time = 4.5 58 59 60b 0 ; reset clock to normal 61i4 10 2 ; start time = 10 62 63e 64</CsScore> 65</CsoundSynthesizer> 66 67