NAME

length -- Print waveform segment lengths

SYNOPSIS

length [-OPTIONS] file[.wav][$segment]

DESCRIPTION

Lengths based on the segment table of waveform file are displayed on the console. The standard output format includes column headings and an extended report which lists the sample counts and times in msec for both the begining and end of the segment as well as the segment duration in samples and msec. Command line options provide various alternate output formats which may be more useful in some applications (like preparing files as input to statistical analysis routines or to other programs).

OPTIONS

-BRIEF
When present, length provides only the start and duration in msec for each segment. May be abbreviated -BR.
-NOHEADER
When present, length eliminates both the title line and column headers from the report, however, length then uses an expanded segment name which includes the file name. May be abbreviated -NOH.
-EP
Output will consist of only segment names and endpoints in msec.
-TLE
Output suitable for input to TLE program.
-TLX
Similar to -TLE except that the last line will always contain the length of the file whether or not a segment is defined which ends at the end of the file.
-DUR
Prints only segment names and durations in msec.
-NOS
Supresses the '******' dummy segment which corresponds to the full file.

NOTES

Under MSDOS, file may include standard DOS wildcard descriptions to allow length to run against multiple files with a single command. Under Unix, only a single input file may be given.

EXAMPLES

C:\WAV>length xbaa
   Segment Statistics for file: XBAA

   Name   ------Begin------   -------End-------    Samples      msec
   CON        1942   194.20       4933   493.40       2992    299.20
   SWR        2689   268.90       3571   357.20        883     88.30
   SW2        3069   306.90       3569   357.00        501     50.10
   ******        0      .00       8022   802.30       8023    802.30

C:\WAV>length -BR xbaa
   Segment Statistics for file: XBAA

   Name   --Begin--   -Duration- 
   CON       194.20       299.20
   SWR       268.90        88.30
   SW2       306.90        50.10
   ******       .00       802.30

C:\wav>length -NOH xbaa
   XBAA$CON        1942   194.20       4933   493.40       2992    299.20
   XBAA$SWR        2689   268.90       3571   357.20        883     88.00
   XBAA$SW2        3069   306.90       3569   357.00        501     50.10
   XBAA$******        0      .00       8022   802.30       8023    802.30

SEE ALSO

getseg (1)
edw (1)

AUTHOR

H.T.Bunnell