[linux-audio-user] sox and avg

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-user] sox and avg
From: Michael Krusch (vst-liste_AT_maren-noel.de)
Date: Mon Aug 19 2002 - 15:29:22 EEST


Hi,

I have to convert a stereo wav file into two raw files, one containing
the left channel, the other containing the right channel.
I use the following command line:

/usr/bin/sox -c 2 "/usr/local/rvb/impulse/Lexicon 300 Hall Large Hall
-ER/glossy_plate_test.wav" -c 1 -s -r 44100 -w
"/usr/local/rvb/temp/impuls_0_l.raw" avg -l

/usr/bin/sox -c 2 "/usr/local/rvb/impulse/Lexicon 300 Hall Large Hall
-ER/glossy_plate_test.wav" -c 1 -s -r 44100 -w
"/usr/local/rvb/temp/impuls_0_r.raw" avg -r

But the resulting raw files containing both the same samples.

With the -V option sox tells:

/usr/bin/sox: Detected file format type: wav
/usr/bin/sox: Chunk fmt
/usr/bin/sox: Chunk data
/usr/bin/sox: Reading Wave file: Microsoft PCM format, 2 channels, 44100
samp/sec
/usr/bin/sox: 176400 byte/sec, 4 block align, 16 bits/samp,
34092 data bytes
/usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
Hall -ER/glossy_plate_test.wav: using sample rate 44100
        size shorts, encoding signed (2's complement), 2 channels
/usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
Hall -ER/glossy_plate_test.wav: comment "/usr/local/rvb/impulse/Lexicon
300 Hall Large Hall -ER/glossy_plate_test.wav"
/usr/bin/sox: Output file /usr/local/rvb/temp/impuls_0_l.raw: using
sample rate 44100
        size shorts, encoding signed (2's complement), 1 channel
/usr/bin/sox: Output file: comment "/usr/local/rvb/impulse/Lexicon 300
Hall Large Hall -ER/glossy_plate_test.wav"
/usr/bin/sox: Effect took & gave no samples!

/usr/bin/sox: Detected file format type: wav
/usr/bin/sox: Chunk fmt
/usr/bin/sox: Chunk data
/usr/bin/sox: Reading Wave file: Microsoft PCM format, 2 channels, 44100
samp/sec
/usr/bin/sox: 176400 byte/sec, 4 block align, 16 bits/samp,
34092 data bytes
/usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
Hall -ER/glossy_plate_test.wav: using sample rate 44100
        size shorts, encoding signed (2's complement), 2 channels
/usr/bin/sox: Input file /usr/local/rvb/impulse/Lexicon 300 Hall Large
Hall -ER/glossy_plate_test.wav: comment "/usr/local/rvb/impulse/Lexicon
300 Hall Large Hall -ER/glossy_plate_test.wav"
/usr/bin/sox: Output file /usr/local/rvb/temp/impuls_0_r.raw: using
sample rate 44100
        size shorts, encoding signed (2's complement), 1 channel
/usr/bin/sox: Output file: comment "/usr/local/rvb/impulse/Lexicon 300
Hall Large Hall -ER/glossy_plate_test.wav"
/usr/bin/sox: Effect took & gave no samples!

avg don't seems the work correct. Or do I something wrong?

Michael Krusch


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Aug 19 2002 - 15:27:16 EEST