⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 man.diff

📁 speech signal process tools
💻 DIFF
字号:
.\" Copyright (c) 1989 Entropic Speech, Inc. All rights reserved..\" @(#)demux.1	1.4	4/2/97	 ESI.TH DEMUX 1\-ESPS 4/2/97.ds ]W (c) 1991 ERL, Inc..if t .ds - \(em\h'-0.2m'\(em.if n .ds - ---.SH NAMEdemux \- (demultiplex) extract real or complex channels from a sampled-data file.SH SYNOPSIS.B demux[.BI \-e " grange"] [.BI \-o " prototype"] [.BR \- { prs } " \fIrange\fP"] [.BI \-x " debug_level"] [.B \-S] [.BI \-P " param_file"].I input.fsd[.I output1.fsd[.I output2.fsd] .\ .\ . ].SH DESCRIPTION.PPThe.I demux(``demultiplex'') program extracts the informationfrom selected channels of its input sampled-data (FEA_SD) fileand writes the information in either one multichannel output FEA_SD fileor a set of single-channel output files, one for each selected channel.(Channels can be selected with the.B \-eoption).Optionally,.I demuxmay also split complex input channelsinto pairs of real output channels.(See.BR \-S .)Any fields other than.I samplesin the input file are ignored..PPIf a single output filename is specified,a single multichannel file with that name is created, and all outputgoes to that file.If more than one output filename is specified, the number of namesmust equal the number of selected channels, and a single-channeloutput file is created for each selected channel.A single-channel output file for each selected channel is also createdif no output filename is specified.In that case the program generates output filenames automaticallyfrom a prototype, which must be given with the.B \-ooption.RI ( q.v. )or as the value of the ESPS parameter.I prototype..PPIf ``\-'' is written for the input file, the standard input is used.If ``\-'' is written for an output file, the standard output is used.At most one output file may be standard output..SH OPTIONS.PPThe following options are supported:.TP.BI \-e " grange"The argument should be a general range specification acceptable to.IR grange_switch (3-ESPSu).The format of the argument is that of a comma-separated list ofintegers and pairs.IB a : b,where.I aand.I bare integers.This specifies a set of integers that indicate the channel numbers of thechannels that are selected for output.For example,.I 2,5:8,12specifies channel 2, channels 5 through 8, and channel 12.Additionally, an expression.IB a :+ cmay be written instead of.IB a : b,where.I cis an integer such that.IR a + c = b.Thus.I 5:8could be replaced with.I 5:+3in the example..IPThe numbering of channels begins with 0.The channel numbers must be specified in increasing order without repetitions.If this option is not specified, the value of the parameter.I channelsis used,and if the parameter is not defined,the default is to output all the channels in the input file.Note that the channel numbers can be affected by the use of the \fB-S\fRoption described below..TP.BI \-o " prototype"This option is ignored if any explicit output filename is given.If no output file is named explicitly, and this option is specified,then each output channel is written to a separate, single-channel file,and the program creates output file names by modifying the option argument.I prototype.This must be a filename base.Each output file name is obtained by appending the correspondingchannel number to prototype string.(The numbering of the channels may be affected by the.B \-Soption; see the description of.BR \-S .)If this option is not selected,and no explicit output filenames are specified,the parameter.I prototypemust be defined..TP.BI \-p " range"For this program,.B \-pis a synonym for.BR \-r .See.B \-rfor the interpretation and the format of the argument..TP.BI \-r " first" : last.TP.BI \-r " first" :+ incrDetermines the range of records to be taken from an input file.In the first form, a pair of unsigned integersgives the numbers of the first and last records of the range.(Counting starts with 1 for the first record in the file.)If.I firstis omitted, 1 is used.If.I last is omitted, the last record in the file is used.The second form is equivalent to the first with .I "last = first + incr."If the specified starting record does not exist in the input file,the program exits with an error message.If the end of the input file is reached before the specified last record,processing stops with a warning message..TP.BI \-s " start" : end.TP.BI \-s " start" :+ incrDetermines the range in seconds of the data to be taken from the input file.In the first form, a pair of floating-point numbers givethe beginning time and ending time of the range.The second form is equivalent to the first with .I "last = first + incr."Each sample has a time given by.IR s " + (" r "\-1)/" f,where.I sis the value of the generic header item "start_time",.I ris the record number, and.I fis the sampling frequency, given by the generic header item "record_freq".This time may depend on the channel number,since the "start_time" item may be a vector with a component per channel;for present purposes the value for channel 0 is used.The range selected by the.B \-soption consists of the records for which the time is less than.I endbut not less than.I start..TP.BI \-x " debug_level"If.I debug_levelis positive, the program prints debugging messages as it progresses\*-\cthe higher the number, the more messages.The default level is 0, for no debugging output..TP.B \-SSplit complex input channels into pairs of real channels.The input file must have one of the complex data types:DOUBLE_CPLX, FLOAT_CPLX, LONG_CPLX, SHORT_CPLX, or BYTE_CPLX.(See.IR FEA (5-ESPS)for an explanation of these type codes.)The output file or files have the corresponding real data type:DOUBLE, FLOAT, LONG, SHORT, or BYTE.This option affects the numbering of channels used by the.B \-eand.B \-ooptions.The real and imaginary parts of the channel that normally is numbered.I cbecome channels number.RI 2 cand.RI 2 c +1,respectively, for purposes of the.B \-eand.B \-ooptions.(Channel numbers start from 0.).TP.BI \-P " param_file"The name of the parameter file.The default name is ``params''..SH "ESPS PARAMETERS".PPThe parameter file is not required to be present, as there are defaultvalues for all parameters.(But if no parameter.I prototypeis defined, the output file(s) must either be named explicitly or with.BR \-o .)If the file exists, the following parameters may be readif they are not determined by command-line options..TP.I "channels \- integer array"Channel numbers selected for output.This parameter is not read if the.B \-eoption is selected.The numbers must be in increasing order without duplications.The default is all channels in the input file..TP.I "prototype \- string"Prototype for output file names.This parameter is not read if the.B \-ooption is specified, or if the output file or files are named explicitly.Each channel selected for output is written to a file whose nameis the result of appending the channel number to the prototype.(See the Options section for the effect of.B \-Son channel numbering.).TP.I "start \- integer"The starting record number in the input file.This parameter is not read if the.BR \-p ,.BR \-r ,or.B \-soption is specified.The default is 1, meaning the beginning of the input file..TP.I "nan \- integer"The number of records to process in the input file.A value of 0 (the default) meanscontinue processing until the end of the input file is reached.This parameter is not read if the.BR \-p ,.BR \-r ,or.B \-soption is specified..TP.I "make_real \- string"A value of "YES" or "yes" means split complex input channels into pairsof real channels as if the.B \-Soption is in force.A value of "NO" or "no" indicates normal processing:the output data type is the same as the input type,and channels are not split when the type is complex.No other values are allowed.This parameter is not read if the.B \-Soption is specified.The default value is "NO"..SH "ESPS COMMON".PPThe parameters.I startand.I nanare read from the ESPS Common fileand take precedence over the values in the Parameter fileprovided thatCommon processing is enabled, the input file is not standard in,the Common file is newer than the parameter file,and the parameter.I filenamein the Common file matches the name of the input file.These values do not take precedenceover values established on the command line with.BR \-p ,.BR \-r ,or.BR \-s ..PPThis program does not write the Common file..PPESPS Common processing may be disabledby setting the environment variable USE_ESPS_COMMON to.I off.The default ESPS Common file is.I espscomin the user's home directory.This may be overiddenby setting the environment variable ESPSCOM to the desired path.User feedback of Common processing is determinedby the environment variable ESPS_VERBOSE, with 0 causing no feedbackand increasing levels causing increasingly detailed feedback.If ESPS_VERBOSE is not defined, a default value of 3 is assumed..SH "ESPS HEADERS".PPEach output header is a new FEA_SD file header,with appropriate items copied from the input header..PPThe generic header item "record_freq" from the inputis copied into the output headers..PPThe generic header item "start_time" is included in every output file.It is a single number for a single-channel output fileor a multichannel output filein which all channels have the same starting time;otherwise it is a vector with one element for each channel in the output file.The starting time for a channel is its starting time in the input fileplus an offset in case the data taken from the input filedo not start with the first record.The offset is given by.RI ( r \-1)/ fwhere.I ris the starting record number in the input file and.I fis the sampling frequency given by the "record_freq" header item..PPIf the input file has a "max_value" header item,then so do the output files..SH EXAMPLES.PPCopy data from channel 3 of a multichannel FEA_SD input file.I aaa.fsdto make one single_chanel output file.I xxx.fsd..IP.I "demux \-e3 aaa.fsd xxx.fsd".PPCopy data from channels 0, 2 through 5, and 7 of an input FEA_SD file.I aaa.fsdto make a 6-channel output FEA_SD file.I xyz.fsd..IP.I "demux \-e 1,2:5,7 aaa.fsd xyz.fsd".PPCopy data from channels 0, 1, and 2 of input file.I bbb.fsdto make single-channel output files.I xxx.fsd,.I yyy.fsd,and.I zzz.fsd,respectively.  The input file must have exactly 3 channels..IP.I "demux bbb.fsd xxx.fsd yyy.fsd zzz.fsd".PPCopy data from channels 2, 3, and 4 of.I aaa.fsdto make 3 single-channel FEA_SD output files.I sig002.I sig003and.I sig004.IP.I "demux \-e2:4 \-o sig aaa.fsd".PPCopy the data from a single-channel complex input file.I ccc.fsdto make a 2-channel real output file.I rst.fsd.IP.I "demux \-S ccc.fsd rst.fsd".PPCopy the data from the imaginary part of channel 3of a multichannel complex input file.I cde.fsdto make one single-channel real output file.I r007(7 = 2\(mu3 + 1.).IP.I "demux \-S \-e7 \-o r cde.fsd".SH "SEE ALSO".PP.nf\fImux\fR(1-ESPS), \fIcopysps\fR(1-ESPS), \fIaddgen\fR(1-ESPS), FEA_SD(5-ESPS), FEA(5-ESPS).fi.SH DIAGNOSTICS.PPThe program exits with an error message if any of the following occur.  The command line cannot be parsed.  More than one output file name is ``\-''.  The input file cannot be opened or is not an ESPS sampled-data file.  The number of explicit output filenames is greater than 1 and not equal tothe number of selected channels.  A selected channel does not exist.  \-S is specified and the input data type is real.  Channel numbers are duplicated or not specified in increasing order  There is no explicit output file name and no prototype.PPThe program issues a warning message if the end of a range specified by a.BR \-p ,.BR \-r ,or.B \-soption is not reached..SH "BUGS".PPThe \fB-s\fR option is not implemented in this version..SH "AUTHOR".PPManual page by Rodney Johnson.Program by Alan Parker.

⌨️ 快捷键说明

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