Phase Vocoder Program
Uses the pv program from the Computer
Audio Research Laboratory (CARL), UCSD,
La Jolla, California

USAGE: pv  R N Nw D I P Np synt infile.flt outfile.flt
        R    - sampling rate in Hz
        N    - FFT length in samples (must be 2^n)
        Nw   - window size in samples
        D    - decimation factor in samples [0 for synthesis only]
        I    - interpolation factor in samples [0 for analysis only]
        P    - oscillator bank pitch factor [0 for overlap-add resynthesis]
        Np   - linear prediction order [0 for none]
        synt - synthesis channel threshold [0 for all channels]

You need to convert the file to float first, then
do your phase vocoder processing, then convert it back.
More details and comments on the arguments:

        R is sampling rate, 8000, 22050, or 44100 most common
  
        N is FFT length in samples (2^n) 256 yields about 10ms 
                windows at 22050, 64 slightly less for 8012.
  
        Nw is window size in samples (<=N).  N/Nw is spectral
                interpolation (zero padding) factor.  Some spectral
                interpolation is nice if lots of processing or
                interpolation will be performed in transformation.
        
        D is hop size (N/8 is good, N/2 or 4 might work)
  
        I is time interpolation factor 
                (I = T*D, where T is time shift factor)

        P is pitch shift factor, a floating point multiplier on pitch

        Np is linear prediction order, This holds spectral envelope constant.
        
        synt is synthesis channel threshold.  This causes resynthesis or a 
                particular sinusoidal component to occur only if the amplitude 
                of that component is sufficiently high.  Noise reduction and
                reverberation removal is possible using this feature. 

___________________________________________________________________

Try this script: Shifting Pitch, Time, Both

wv2float Spechs22.wav Spechs22.flt
pv 22050 2048 512 64 64 1.75 0 0.0 Spechs22.flt shfpitch.flt
pv 22050 4096 1024 64 120 1.0 0 0.0 Spechs22.flt shftime.flt
pv 22050 4096 1024 128 64 0.75 0 0.0 Spechs22.flt shfboth.flt
float2wv shfpitch.flt shfpitch.wav -s 22050
float2wv shftime.flt shftime.wav -s 22050
float2wv shfboth.flt shfboth.wav -s 22050

wv2float Music22.wav Music22.flt
pv 22050 4096 1024 64 200 1.3 0 0.0 Music22.flt MusBoth.flt
float2wv MusBoth.flt MusBoth.wav -s 22050

