plotspec.1
来自「speech signal process tools」· 1 代码 · 共 289 行
1
289 行
.\" Copyright (c) 1997 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)plotspec.1 1.1 9/19/97 ERL.TH PLOTSPEC 1\-ESPS 9/19/97.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..if t .ds pi \(*p.if n .ds pi pi.SH NAMEplotspec \- Plot spectral record files (.fspec).SH SYNOPSIS.B plotspec[.BI \-d] [.BI \-l] [.BI \-r " range"] [.BI \-t " text"] . . . [.BI \-x " debug_level"] [.BI \-y " range"].br[.BI \-D] [.BI \-F] [.BI \-W " generic window system options"] [.BI \-X " range"] [.BI \-Y " range"] .I file.fspec.SH DESCRIPTION.PP.I plotspecplots records from ESPS spectral-feature-record (FEA_SPEC) files.These files can be created by the.I me_speccommand.More than one record may be plotted, superposed on one set of axes.If the input file is ``\-'', the standard input isread..PPThe default action is to plot the contents of the.I re_spec_valfield of the input records and,if the type is SPTYP_CPLX, the contents of.I im_spec_valas well.However, alternative output formats are available with the.BR \-d ,.BR \-D ,and.BR \-Foptions.When the spectrum type is SPTYP_REAL and a power is required,as with the.BR \-dand.BR \-Doptions,the square of.I re_spec_valis used..PPThe plot is displayed in an X window. The display has three pull downmenus: \fBFile\fR, \fBViews\fR, and \fBHelp\fR. The \fBFile\fR menuhas two items: \fBPrint\fR and \fBQuit\fR. \fBPrint\fR selects adialog box that has controls to produce a PostScript output of theplot. The \fBQuit\fR item causes the program to exit..PPThe \fBViews\fR menu has selectors that enable or disable display ofthe box around the plot, the horizontal grid, the vertical grid, anytext (usually the file name and date), and the tick marks on thereticle. This menu also has buttons to enable all of the above items,to redraw the original plot, and to refresh the plot as it is currentlyshown..PPThe \fBHelp\fR menu has two items: \fBon Plot Tool\fR and \fBAboutPlot Tool\fR. These display a help file and version information..SH OPTIONS.PPThe following options are supported..TP.BI \-dPlot the power spectrum cumulative distribution function..TP.BI \-lPlot frequencies on a logarithmic scale (labeled in decades).When the vertical scale is in dB, this option results in Bode-plot format..TP.BI \-r " first" : "last".TP.BI \-r " first" :+ "incr".TP.BI \-r " frame"Range of records to be plotted.The default range is the entire file.In the first form, a pair of unsigned integers gives the first and lastrecords of the range.The first frame in the file counts as number 1regardless of any reference file.If.I firstis omitted, 1 is used.If.I lastis omitted, the last record of the file is used.The second form is equivalent to the first with.IR last " = " first " + " incr.The third form is equivalent to.BI \-r " frame" : "frame.".TP.BI \-t " text"A line of text to be printed below the plot. If this option is specifiedmore than once, the lines are printed in the order given..TP.BI \-x " debug_level"If.I debug_levelis nonzero, debugging information is written to the standard error output.The higher the level, the more messages are written.Default is 0 (no debugging output)..TP.BI \-y " low" : "high"Data range. Specifies spectral values for the lower and upper.IR y -axislimits. If.I lowor.I highis unspecified, the limit is determined from the file contents.The values are adjusted by.I plotspecin an attempt to make an esthetically pleasing plot.To specify exact limits, use.B \-Yinstead..TP.BI \-DPlot the logarithmically scaled power (in dB) regardless of whetherthe spectrum type is SPTYP_DB or not.The arguments of the.B \-yand.B \-Yoptions are interpreted in dB..TP.BI \-FPlot the phase of complex data, rather than the real and imaginary parts.The input file must contain data of type SPTYP_CPLX.The vertical axis is scaled in radians, from \-\*(pi to \*(pi,and the.B \-yand.B \-Yoptions are ignored..TP.BI \-WThis option is followed by a characterstring consisting of X window geometry information to specify the sizeand location of the plot window. The form of the string is\fI=width\fRx\fPheight+x+y\fR (any of \fI=\fR,\fIwidth\fRx\fPheight\fR, or \fI+x+y\fR can be omitted).For example, an initial position can be specified as \fI+100+0\fR, andan initial size can be specified as \fI=500\fRx\fP200\fR..TP.BI \-X " low" : "high".TP.BI \-X " limit"Frequency range. Specifies frequency values for the lower and upper.IR x- axislimits. If.I lowor.I highis omitted, the limit is determined from the file contents.The second form is equivalent to.BR \-X " 0" : \fIlimit\fPif the header value.I freq_formatis SPFMT_SYM_CTR or SPFMT_SYM_EDGE and to.BI \-X " \-limit" : "limit"otherwise..TP.BI \-Y " range"Specifies exact lower and upper limits for the.IR y- axis..PP.SH "ESPS PARAMETERS"The ESPS parameter file is not read..SH "ESPS COMMON"The ESPS common file is not read or written..SH "ESPS HEADERS"The following values are explicitly readfrom the header of the spectral-feature-record file:.I common.type,and the generic header items.I num_freqsand.I freq_format.In addition, the header is examined by the library routines.I allo_feaspec_rec,.I get_feaspec_rec,and.I put_feaspec_rec..SH SUBROUTINES CALLEDplotscale, drawbox, plot2data and printtime..SH SEE ALSOme_spec(1\-ESPS), plotsd(1\-ESPS), FEA_SPEC(5\-ESPS).SH DIAGNOSTICS.PPplotspec: unknown option:.RI \- letter.brUsage: plotspec [-d] [-l] [-r range] [-t text]... [-x debug_level][-y range].br [-D] [-F] [-X range] [-Y range] file.fspec .brplotspec: Too many \-t options.brplotspec: no input file.brplotspec: more than one input file.brplotspec:.I filenameis not an ESPS file..brplotting records.I n1thru.I n2..brplotspec: can't open temporary file..brplotspec: EOF encountered before start reached..brcan't allocate memory for.I npoints..brplotspec: only freq formatsSPFMT_SYM_EDGE, SPFMT_SYM_CTR, SPFMT_ASYM_EDGE, SPFMT_ASYM_CENsupported so far..brplotspec: discrete distributions not yet supported..brplotspec: \-s option not implemented yet..brplotspec: \-d and \-F options incompatible..brplotspec: \-F option requires complex data..brplotspec: can't open temporary file..brplotspec: freq format SPFMT_ARB_VAR not yet supported..brplotspec: freq format SPFMT_ARB_FIXED not yet supported..brplotspec: unrecognized freq format.I n..brfrequency out of range..brdata out of range..brplotspec: no input records.br\-T option requires argument..SH WARNINGS.PPTo overlay FEA_SPEC files from.IR fft (1-ESPS)on FEA_SPEC files from.IR me_spec (1-ESPS),the.B \-Goption of.I me_specmust be used..SH BUGS.PPFrequency formats SPFMT_ARB_VAR and SPFMT_ARB_FIXED are not yet supported.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?