; Select audio/midi flags here according to platform ; Audio out Audio in -odac ;;;RT audio out ; For Non-realtime ouput leave only the line below: ; -o peak.wav -W ;;; for file output any platform sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 instr 1 ; Capture the highest amplitude in the "drumsMlp.wav" file. asig soundin "drumsMlp.wav" kp peak asig printk .5, kp ; Print out the peak value once per second. outs asig, asig endin i 1 0 3 e