| 1 |
%======================================= |
| 2 |
% Vocal Tract Animation Demo |
| 3 |
%======================================= |
| 4 |
\documentclass{article} |
| 5 |
\usepackage{VocalTract} |
| 6 |
\pagestyle{empty} |
| 7 |
|
| 8 |
\begin{document} |
| 9 |
%\input{vtLatex_TimeParams} % Use this file of Parameters otherwise I will use the codebook in Style file |
| 10 |
\psset{yunit=1.5cm,xunit=1.5cm} |
| 11 |
\begin{animateinline}[poster=first,loop,controls]{1}% |
| 12 |
\multiframe{\Nframes}{IndexStepVocalTract=0+1}{ |
| 13 |
\begin{pspicture}(0,-0.5)(6.5,8) |
| 14 |
\def\BreathType{0.5} % Normal Breathing [0.1 to 0.9] |
| 15 |
%=========== BreathTypeIncreaseLinearly ==== |
| 16 |
%\FPset\accelerBreath{0.00556} |
| 17 |
%\FPmul\BreathType\IndexStepVocalTract\accelerBreath |
| 18 |
%\FPadd\BreathType\BreathType{0.1} |
| 19 |
\SetOscAmp{\IndexStepVocalTract}{\BreathType} % For Breath |
| 20 |
\UpdateRespOscillation % For Breath |
| 21 |
\UpdateVocalTract{\IndexStepVocalTract} % Update Vocal Tract in the respective time |
| 22 |
\VocalChords % Show VCords |
| 23 |
\StomachCompartment % Show Stomach Compartment |
| 24 |
\rput(1.75,7){\ShowPhonemesGerman{\IndexStepVocalTract}} % Show the phonemes transcriptions |
| 25 |
\ShowPressure{\IndexStepVocalTract} % Show Pressure as Red Space |
| 26 |
\rput(2,0){\ShowLinearTubes{\IndexStepVocalTract}\VocalChords} % The linear model next to the human |
| 27 |
\rput(2.5,0){\ShowParameters} % Explain the parameters |
| 28 |
%------------ Grid and Axes Labels -------------- |
| 29 |
%\uput[45](0,8){$\times$ 10 cm} |
| 30 |
%\uput[45](3,0){$\times$ 10 cm} |
| 31 |
%\psgrid[gridcolor=blue,subgridcolor=gray,gridlabels=7pt,subgriddiv=10](0,0)(5,12) % subgriddiv=4,griddots=10, |
| 32 |
%------------------------------------------------ |
| 33 |
\end{pspicture} |
| 34 |
} % Multiframe |
| 35 |
\end{animateinline} |
| 36 |
\end{document} |