view aim-mat/tools/@signal/vocoder.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
children 20ada0af3d7d
line wrap: on
line source
% 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));