main_artm.m

来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 109 行

M
109
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% main.m
%
% This is the main funtion for the articulatory synthesizer
% 
% Written by : John Wu
% Date : March 2, 1997
% modified by D. G. Childers 7/1/98, 7/14/98
% 
% This window was called artm.
% 
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
close all;
clear;
clc;



%path(path,'.\data');
%path(path,'.\synthesis');
%path(path,'.\inverse_filter');
%path(path,'.\excitation');
path('.\data',path);
path('.\synthesis',path);
path('.\inverse_filter',path);
path('.\excitation',path);

global BACK_COLOR TEXT_COLOR LINE_COLOR main_h main1_h;
global TESTFMRK;


%color_flag=0;          % Black background and white text
color_flag=1;           % White background and black text

if color_flag == 1
	BACK_COLOR=[1 1 1];%white
   TEXT_COLOR=[0 0 0];%black
   LINE_COLOR=[0 0 1];%blue
else
	BACK_COLOR=[0 0 0];
   TEXT_COLOR=[1 1 1];
   LINE_COLOR=[0 0 1];%blue
end
% Define some character strings
o_fname='';
o_fmname='';
o_pname='';
o_mkname='';

catch1 = 'break;';

%menu;

PV=[10 100 170 350];

% Open menu window


   main_h=figure('Position',PV,...
      'Resize','on',...
      'Numbertitle','off',...
      'color',[1 1 1],...
      'Name','Articultory Speech Synthesizer - Main Window');

   
   main_file_h=uicontrol('Style','pushbutton',...
      'Position',[15 300 130 30],...
      'String','File',...
      'Callback','file_load_save');
   
   main_shape_h=uicontrol('Style','pushbutton',...
      'Position',[15 250 130 30],...
      'String','Shape Settings',...
      'Callback','sh_set');
   
   main_setup_opt_h=uicontrol('Style','pushbutton',...
      'Position',[15 200 130 30],...
      'String','Optimize',...
      'Callback','opt_set');

   main_excitation_h=uicontrol('Style','pushbutton',...
      'Position',[15 150 130 30],...
      'String','Excitation - LF Model',...
      'Callback','exc_sou');


   main_syn_h=uicontrol('Style','pushbutton',...
      'Position',[15 100 130 30],...
      'String','Synthesize',...
      'Callback','syn_win');

   main_quit_h=uicontrol('Style','pushbutton',...
      'Position',[15 50 130 30],...
      'String','Quit',...
      'Callback','close_main_artm');

main1_h=figure('Units','Normalized',...
   'Position',[0.24 0.16 0.74 0.5], 'Resize', 'on',...
   'NumberTitle','off','color','white',...
   'Name','Canvas for Articulatory Speech Synthesizer (Main Window)');







⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?