USAGE: mergewav - .... (prepare to )merge wav-files channel-wise (0=Left, 1=Right). LISTING USAGE: mergewav - [ |0] OPTION: -d write samplevalues of channel as signed decimal integer to stdout. -D same as -d for two channels. -x write samplevalues of channel as hexadecimal integer to stdout. -X same as -x for two channels. Note: in samples, =0 for EOF. STATISTICS USAGE: mergewav - OPTION: -p write average & max. of abs(sample-previous_sample) in to stdout. -l write RMS and dBA per second of for channel to stdout. -L write RMS and dBA of for channel to stdout. RMS on scale 0..100, not on scale of 2^samplesize. -O write count and percentage of digital clipping of for channel to stdout. -R write only RMS for channel to stdout and dBA to stderr. -s write properties of to stdout. -v write statistics per second for channel to stdout. -V write statistics of for channel to stdout. USAGE: mergewav -w [ ..] write length of audio and number of channels to stdout. USAGE: mergewav -p same as "-p ", but per samples. USAGE: mergewav -Q [] write correlation coefficient between of and of to stdout. USAGE: mergewav -= write equivalent dbA value to stdout. COPY USAGE: mergewav - |0 [[-]] OPTION: -c copy all channels of from sample to sample |EOF to . -t copy all channels of from time seconds to time |EOF seconds to . -C compress by a factor of 2 from time seconds to time |EOF seconds to . -E stretch by a factor of 2 from time seconds to time |EOF seconds to . Optionally white noise with an amplitudo of bits will be added. The granularity of is 0.01 unit of sample value. - will suppress the original signal from . USAGE: mergewav -A |0 copy all channels of from time seconds to time |EOF seconds to with linear in- and decreasing volume for the first and last seconds. USAGE: mergewav -z |0 [] copy all channels of from time seconds to time |EOF seconds to with shift. NOTE: Time in seconds implies that fractions of seconds are allowed. MERGE MONO TO LEFT+RIGHT USAGE: mergewav - OPTION: -m copy from to channel 0 of copy weighted sum of from and from to channel 1 of . +[-]ve : start at sample [-] in . MERGE MONO TO MONO USAGE: mergewav - OPTION: -M copy weighted sum of from and from to the single channel of . +[-]ve : start at sample [-] in . MERGE STEREO TO STEREO USAGE: mergewav - OPTION: -S copy weighted sum of from and from to channel left/right of . +[-]ve : start at sample [-] in . CONCATENATE USAGE: mergewav -+ |0 |0 concatenate selected samples in of and selected samples in channel of . CORRELATE USAGE: mergewav - |0 |0 OPTION: -q correlate selected samples in of with selected samples in channel of . The difference in samplelength abs(--+) determines the number of correlations calculated. -b as -q, write best correlation only. USAGE USAGE: mergewav USAGE: mergewav -h[elp] USAGE: mergewav --[help] write this usage info to stdout. Copyright (C) 2011 by Harm J. Schoonhoven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. VERSION: Dec 4 2012