; Select audio/midi flags here according to platform -odac -m0 --limiter=.95 ;;;realtime audio out, with limiter protection ; For Non-realtime ouput leave only the line below: ; -o pvoc.wav -W ;;; for file output any platform sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 ; by Menno Knevel 2023 gilen filelen "Mathews.wav" ; get length of impulse soundfile ; analyze sound file and output result to pvoc-ex file ires system_i 1,{{ pvanal Mathews.wav Mathews1.pvx }} ; default settings instr 1 ; untreated signal asig diskin2 "Mathews.wav", 1 prints "\n---***YOU NOW HEAR THE UNTREATED SOUND SAMPLE***---\n" outs asig*.8, asig*.8 endin instr 2 prints "\n---***YOU NOW HEAR THE RESULT OF THIS ANALYZED FILE:***---\n" ktime line 0, p3, gilen ; timepointer over the entire sample asig pvoc ktime, p4, "Mathews1.pvx", 1 outs asig*.6, asig*.6 endin i1 0 15.6 ; original sample i2 17 10 1 ; no change so original sample is played i2 28 2 1 ; played faster i2 31 30 1 ; slowed down, same pitch & i2 63 10 .6 ; sped up and lower pitch e