wav2txt

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

wav2txt - BSU program converts WAV audio to ASCII text (C-Language Version)

SYNOPSIS

wav2txt [ -h | infile | n1 | nlast ]

DESCRIPTION

Basic Seismic Utilities (BSU) program that converts a WAV audio file format to an ASCII text format output. If only 1 channel, output is 3 columns (sample number, time, data ). If stereo (2 channels), the output is 4 columns (sample number, time, ch1_data, ch2_data). This code was developed to read data recorded on a sound card (an AM modulated tone in the audio range). The modulation signal extends down to 0 Hz for a lower limit. Upper limit would be dependent on the carrier tone frequency. C-Language Version.

Options

-h

Online help giving details on command line arguments

infile

First argument is input file name

n1

Starting trace number of first sample number to output (int) 1<=n1<=total

nlast

This is the last sample to output (int).

NOTE:
If invoked with no options, will prompt user for input parameters.

EXAMPLE:
wav2txt data.wav 1 50000

File data.wav is processed by wav2txt. Command line arguments are as shown.

FILES

wav2xxxx.txt

named according to convention (first 4char wav2, the next 4char are the first 4char of the input file name, suffix .wav)

standard output

produces a progress bar

wav2xxxx.lst

Echo check of input parameters in listing file and listing of WAV header information.

SEE ALSO

bhelp(1), ba2s(1), seg2txt(1), seg2csv(1)

BUGS

no known bugs

COPYRIGHT

Copyright © 2021 by Paul Michaels

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

AUTHOR

P. Michaels, PE. <paulmichaels@boisestate.edu>