sgplay.1

来自「speech signal process tools」· 1 代码 · 共 201 行

1
201
字号
.\" Copyright (c) 1996 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)sgplay.1	1.2 3/27/97 ERL.ds ]W (c) 1996 Entropic Research Laboratory, Inc..TH SGPLAY 1\-ESPS 3/27/97.SH NAMEsgplay - send sampled data (PCM) to native Indigo D/A converter..PP.SH SYNOPSIS.B sgplay[.BI \-r " range"] [.BI \-s " start time"] [.BI \-e " end time"] [.BI \-f " sample rate"] [.BI \-c " channel"] [.BI \-x " debug-level"] [.BI \-H] [[.BI \-i].I file] [.I more-files].PP.SH DESCRIPTION.PP.I Sgplaysends all or a portion of one or more ESPS, SIGnal, NIST or headerlesssampled data files to a Silicon Graphics Indigo digital-to-analogconverter.  A subrange of data within the files may be chosen; thissubrange may be specified in seconds or sample points.  Dual-channel(stereo) or single-channel (monaural) data may be converted.Single-channel input data may be directed to either or both outputchannels..PPPlayback may be stopped by sending the terminal's interrupt character(normally control-C) after playback has started..PPIf "\-" is given for a filename, then the input is taken from standardinput and must be an ESPS file or a headerless file (i.e., SIGnal orNIST/Sphere files cannot be used with standard input)..PPThe SGI Indigo program \fIapanel\fP may be used to set the output level, if desired.\fIApanel\fP should be started before \fIsgplay\fP.It may be left running indefinitely..PP.SH OPTIONS.PPThe following options are supported:.TP.BI \-r " range"Select a subrange of points to be played, using the format.I start\-end,.I start:end or.IR start:+count .Either the start or the end may be omitted; the beginning or the end of thefile are used if no alternative is specified. .IPIf multiple files were specified, the same range from each file is played..TP.BI \-s " start time"Specify the start time in seconds.  Play will continue to the end of file orthe end time specified with -e.  -s may not be used with -r..TP.BI \-e " end time"Specify the playback end time in seconds.  Play will start at thebeginning of file or the time specified by -s.  -e may not be usedwith -r..TP.BI \-f " frequency"Specifies the sampling frequency.  The closest frequency to thatrequested will be selected from those available and the user will be notifiedif the selected value differs from that requested.  If -f is notspecified, the sampling frequency in the header is used, elsethe default value for headerless files is 16kHz (assuming the standard Ariel crystal)..TP.BI \-c " channel"Select the output channel configuration.  For files with headers, thebehavior is to play stereo if the file is stereo and to provideidentical output on both channels if the file is single-channel.If the file has no header, the default is to assume single-channeldata and provide identical output to both channels.  For headerlessfiles, this may be changed with -\fIc\fP 2 (stereo data, stereo output)..TP.BI \-HForce \fIsgplay\fP to treat the input as a headerless file.  This is probably unwiseto use unless the gain on your loudspeaker or earphones is way down, sincea file that really does have a header, or a file composed of data types otherthan shorts (of the correct byte order!) will cause a terrible sound..TP.BI \-i " input file"Specify a file to be D/A converted.  Use of -i before the file designation is optionalif the filename is the last command-line component.  If no input file isspecified, or if "-" is specified, input is taken from stdin..TP.BI \-x " debug_level"Setting debug_level nonzero causes several messages to be printed asinternal processing proceeds.  The default is level 0, which causes no debugoutput..PP.SH "INTERACTION WITH XWAVES".I Sgplayis designed to optionally use the server mode of \fIxwaves\fP (1\-\s-1ESPS\s+1).  Thisis especially handy when.I sgplayis used as an \fIxwaves\fP external playcommand (e.g. by setting the \fIxwaves\fP global play_prog).  When the latter is the case,play commands initiated via \fIxwaves\fP' menu operations may be interruptedby pressing the left mouse button in the data view.  \fIXwaves\fP will senda signal (SIGUSR1) to the play program.  Sgplay responds to thisby sending back to \fIxwaves\fP a command "set da_location xx", where xx isthe sample that was being output when play was interrupted.  Thissetting, in conjunction with \fIxwaves\fP' built-in callback procedure forhandling child-process exits, causes the \fIxwaves\fP signal display tocenter itself on the sample where play was halted..PPThe SIGUSR1 signal to terminate .I sgplaymay come from any source.  Ifit comes from sources other than \fIxwaves\fP, the environment variablesWAVES_PORT and WAVES_HOST must be correctly defined (see\fIespsenv\fP (1-ESPS)), for correct functioning of the \fIxwaves\fP viewpositioning.  (Of course, \fIxwaves\fP must actually be displaying thesignal in question at the time and \fIxwaves\fP must have initiated theplay.).PP.I Sgplaymay also be interrupted with kill -2 (SIGINT) or kill -3(SIGQUIT).  These signals are caught gracefully and .I sgplayhalts immediately, but no message is sent to \fIxwaves\fP.  No message is sent ifthe play operation finishes without interruption..PP.SH ESPS PARAMETERS.PPThe parameter file is not read.  .PP.SH ESPS COMMON.PPESPS Common is not read or written..PP.SH DIAGNOSTICS.PP.I Sgplayinforms the user if the input file does not exist, if inconsistentoptions are used, or if an unsupported sample rate is requested.Also see \fBWARNINGS\fP below..PPIf the starting point requested is greater than the last point in thefile, then a message is printed.  Ifthe ending point requested is greater than the last point in the file,it is reset to the last point and processing continues..PP.SH WARNINGS.PP\fISgplay\fP supports only the "native" Indigo sampling rates.  Theseare (in Hz): 48000 44100 32000 29400 24000 22050 16000 14700 1200011025 10667 9800 9600 8820 8000 7350 6857 6400 6300 6000 5880 55125333 4900 4571 4200 4000 3675.  If you play a file that is sampled atan unsupported rate, \fIsgplay\fP plays the data at the closestsupported rate and issues a warning..PP\fISgplay\fP provides stereo D/A conversion at rates up to at least48kHz when playing from local disk.  Sampling from network disks isoften feasible as well.  The maximum rate over the network isunpredictable in general, but we routinely achieve 16kHz stereo atEntropic Research Laboratory.  Of course rate limitations due tonetwork speed will be less severe for single-channel playing.Obviously, processes supplying input to.I sgplayon a pipe must be able to keep up with the average aggregate sampling frequency..PP.SH FILES.PP.SH BUGS.PPIf readable header IS present, but -H is specified, the header istreated like sampled data -- usually resulting in very unpleasantsounds..PP.SH SEE ALSO.PP.nfSD(5\-\s-1ESPS\s+1), \fItestsd\fP(1\-\s-1ESPS\s+1), \fIcopysd\fP(1\-\s-1ESPS\s+1),\fIsgrecord\fP(1\-\s-1ESPS\s+1), \fIsfconvert\fP(1\-\s-1ESPS\s+1), \fIsgram\fP(1\-\s-1ESPS\s+1),\fIsend_xwaves2\fP(3\-\s-1ESPS\s+1).fi.PP.SH AUTHOR.PPDavid Talkin at Entropic Research Laboratory.

⌨️ 快捷键说明

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