Code covered by the BSD License  

Highlights from
Two Tube Vocal Tract Model

image thumbnail

Two Tube Vocal Tract Model

by

 

20 Jan 2014 (Updated )

Computes the frequency response of a two-tube model excited at the glottis and terminated at lips.

Two_Tube_VT_GUI25
function Two_Tube_VT_GUI25
% Modifiable runGUI file
clc;
clear all;
fileName = 'Two_Tube_VT.mat';    %USER - ENTER FILENAME
fileData=load(fileName);
temp=fileData(1).temp;

f = figure('Visible','on',...
'Units','normalized',...
'Position',[0,0,1,1],...
'MenuBar','none',...
'NumberTitle','off');

Callbacks_Two_Tube_VT_GUI25(f,temp);    %USER - ENTER PROPER CALLBACK FILE
%panelAndButtonEdit(f, temp);       % Easy access to Edit Mode

% Note comment PanelandBUttonCallbacks(f,temp) if panelAndButtonEdit is to
% be uncommented and used
end

% 2 Panels -- one for VT length/area controls, one for graphics
% 2 Graphics Panels -- one for vocal tract frequency response, 
% one for vocal tract shapes (lengths and areas)
% 1 Text Box
% 12 Buttons
%   #1 - editable button - set rG parameter
%   #2 - editable button - set rL parameter
%   #3 - slider button - slider for rG value
%   #4 - slider button - slider for rL value
%   #5 - editable button - set length of first tube, l1
%   #6 - editable button - set length of second tube, l2
%   #7 - editable button - set area of first tube, A1
%   #8 - editable button - set area of second tube, A2
%   #9 - pushbutton - use for new run with new set of tube parameters
%   #10 - pushbutton - use for appending results of run to existing runs
%   #11 - editable button - name of text file for saving output
%   #12 - pushbutton - Close GUI

Contact us