Home > @d_opvt > d_opvt.m

d_opvt

PURPOSE ^

D_OPVT Constructor for diva operator for vocal tract object

SYNOPSIS ^

function op = d_opvt(varargin)

DESCRIPTION ^

D_OPVT Constructor for diva operator for vocal tract object
   The operator does two things regarding a vocal tract.
   a. Plots the shape of the vocal tract
   b. Synthesizes the sound corresponding to the vocal tract
      shape

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function op = d_opvt(varargin)
0002 %D_OPVT Constructor for diva operator for vocal tract object
0003 %   The operator does two things regarding a vocal tract.
0004 %   a. Plots the shape of the vocal tract
0005 %   b. Synthesizes the sound corresponding to the vocal tract
0006 %      shape
0007 
0008 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0009 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@d_opvt/d_opvt.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0010 
0011 % $NoKeywords: $
0012 
0013 % Setup globals
0014 global RELEASE
0015 
0016 switch nargin
0017 case 0
0018     % if no input arguments, create a default object
0019     % based on the Maeda vocal tract that has 7 dimensions
0020     op.idim = 7;
0021     op = class(op,'d_opvt');
0022 case 1
0023     % if single argument of class operator, return it
0024     if (isa(varargin{1},'d_opvt'))
0025         op = varargin{1};
0026    else
0027         error('Wrong argument type')
0028     end 
0029 otherwise
0030     error('Wrong number of input arguments')
0031 end

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