view aim-mat/tools/@signal/straight.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
% mystraight
% transforms it with two parameters: scale and fotrans

function sigret=straight(sig,f0trans,freqscale,timescale)

mystraight('set_grafix',0);
mystraight('initialize');
mystraight('initializeparams');
mystraight('setwavedata',sig);
mystraight('source',sig);
mystraight('bandcorrbtn');
mystraight('bypassbtn');

scales(1)=f0trans;
scales(2)=freqscale;
scales(3)=timescale;

mystraight('set_scales',scales);
sigret=mystraight('synthesizegraded');