Home > @d_opvt > convert1.m

convert1

PURPOSE ^

CONVERT1 Converts articulatory parameters to acoustic measures

SYNOPSIS ^

function [F,B,A,Af,P1,P2,Tf] = convert1(vtm,X)

DESCRIPTION ^

 CONVERT1  Converts articulatory parameters to acoustic measures
   This function takes as input:
       vtm - vocal tract object
       X   - Matrix of articulatory sets, one per column
   And provides as output:
       F   - Formants
       B   - Bandwidths
       A   - Amplitude
       Af  - Area functions
       P1,P2 - Plotting parameters

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [F,B,A,Af,P1,P2,Tf] = convert1(vtm,X)
0002 % CONVERT1  Converts articulatory parameters to acoustic measures
0003 %   This function takes as input:
0004 %       vtm - vocal tract object
0005 %       X   - Matrix of articulatory sets, one per column
0006 %   And provides as output:
0007 %       F   - Formants
0008 %       B   - Bandwidths
0009 %       A   - Amplitude
0010 %       Af  - Area functions
0011 %       P1,P2 - Plotting parameters
0012 
0013 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0014 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@d_opvt/convert1.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0015 
0016 % $NoKeywords: $
0017 
0018 % Setup globals
0019 global RELEASE
0020 
0021 % Initialize the outputs data to NaNs
0022 F = NaN*zeros(5,1);
0023 B = NaN*zeros(5,1);
0024 A = NaN*zeros(5,1);
0025 
0026 % Cycle through each input set
0027 for i=1:size(X,2),
0028     [Ft,Bt,At,Afunc,Tfunc,P1{i},P2t] = doAM(X(:,i));
0029     Af{i} = Afunc;
0030     Tf{i} = Tfunc;
0031     F(1:length(Ft),i)=Ft; 
0032     B(1:length(Bt),i)=Bt; 
0033     A(1:length(At),i)=At;
0034     P2(:,i) = P2t';
0035 end

Generated on Tue 27-Mar-2007 12:06:24 by m2html © 2003