From: fujishita t. <fjs...@us...> - 2017-06-08 09:23:25
|
Update of /cvsroot/sp-tk/SPTK/doc/ref_e In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13062 Modified Files: c2sp.tex dfs.tex fdrw.tex fftr.tex grpdelay.tex histogram.tex lsp2sp.tex mgc2sp.tex phase.tex sin.tex spec.tex train.tex vopr.tex window.tex xgr.tex Log Message: add figure of example Index: lsp2sp.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/lsp2sp.tex,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** lsp2sp.tex 10 May 2017 07:09:59 -0000 1.7 --- lsp2sp.tex 8 Jun 2017 09:23:23 -0000 1.8 *************** *** 101,109 **** \begin{qsection}{EXAMPLE} The example below takes the 15-th order LSP from the file ! {\em data.cep} in float format, evaluates the spectrum, and presents it in the screen: \begin{quote} ! \verb! lsp2sp -m 15 data.lsp | glogsp | xgr ! \end{quote} \end{qsection} --- 101,112 ---- \begin{qsection}{EXAMPLE} The example below takes the 15-th order LSP from the file ! {\em data.lsp} in float format, evaluates the spectrum, and presents it in the screen: \begin{quote} ! \verb! lsp2sp -m 15 data.lsp | glogsp -x 5 | xgr ! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/lsp2sp.pdf} + \end{center} \end{qsection} Index: dfs.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/dfs.tex,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** dfs.tex 22 Dec 2016 10:52:58 -0000 1.21 --- dfs.tex 8 Jun 2017 09:23:23 -0000 1.22 *************** *** 100,103 **** --- 100,106 ---- \verb!impulse | dfs -p data.p -z data.z | spec | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/dfs.pdf} + \end{center} The files {\em data.p} and {\em data.z} can be obtained through the {\em x2x} command. Index: sin.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/sin.tex,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** sin.tex 22 Dec 2016 10:52:59 -0000 1.20 --- sin.tex 8 Jun 2017 09:23:23 -0000 1.21 *************** *** 69,77 **** \begin{qsection}{EXAMPLE} ! In the following example, a sin wave sequence is parsed through ! a Blackman window and the results are displayed the results on the screen: \begin{quote} \verb!sin -p 12.3 | window | fdrw | xgr! \end{quote} \end{qsection} --- 69,80 ---- \begin{qsection}{EXAMPLE} ! In the following example, a sin wave sequence is passed through ! a Blackman window and the results are displayed on the screen: \begin{quote} \verb!sin -p 12.3 | window | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/sin.pdf} + \end{center} \end{qsection} Index: fftr.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/fftr.tex,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** fftr.tex 22 Dec 2016 10:52:58 -0000 1.21 --- fftr.tex 8 Jun 2017 09:23:23 -0000 1.22 *************** *** 96,99 **** --- 96,102 ---- \verb!sin -p 30 | window | fftr -A | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/fftr.pdf} + \end{center} \end{qsection} Index: spec.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/spec.tex,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** spec.tex 22 Dec 2016 10:52:59 -0000 1.25 --- spec.tex 8 Jun 2017 09:23:23 -0000 1.26 *************** *** 151,154 **** --- 151,157 ---- \verb!train -p 50 | dfs -a 1 0.9 | window | spec | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=4cm]{fig/spec_1.pdf} + \end{center} \par This example evaluates the frequency response of *************** *** 158,161 **** --- 161,168 ---- \verb!spec -p data.p -z data.z | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=4cm]{fig/spec_2.pdf} + \end{center} + A similar result can be obtained with the following command, for a stable filter: *************** *** 163,171 **** \verb!impulse | dfs -p data.p -z data.z | spec | fdrw | xgr ! \end{quote} ! Also, in the following example, the floor value is set as -30 dB per frame by using the -E option. \begin{quote} \verb! spec -E -30 data.f | fdrw | xgr ! \end{quote} --- 170,183 ---- \verb!impulse | dfs -p data.p -z data.z | spec | fdrw | xgr ! \end{quote} ! \begin{center} ! \includegraphics[width=4cm]{fig/spec_3.pdf} ! \end{center} Also, in the following example, the floor value is set as -30 dB per frame by using the -E option. \begin{quote} \verb! spec -E -30 data.f | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=4cm]{fig/spec_4.pdf} + \end{center} Index: mgc2sp.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/mgc2sp.tex,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** mgc2sp.tex 22 Dec 2016 10:52:58 -0000 1.26 --- mgc2sp.tex 8 Jun 2017 09:23:23 -0000 1.27 *************** *** 126,131 **** and the log magnitude spectrum is evaluated and plotted: \begin{quote} ! \verb!mgc2sp -m 12 -a 0.35 -c 2 < data.mgcep | glogsp | xgr! \end{quote} \end{qsection} --- 126,134 ---- and the log magnitude spectrum is evaluated and plotted: \begin{quote} ! \verb!mgc2sp -m 12 -a 0.35 -c 2 < data.mgcep | glogsp -x 5 | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/mgc2sp.pdf} + \end{center} \end{qsection} Index: train.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/train.tex,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** train.tex 22 Dec 2016 10:52:59 -0000 1.18 --- train.tex 8 Jun 2017 09:23:23 -0000 1.19 *************** *** 79,82 **** --- 79,85 ---- \verb!train | dfs -b 1 0.9 | window | spec | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/train.pdf} + \end{center} \end{qsection} Index: c2sp.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/c2sp.tex,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** c2sp.tex 22 Dec 2016 10:52:57 -0000 1.19 --- c2sp.tex 8 Jun 2017 09:23:23 -0000 1.20 *************** *** 83,88 **** and presents it in the screen: \begin{quote} ! \verb! c2sp -m 15 data.cep | grlogsp | xgr ! \end{quote} \end{qsection} --- 83,91 ---- and presents it in the screen: \begin{quote} ! \verb! c2sp -m 15 data.cep | grlogsp -x 5 | xgr ! \end{quote} + \begin{center} + \includegraphics[width=3cm]{fig/c2sp.pdf} + \end{center} \end{qsection} Index: fdrw.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/fdrw.tex,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** fdrw.tex 7 Feb 2017 06:55:19 -0000 1.26 --- fdrw.tex 8 Jun 2017 09:23:23 -0000 1.27 *************** *** 102,107 **** \verb!impulse | dfs -a 1 0.8 0.5 | fdrw -W 1.0 -H 0.3 | xgr! \end{quote} ! \hspace{3cm} ! \includegraphics[scale=0.7]{fig/fdrw_1.pdf} The graph width is 10cm and its height is 3cm. --- 102,108 ---- \verb!impulse | dfs -a 1 0.8 0.5 | fdrw -W 1.0 -H 0.3 | xgr! \end{quote} ! \begin{center} ! \includegraphics[width=6cm]{fig/fdrw_1.pdf} ! \end{center} The graph width is 10cm and its height is 3cm. *************** *** 112,117 **** \verb!impulse | dfs -a 1 0.8 0.5 | spec | fdrw -y -60 40 | xgr! \end{quote} ! \hspace{3cm} ! \includegraphics[scale=0.7]{fig/fdrw_2.pdf} The $y$ axis goes from $-60$ dB to $40$ dB. --- 113,119 ---- \verb!impulse | dfs -a 1 0.8 0.5 | spec | fdrw -y -60 40 | xgr! \end{quote} ! \begin{center} ! \includegraphics[width=6cm]{fig/fdrw_2.pdf} ! \end{center} The $y$ axis goes from $-60$ dB to $40$ dB. *************** *** 128,133 **** \verb!xgr ! \end{quote} ! \hspace{3cm} ! \includegraphics[width=4cm,height=18cm]{fig/fdrw_3.pdf} The command {\em psgr} prints the output to a laser printer in the --- 130,136 ---- \verb!xgr ! \end{quote} ! \begin{center} ! \includegraphics[width=3cm]{fig/fdrw_3.pdf} ! \end{center} The command {\em psgr} prints the output to a laser printer in the Index: phase.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/phase.tex,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** phase.tex 10 May 2017 07:09:59 -0000 1.23 --- phase.tex 8 Jun 2017 09:23:23 -0000 1.24 *************** *** 134,137 **** --- 134,140 ---- \verb!phase -p data.p -z data.z | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/phase_1.pdf} + \end{center} If the filter defined by {\em data.p}, {\em data.z} is stable then the following command will give a similar result: *************** *** 139,142 **** --- 142,148 ---- \verb!impulse | dfs -p data.p -z data.z | phase | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/phase_2.pdf} + \end{center} \end{qsection} Index: xgr.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/xgr.tex,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** xgr.tex 22 Dec 2016 10:52:59 -0000 1.21 --- xgr.tex 8 Jun 2017 09:23:23 -0000 1.22 *************** *** 97,100 **** --- 97,103 ---- \verb!fdrw < data.f | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/xgr.pdf} + \end{center} \end{qsection} \begin{qsection}{NOTICE} Index: histogram.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/histogram.tex,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** histogram.tex 22 Dec 2016 10:52:58 -0000 1.20 --- histogram.tex 8 Jun 2017 09:23:23 -0000 1.21 *************** *** 81,84 **** --- 81,87 ---- \verb!histogram -i -16000 -j 16000 -s 100 data.f | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/histogram.pdf} + \end{center} \end{qsection} Index: window.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/window.tex,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** window.tex 22 Dec 2016 10:52:59 -0000 1.20 --- window.tex 8 Jun 2017 09:23:23 -0000 1.21 *************** *** 104,107 **** --- 104,110 ---- \verb!sin -p 20 | window | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/window_1.pdf} + \end{center} \par This example passes the excitation generated through a train pulse *************** *** 113,116 **** --- 116,122 ---- \verb!spec -l 512 | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/window_2.pdf} + \end{center} \end{qsection} Index: vopr.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/vopr.tex,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** vopr.tex 22 Dec 2016 10:52:59 -0000 1.20 --- vopr.tex 8 Jun 2017 09:23:23 -0000 1.21 *************** *** 174,177 **** --- 174,180 ---- \verb!sin -p 30 -l 1000 | vopr data.w -l 256 -m | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/vopr_1.pdf} + \end{center} Similar results as from the above example can be obtained using the following: Here, it is considered that the contents of {\em data.w} correspond to a Blackman window: *************** *** 179,182 **** --- 182,188 ---- \verb!sin -p 30 -l 1000 | window | fdrw | xgr! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/vopr_2.pdf} + \end{center} For other examples, suppose {\em data.a} contains \begin{displaymath} Index: grpdelay.tex =================================================================== RCS file: /cvsroot/sp-tk/SPTK/doc/ref_e/grpdelay.tex,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** grpdelay.tex 22 Dec 2016 10:52:58 -0000 1.20 --- grpdelay.tex 8 Jun 2017 09:23:23 -0000 1.21 *************** *** 95,98 **** --- 95,101 ---- \verb! impulse | dfs -a 1 0.9 | grpdelay | fdrw | xgr ! \end{quote} + \begin{center} + \includegraphics[width=6cm]{fig/grpdelay.pdf} + \end{center} \end{qsection} |