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

📄 wrel2.1.me

📁 speech signal process tools
💻 ME
📖 第 1 页 / 共 3 页
字号:
.ip \fIenable_server\fPIf \fIxwaves\fP+ is not operating as display server, it begins doing so.  .ip \fIdisable_server\fPIf \fIxwaves\fP+ is operating as display server, it stops doing so..ip "\fIget attributes global\fP"In previous releases, the existing "get attributes" command wasrestricted to obtaining display parameters.  The new keyword "global"supports output of \fIwaves\fP+ globals.  Output of all or a named setof globals can be directed to a named file (as well as stdout), and isproduced in a format suitable for inclusion in a .wave_pro file.The menus->globals buttons in the default startup environment producea button panel that exploits the new feature to display and write the full set of globals.  This feature is available for both\fIwaves\fP+ and \fIxwaves\fP+.  .ip "\fImake height\fP"  .ip "\fImake width\fP"The behavior of the keywords "height" and "width" in the command"make" has changed.  They now affect spectrogram displays as well aswaveform displays, and they no longer have the side effect of settingthe global variables "wave_height" and wave_width".  You can still set"wave_height" and wave_width" in the make command by using the fullnames; these globals still affect only waveform windows..ip "\fIadd_espsf number\fP"The new keyword "number" has been added to \fIadd_espsf\fP (default1).  This specifies the number of output files expected from the external program.  Appropriate file names are generated for the command string and are all displayed when the external commandterminates.  .ip \fIclose_ctlwin\fP.ip \fIopen_ctlwin\fPThese iconize and open the \fIxwaves\fP+ control panel.  .ip auto_plot_limitsResets the globals \fIplot_max\fP and \fIplot_min\fP so that automatic scaling (the default) takes place. .sh 2 "New \fIxwaves\fP+ Globals".ip \fIinit_file\fPThis names an \fIxwaves\fP+ command file. If \fIinit_file\fP ispresent in the startup profile, the corresponding file is executedbefore any command-line files are processed.  When combined with thenew features that provide user-defined menus and screen-button panels,the \fIinit_file\fP provides a mechanism for creatinghighly-customized \fIxwaves\fP+/ESPS packages that meet personal orapplication-specific needs.  The default \fIinit_file\fP is$ESPS_BASE/lib/waves/commands/xw_init.WC. .ip \fIoutput_dir\fPThe name of a writable directory to be used for all \fIxwaves\fP+ outputfiles.  Do not define this global unless you want it used, and makesure that the named directory exists and is writable.  If\fIoutput_dir\fP is defined, all output files from \fIxwaves\fP+,\fIxspectrum\fP, and \fIxlabel\fP will go into this directory(including edited files, saved file segments, spectrogram outputfiles, outputs from add_espsf, etc.).  It is OK to include environmentvariables in the path.  This global makes it possible to produce\fIxwaves\fP output when working in read-only directories. .ip \fIremote_path\fP.ip \fIremote_input_path\fP.ip \fIremote_output_path\fPThe semantics of \fIremote_path\fP has changed. It is now prefixed tothe basename of files rather than to their full names (which mighthave included path specifications).  The semantics are extended by theexistence of additional globals.  If \fIremote_input_path\fP isdefined, it is prefixed to the basename of all input file names inexternal calls.  It overrides any definition of \fIremote_path\fP.Similarly, if remote_output_path is defined, it is prefixed to thebasename of all output file names in external calls.  It overridesdefinitions of \fIremote_path\fP and \fIoutput_dir\fP.  .ip \fIsocket_port\fPThis is the INET domain socket port number to be used when xwaves+ isoperating as a display server (as the result of the \fIxwaves\fP+\fB-s\fP option or the enable_server command).  If set, socket_portoverrides the WAVES_PORT environment variable or the value given bythe \fB-p\fP option..ip \fIspec_middle_op\fPmiddle_op text string corresponding to desired middle button operationfor spectrogram menus.  must be one of: "up/down move", "movecontour", "modify intensity", "play between marks", "repeat previous".This and the \fIspec_left_op\fP global are provided (by analogy withthe waveform menu's \fIleft_op\fP and \fImiddle_op\fP) so that themouse bindings can be set under \fIxwaves\fP+ command control..ip \fIspec_left_op\fPtext corresponding to desired left button opera- tion for spectrogrammenus; must be one of: "up/down move", "move closest", "markformants", "repeat previous".ip \fIspect_interp\fP1 to cause linear interpolation in rescaled spectrogram displays; 0 todisable interpolation so that each discreet value is shown as auniform rectangle..ip \fIh_spect_rescale\fP1 to cause horizontal rescaling of spectrogram displays; 0 to causefixed displays with 1-pixel per data record.  If data are interpolated,then the range of the interpolated data computed together isdetermined by \fIspect_rescale_scope\fP..ip \fIv_spect_rescale\fP1 to cause vertical rescaling of spectrogram displays; 0 to causefixed displays with 1-pixel per data record..ip \fIspect_rescale_scope\fPdetermines whether horizontal rescaling of interpolated data iscomputed for the entire xwaves+ buffer (value is "buffer") or for justthe current window width (value is "view").  Rescaling for the entirebuffer can be quite slow if the ratio of the current view to theentire buffer is large, but has the advantage that horizontalscrolling is very fast once the new image is computed (since it isstored).  Rescaling just the current view is faster (and is thedefault), but has the disadvantage that the rescaling takes placeevery time the viewpoint is moved (i.e., scrolling is slower).In later releases, this global will also affect the rescaling of non-interpolated data.  .ip \fIreticle_grid\fPThis controls plotting of the part of the spectrogram-window reticle thatlies within the spectrogram plotting area.  (The numbers around theedges are not affected.)  Set the value to 0 to disable plotting;non-zero (the default) gives the old behavior..ip \fIplot_max\fP.ip \fIplot_min\fPThese new globals provide a limited means of overriding the automatic vertical scaling of plotdata.  If they are zero (the default), for each trace \fIxwaves\fP+ findsthe max and min in the entire buffer, and scales the plot so that themax and min appear at the top and bottom of the window (or windowregion, if there are multiple traces).  If \fIplot_max\fP (\fIplot_min\fP) isnon-zero, \fIxwaves\fP+ will scale every new or refreshed plot so that thetop (bottom) of the window or region corresponds to the fixed value.Values outside of the range are simply clipped by the top or thebottom of the display window (extending into the scrollbar).  (That isthe plots for multiple traces are not limited to a region of thewindow as they are in the case of auto-scaling.  Yes, it can get veryugly!  But it provides some capability where none existed.  A new \fIxwaves\fP+ command -- \fIauto_plot_limits\fP -- was added asa convenient means for restoring xwaves+ to the mode in which all plot limits are set automatically.  Note that the new ESPS program \fIclip\fP (1\-\s-1ESPS\s+1) can be added to the \fIxwaves\fP+ menu to achieve a similar effect.  .ip \fIctlwin_iconized\fP1 to cause \fIxwaves\fP+ to start up with its control window iconized;0 to come up open. .ip \fIxlabel_ctlwin_x\fP.ip \fIxlabel_ctlwin_y\fPControl the initial position of the \fIxlabel\fP control panel. .ip \fIxspectrum_ctlwin_x\fP.ip \fIxspectrum_ctlwin_y\fPControl the initial position of the \fIxspectrum\fP control panel. .ip \fIxspectrum_datwin_x\fP.ip \fIxspectrum_datwin_y\fP.ip \fIxspectrum_datwin_height\fP.ip \fIxspectrum_datwin_width\fP Control the initial position and size of the \fIxspectrum\fP spectral display..ip \fIxspectrum_datwin_forward\fPA startup global that determines whether or not the \fIxspectrum\fPplot window will be brought forward each time a new spectrum is computed. .ip \fIxspectrum_max_lpc_order\fPA startup global that sets the maximum xspectrum LPC (maximumentropy) order.  .sh 2 "Spectrogram Display Improvements".lpThe previous version of \fIxwaves\fP+ would always automatically rescalespectrograms in the vertical dimension to accommodate changes in theheight, but the horizontal scale was fixed at one pixel per datarecord, so that each vertical column of pixels always corresponded toone spectral slice computed by a DSP board or an ESPS program.  .lpThe vertical rescaling code was revised to run 2-3 times faster thanin the previous release..lpIn the current version, rescaling works in the horizontal dimension aswell, and the program can automatically stretch or expand spectrogramsin both dimensions when the window is resized, much as it does withwaveform displays.  The operations "zoom in", "zoom out", "zoom fullout", and "bracket markers" are on the default spectrogram menu; whenhorizontal rescaling is turned on, these operations and "align andrescale" work in the same way with spectrograms as with waveformdisplays..lpFour global variables, \fIh_spect_rescale\fP, \fIv_spect_rescale\fP,\fIspect_rescale_scope\fP, and \fIspect_interp\fP, provide controlover the rendering of \fIxwaves\fP+ spectrogram displays..lpThe global \fIh_spect_rescale\fP controls horizontal rescalingof spectrograms.  In particular, .nf	set h_spect_rescale 0.fiyields the behavior of the previous version of \fIxwaves\fP+, fixed1-pixel-per-record horizontal scaling, and.nf	set h_spect_rescale 1.fiyields automatic horizontal rescaling.  .lpSimilarly, the global \fIv_spect_rescale\fP controls vertical rescaling ofspectrograms; .nf	set v_spect_rescale 0.fiturns off vertical rescaling and fixes the vertical scale at one pixelfor each frequency point computed by a DSP board or ESPS program, and.nf	set v_spect_rescale 1.firestores automatic vertical rescaling.  When vertical rescaling isturned off, the tops of spectrograms are cut off in windows that arenot high enough to hold them, and extra background is added abovespectrograms in windows that are higher than necessary..lpNormally, when horizontal or vertical rescaling is turned on,\fIxwaves\fP+ rescales by linearly interpolating values for pixelsthat do not correspond exactly to computed data points.  In the newversion of \fIxwaves\fP+, a non-interpolated mode of rescaling isavailable as well;.nf	set spect_interp 0.fiturns interpolation off, and.nf	set spect_interp 1.firestores interpolation.  The non-interpolated mode is a style similarto that selected by the -D option of \fIimage\fP (1\-\s-1ESPS\s+1).  Eachcomputed spectral value is represented by a rectangle of uniform coloror brightness; the edges of the rectangles are sharp, and there is nogradual gradation from one data point to another..lpWhen interpolation has been turned on, rescaling in either dimensioncan create a rescaled image of the entire spectrogram data buffer orjust the visible part.  This choice is determined by\fIspect_rescale_scope\fP;.nf	set spect_rescale_scope buffer.fiselects the entire buffer, and .nf	set spect_rescale_scope view.fiselects just the visible part.  If "buffer" is selected, paging andscrolling operations are very rapid once the data have been computed,since the image resides on the X server and each operation uses asingle X Window System library call to map a new portion of the imageto the window.  However, the rescaling and interpolation calculationitself can be very expensive in terms of both time and server memory.Zooming in on a part of a spectrogram that is much shorter than thefull buffer can initiate a lengthy operation that ties up the windowsystem for several minutes and cannot be easily interrupted becausethe mouse becomes unresponsive.  It is quite possible to exceed thecapacity of the server and crash the window system.  .lpSelecting "view" for \fIspect_rescale_scope\fP provides an alternativetradeoff between scrolling speed and image compute time.  In thismode, only the viewable data are interpolated and rescaled.  Sincethese are computed as the spectrogram is scrolled, scrolling is slowerthan in the case of "buffer".  But the time to compute theinterpolated and rescaled data becomes less and less the more "zoomedin" you are.  To avoid nasty surprises, it is a good idea to keep"view" as the default for \fIspect_rescale_scope\fP.  It is likewisesafer to set the global \fIzoom_ganged\fP to 0..lpWith interpolation turned off, a different rescaling process isused:  no backup image is created, and the entire rescaling operationis repeated whenever the window is repainted.  This can be slow atsmall scales, but is reasonably fast at scales at which individualrectangles are easy to pick out, since the time required depends morestrongly on the number of rectangles than on their sizes.  Withinterpolation turned off, it is easy to zoom in on small portions oflarge spectrograms.  However, beware of then turning interpolation onwithout first zooming back out to a smaller scale, since anything thatcauses a refresh (uncovering an obscured part of a window, forexample) can trigger an expensive interpolated rescaling..lpThe compiled in defaults (which also correspond to values in the default .wave_pro) are:  .nf	spect_interp = 1	v_spect_rescale = 0	h_spect_rescale = 0	spect_rescale_scope = view.fiThese produce the fastest painting behavior, with one bit in the imagefor each point in the spectrogram file.  The default \fIxwaves\fP+initialization command file (\fIinit_file\fP in the .wave_pro)provides a screen button ("Images") that brings up a panel with screenbuttons that toggle the three globals that control scaling andinterpolation..lpAnother significant change to the spectrogram display capability isthat \fIxwaves\fP+ can now display spectrograms with nonlinearfrequency scales (FEA_SPEC files in ARB_FIXED format).  The plots aremade with linear record spacing, but a nonlinear vertical reticlescale, so if your files have more detail at, say, the lowerfrequencies, the plot will have an expanded scale at the lowerfrequencies.  Cursors are properly coordinated with other spectrogramswith different vertical scales, the "Value" readout at the top givesthe proper values, and overlays on such displays work properly..sh 2 "\fIxwaves\fP+ as a Display Server".lp\fIxwaves\fP+ can operate as a "display server", a term we use todescribe a mode of operation in which xwaves+, in addition tooperating under local control, listens on a network socket for xwaves+commands (including the invocation of command files). Such commandscan be sent by arbitrary external shell scripts or C programs.  Thisfeature, new with Version 2.1, blurs the distinction between external

⌨️ 快捷键说明

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