fftinv.1
来自「speech signal process tools」· 1 代码 · 共 183 行
1
183 行
.\" Copyright (c) 1986-1990 Entropic Speech, Inc..\" Copyright (c) 1991 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)fftinv.1 1.10 04 Jan 1993 ESI/ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH FFTINV 1\-ESPS 04 Jan 1993.SH "NAME"fftinv \- Inverse Fast Fourier Transform of ESPS FEA_SPEC file to FEA_SD file.SH "SYNOPSIS".B fftinv[.BI \-r " range"] [.BI \-t " output_type"] [.BI \-x " debug_level"].I specfile.I sdfile.SH "DESCRIPTION".PP.I Fftinvtakes an input ESPS spectral record file (FEA_SPEC file), .I specfile,and takes the inverse Fast Fourier Transform of one or more recordsto produce an ESPS sampled-data file (FEA_SD file).I sdfile.If the input file name.I specfileis replaced by "\-", then stdin is read; similarily, if.I sdfileis replaced by "\-", then the output is written to stdout..PPThe input FEA_SPEC file must have spectral type SPTYP_CPLX and frequency format SPFMT_ASYM_EDGE \- i.e., the full complex spectrum is stored. Such spectral records are produced by \fIfft\fP (1\-\s-1ESPS\s+1) using the \fB\-c\fP option. .SH "OPTIONS".PPThe following options are supported:.TP.BI \-r " first" : "last".TP.BI \-r " first" \- "last".TP.BI \-r " first" :+ "incr"In the first two forms, a pair of unsigned integersspecifies the range of input records to process. If .IR last " = " first " + " incr,the third form (with the plus sign) specifies the same range as thefirst two forms. If .I firstis omitted, the default value of 1 is used. If .I lastis omitted, then all records from .I firstare processed..TP.BI \-t " output_type"Specifies the ESPS data type of the output sampled-data file.Allowable values are DOUBLE, FLOAT, LONG, SHORT, BYTE,DOUBLE_CPLX, FLOAT_CPLX, LONG_CPLX, SHORT_CPLX, and BYTE_CPLX.Results are computed as float or float_cplxand converted to the specified type.If one of the 5 real types is specified, the output is the real partof the inverse-transformed data; the imaginary part is simply discardedwith no check to determine whether it is negligible.If the option is not specified, the generic header item.I "input_data"is read from the input file.If if the item exists and has the string "real" as its value,the output FEA_SD file is of type FLOATand contains only the real part of the inverse transform.Otherwise the output FEA_SD file has type FLOAT_CPLX..TP.BI \-x " debug_level\fR [0]\fP"Specifies that debugging output be printed on stderr; larger valuesof .I debug_levelresult in more output. The default is for no output. .SH "ESPS PARAMETERS".PPThe ESPS parameter file is not read..SH "ESPS COMMON".PPThe ESPS Common file is not read or written..SH "ESPS HEADERS".PPThe generic header items.I "spec_type"and.I "freq_format"are read from the input fileand checked to assure that they have the required values,SPTYP_CPLX and SPFMT_ASYM_EDGE..PPThe generic header item.I "num_freqs"is read from the input fileand determines the length of the inverse Fourier transform;the transform length is 1 less than the value of.I "num_freqs"because of the way spectral values are ordered in the ASYM_EDGE format: the zero-frequency value is in the middle,preceded by the negative-frequency valuesand followed by the positive-frequency values,with the value at the folding frequency duplicatedas both the first and the last value.The transform length is written as the header item.I "inv_fft_length"in the output file.The generic header item.I "fft_length,"if it exists, is read from the input file and checked for consistency;if it is different from the transform length determined from.I "num_freqs,"a warning is written on.I stderr..PPThe generic header item.I "sf"is read from the input file if presentand determines the value used for the sampling frequency;otherwise a default of 8000 Hz is used.This value is written as the header item.I "record_freq"in the output fileand is used for scaling and other purposes during the computation..PPThe number of samples in the first input frame is obtained,either from the generic header item.I "frmlen"or from the field.I "frame_len"in the first record.One half this frame length is converted to seconds,with the sampling frequency as the conversion factor;the resulting value is the offsetfrom the beginning of the first input frame to the middle.The.I "start_time"header item is read from the input file if present;otherwise a default of 0 is used.This is assumed to refer to the middle of the first frame.The offset determined from the length of the first frame is subtractedto get the time corresponding to the beginning of the first frame.A second adjustment to this value determines the value to be written as the.I "start_time"header item of the output file:adding the offset from the first record of the input fileto the first record actually processed..PPIf the.B \-toption is not specified, the generic header item.I "input_data,"if it exists, is read from the input fileand determines the data type of the output file as specified in thediscussion of the option..SH "FUTURE CHANGES".PP.SH "SEE ALSO".PPfft (1\-ESPS), plotsd (1\-ESPS), get_fft_inv (3\-ESPS), FEA_SD(5\-ESPS),FEA_SPEC(5\-ESPS), ESPS(5\-ESPS)..SH "BUGS".PPNone known..SH "REFERENCES".PPJ. W. Cooley and J. W. Tukey, "An Algorithm for the Machine Calculation ofComplex Fourier Series," \fIMath. Computation\fP, Vol. 19, 1965, pp. 297-301..spAlan V. Oppenheim and Ronald W. Schafer, \fIDigital Signal Processing\fP.Englewood Cliffs, New Jersey: Prentice-Hall, Inc., 1975..SH "AUTHOR".PPmanual page and program by John Shore, using libraryfunction by Shankar Narayan.Modified to write FEA_SD files by David Burton.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?