% method of class @signal
% function sig=vocoder(sig,warp_factor)
% produces a time warped version of the signal. 
% built on the "A Phase Vocoder in Matlab" on 
% http://www.ee.columbia.edu/~dpwe/resources/matlab/pvoc/
%
% (c) 2005, University of Cambridge, Medical Research Council 
% Stefan Bleeck (stefan@bleeck.de)
% http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual
% $Date: 2003/01/20 18:33:51 $
% $Revision: 1.4 $

function sig=vocoder(a,warp_factor)

data=get(a); % get the values

newdata=pvoc(data,warp_factor); % call the warping routine
sig=signal(newdata,getsr(a));