📄 sgram.1
字号:
.TP.BI \-T " desired_frames"Specifies that the number of output records (number of framescomputed) be close to \fIdesired_frames\fP. If this option is used,\fIsgram\fP tries to choose a value for \fIstep_size\fP that willyield \fIdesired_frames\fP of output when \fIrange\fP points areanaylzed. (Since the number of data points shifted for each frame isan integer, exactly \fIdesired_frames\fP of output will happen only inspecial cases.) Use of this option overrides any specification for\fIstep_size\fP resulting from defaults, from \fB-m\fP, or from\fB-S\fP. The \fB-T\fP option yields a useful alternative to zooming-in or bracketing the markers in an \fIxwaves\fP+ spectrogram display. For example, suppose an existing spectrogram display is about 400 pixels wide, and suppose that a new item is added to waveform menus by means of the command:.nf add_espsf name "400-Frame Spectrogram (W.B.)" command sgram -m wb -T 400.fiIf a small range is marked on an existing spectrogram, the "bracketmarkers" operation can be used to zoom in on the marked region(assuming that horizontal rescaling is enabled). This results in theexisting spectrogram being re-displayed with the data stretched out(with or without linear interpolation). Alternatively, if the"400-Frame Spectrogram (W.B.)" item is invoked from the correspondingwaveform window, a new spectrogram will be computed and displayed.This spectrogram will be about 400 pixels wide, with each pixel-columncorresponding to one frame (one FFT). In effect, this is a "bracketmarkers" operation in which the data is recomputed to have finerresolution in the time domain..TP.B \-zSpecifies that \fIsgram\fP should issue warning messages regardingpartially filled buffers, zero power in spectra, etc. Without the\fB-z\fP option, it operate silently and does not issue warnings..SH "ESPS PARAMETERS".PPThe parameter file is not required to be present, as there are default parameter values that apply. If the parameter file does exist, the following parameters are read:.TP.I "method \- string"The spectrogram method to use. This parameter is not read if the\fB-m\fP option is used. If the parameter is present and is read, itdetermines the values for all other parameters as discussed under the\fB-m\fP option. The other parameters are not read subsequently(i.e., their values are fully determined by \fImethod\fP) unless\fImethod\fP is "other". In this special case, defaults for the otherparameters are those of the "wb" method, but they can be superceded bythe values of other parameters in the file. The purpose of thisexception is to provide the following behavior when \fIsgram\fP iscalled with the system default parameter file by means of\fIeparam\fP(1\-\s-1ESPS\s+1): The user is prompted for \fImethod\fP.If either "wb" or "nb" is specified, processing proceeds with the named method. If "other" is specified, the user is prompted for all of the neededparameters. .TP.I "data_window \- string"The data window to apply to the data. This parameter is not read ifthe \fB-d\fP option is specified or if \fImethod\fP is in the parameter file and does not have the value "other". Acceptable values include "RECT" for a rectangular window,"HAMMING" for Hamming, "HANNING" for Hanning, and "TRIANG", for triangular;see the.IR window (3-ESPSsp)manual page for the complete list..TP.I "fft_order \- integer".IPThe order of the FFT \- the transform length is 2 to the power.I fft_order.This parameter is not read if the \fB-o\fP is specified of if\fImethod\fP is in the file and does not have the value "other"..TP.I "start \- integer".IPThe first point in the input sampled data file that is processed.A value of 1 denotes the first sample in the file.This parameter is not read if the.B \-por.B \-soption is specified.If it is not in the parameter file, and neither option is specified,a default value of 1 is used..TP.I "nan \- integer".IPThe total number of data points to process.If.I nanis 0, processing continues through the end of the file.This parameter is not read if the.B \-por.B \-soption is specified.If it is not in the parameter file, and neither option is specified,a default value of 0 is used..TP.I "window_len \- float".IPThe duration in milliseconds of each frame. This parameter not read if the \fB-w\fP option is specified of if\fImethod\fP is in the file and does not have the value "other"..TP.I "pre_emphasis \- float"The coefficient in the preemphasis filter (see.B \-Ein the Options section). This parameter not read if the \fB-E\fP option is specified of if\fImethod\fP is in the file and does not have the value "other"..TP.I "desired_frames \- int"The desired number of output frames (see the description of the\fB-T\fP option). A value of 0 means that the step size is to bedetermined from other considerations (e.g., via \fImethod\fP and \fIstep_size\fP). This parameter is not read if the \fB-T\fP option is specified. .TP.I "step_size \- float"Initial points of consecutive frames differ by this number ofmilliseconds. This parameter not read if the \fB-S\fP or \fB-T\fPoptions are specified, if \fImethod\fP is in the parameter file anddoes not have the value "other", or if desired_frames is in theparameter file and has a non-zero value..PPThe values of parameters obtained from the parameter file are printedif the environment variable ESPS_VERBOSE is 3 or greater. The defaultvalue is 3..SH ESPS COMMON.PPESPS Common is read provided that Common processing is enabled and that the .I filenameentry in Common matches .I input.sd.In that caseparameters present in Common override values from the parameter fileand may in turn be overridden by command line options.That is, in the sections on ESPS Parameters and Options,parameters described as being found in the parameter filemay instead be found in the Common file if Common processing is enabled..PPIf Common processing is enabled and if.I output.fspecis not standard output, the Common parameters .I filename, prog, start,and.I nanare written to Common, where .I filenameis set equal to.I input.sd..PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off". The default ESPS Common file is .espscom in the user's home directory. This may be overridden by settingthe environment variable ESPSCOM to the desired path. User feedback fromCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback. If ESPS_VERBOSE is not defined, a default value of 3 isassumed..SH ESPS HEADERS.PP.I Sgramreads the value of .I common.typeand the generic header item.I start_timefrom the input file..PPRelevant fields in the type-dependent portion of the output file header are filled appropriately.The standard generic header items required for FEA_SPEC filesare filled in (see FEA_SPEC(5-ESPS) for details).The generic header item \fIfft_order\fP is set to the order of the FFT, the item .I "fft_length"is set to the length of the FFT,the item.I "step"is set to the step size(but measured in samples rather than milliseconds (see \fB\-S\fP), and the item \fIsgram_method\fP is set to the spectrogram method. The value "other" is used for \fIsgram_method\fP if there are anychanges from the two standard methods "wb" and "nb". The CODED generic header item.I window_typeis set according to to the window type..PPThe generic header item \fIstart_time\fP (type DOUBLE) is written inthe output file. The value written is computed by taking the\fIstart_time\fP value from the header of the input file (or zero, ifsuch a header item doesn't exist) and adding to it the offset time(from the beginning of the input file) of the first point processedplus one half of \fIframe_len\fP (thus, \fIstart_time\fP is middle ofthe first frame, which is appropriate since the output data representthe entire frame; without this adjustment for \fIframe_len\fP,\fIwaves\fP+ displays would not line up properly. .PPIf the \fB-T\fP option is used (or if a non-zero \fIdesired_frames\fP value is obtained from the parameter file), the generic header item\fIdesired_frames\fP is written to the output file. .PPThe generic header item \fIrecord_freq\fP (type DOUBLE) is written inthe output file. The value is the number of output records per secondof input data..PPThe preemphasis filter coefficient is recorded in a header item.I pre_emphasis..SH "SEE ALSO".PP.nf\fIplotsgram\fP(1\-\s-1ESPS\s+1), \fIfft\fP(1\-\s-1ESPS\s+1), \fIme_sgram\fP(1\-\s-1ESPS\s+1),\fIimage\fP(1\-\s-1ESPS\s+1), \fIdither\fP(1\-\s-1ESPS\s+1), \fIrefcof\fP(1\-\s-1ESPS\s+1),\fIme_spec\fP(1\-\s-1ESPS\s+1), \fIfilter\fP(1\-\s-1ESPS\s+1), \fIwindow\fP(3\-\s-1ESPS\s+1),FEA_SPEC(5\-\s-1ESPS\s+1), FEA_SD(5\-\s-1ESPS\s+1).fi.SH "BUGS".PPLike other ESPS programs, \fIsgram\fP stops processing when theanalysis window of a particular frame extends past the upper limit ofthe range (see the discussion about number of frames in"DESCRIPTION"). As a result, spectrograms computed from \fIwaves\fP+may end noticeably before the end of the marked segment for cases inwhich the analysis window is long (e.g., narrow-band spectrograms).The workaround is to mark a larger segment before calling for thespectrogram. This will be fixed in a later release. .SH "AUTHOR".PPDavid Burton, Rod Johnson, John Shore.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -