man.diff

来自「speech signal process tools」· DIFF 代码 · 共 196 行

DIFF
196
字号
.\" Copyright (c) 1993 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)specsubr.1	1.3 3/28/97 ERL.ds ]W (c) 1993 Entropic Research Laboratory, Inc..if n .ds - ---.if t .ds - \(em\h'-0.2m'\(em.TH SPEC_SUBR  1\-ESPS 3/28/97.SH NAME.nfspec_subr \- Select subrange of frequencies in FEA_SPEC file.fi.SH SYNOPSIS.Bspec_subr.BI \-b " band"[.BI \-r " range"] [.BI \-x " debug_level"].I in.spec.I out.spec.SH DESCRIPTION.PPGiven an ESPS spectrum (FEA_SPEC) file.I spec_subrselects the spectrum data corresponding to frequencies in a specified bandand writes the result to an output FEA_SPEC file (see.IR FEA_SPEC (5\-ESPS)).The output file is in ``ARB_FIXED'' format,meaning that the header contains an explicit list of the selected frequencies.``Extraneous'' input fields (those not part of the FEA_SPEC specification)are ignored..SH OPTIONS.PPThe following options are supported:.TP.BI \-b " low" : "high" "\fR [(none)]".TP.BI \-b " low" :+ "width"This ``option'' is required; there are no default values.The first form specifies the selected band of frequenciesby giving the upper and lower limits as a pair of real number.The second for (with the plus sign)specifies the band by its lower limit and width.Thus, if.IR high " = " low " + " width,the two forms specify the same frequency band..TP.BI \-r " start" : "last" "\fR [1:(last in file)]".TP.BI \-r " start" :+ "incr".TP.BI \-r " start"In the first form, a pair of unsigned integers specifies the rangeof records to be processed.Either.I startor.I lastmay be omitted; then the default value is used.If.IR last " = " start " + " incr,the second form (with the plus sign) specifies the same range as the first.The third form (omitting the colon) specifies a single record..TP.BI \-x " debug_level \fR[0]\fP"If.I debug_levelis positive,.I testsdprints debugging messages and other information on the standard erroroutput.  The messages proliferate as the.I debug_levelincreases.  If \fIdebug_level\fP is 0 (the default), no messages areprinted..SH ESPS PARAMETERS.PPNo ESPS parameter file is accessed..SH ESPS COMMON.PPThe ESPS common file is not accessed..SH ESPS HEADERS.PPThe program reads the header items.I freq_format,.I spec_type,.I contin,.I num_freqs,and.I frame_methin the header of the input file.It also checks for the presence of the field.I tot_powerin the input to decide whether to create the same field is the output..PPThe header of the output file is a newly created FEA_SPEC headercontaining the required generic header items and field definitions (see.IR FEA_SPEC (5\-ESPS)).The value of.I freq_formatin the output is ARB_FIXED, regardless of the value in the input(which must not be ARB_VAR, however).The values of.I spec_type,.I contin,and.I frame_methare copied from the input, and so is.I frmlenif.I frame_methis FIXED.The value of.I num_freqsis the number of frequencies represented in the output, and the header item.I freqslists the frequencies..PPIf the input file is tagged, then so is the output.In that case either.I src_sfor.I sfis copied from the input header\*-\c.I src_sfif present and.I sfotherwise.The generic header item.I start_timeis written with a value computed by taking the.I start_timefrom the input header (or zero, if the item doesn't exist) and adding to itthe relative time from the first record in the input fileto the first record processed.The computation of.I start_timedepends on the value of the generic header item.I record_freqin input.If that item isn't present,.I start_timeis just copied from the input to the output..PPThe items.I startand.I nanare written to contain the starting record numberand the number of records to be processed(with 0 implying all records up to the end of the file).As usual, the command line is added as a comment,and the header of the input file is added as a source file to the output..PPItems.I band_lowand.I bandin the output header record the lower limit and the bandwidthof the band specified with.BR \-b ..SH FUTURE CHANGES.PPParameter-file processing..SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PPIf an unknown option is specified, or if the number of file names is wrong,.I spec_subrprints a synopsis of command-line usage and exits.The program exits with an error message if any of the following are true:.B \-rspecifies an empty range or a starting record number of 0 or less,.BR \-bis lacking or specifies a bandwidth of 0 or less,no frequencies of the input file lie in the given range,or the input file has a.I freq_formatof ARB_VAR.A warning message is issued if a tagged input file contains neither.I src_sfnor.I sf..SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".PP.IR FEA_SPEC (5\-ESPS))..SH AUTHOR.PP

⌨️ 快捷键说明

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