Re: How to keep sox_ng from clipping on an F32 .wav file from a Zoom recorder

Doug Lee <[email protected]> Tue, 7 Jul 2026 15:27:36 -0400
Newsgroups gmane.comp.audio.sox
Message-ID <pfvsvoxcb2jbfqxh5vmyyoofaryz5rmc4qlnrxcc2mroydcq53@y2joifmhsroc>
On Tue, Jul 07, 2026 at 02:48:03PM +0200, Daniel Adamski via Sox-users wrote:
>On 05/07/2026 22:19, Doug Lee wrote:
>> I recorded part of a Virginia/DC air show last night with a Zoom H1
>> Essential recorder, which uses 32-bit float samples. Try as I might, I
>> can't keep sox_ng from clipping while trying to process these files. Is
>> this possible currently?
>> 
>(sorry Doug, I sent the reply directly to you and not to the list)
>
>If your sox is built with libsndfile support, then you can do:
>
>sox -tsndfile INPUT OUTPUT
>
>sndfile reader normalizes float formats to [-1,1] before the samples hit sox's
>integer pipeline.

No problem on the initial private mail; as I said there, initial results
looked excellent! By now, I have used your advice to make a successful
transfer of 14 segments of F32 wav sound into a lossless 16-bit Flac
file, though each segment got independently normalized resulting in
minor level jumps now and then. I can reduce that next time by converting
the full source file set before segment extraction, but there may still
be slight jumps between files I suppose.

Thanks much; this prevented me from having to tinker with each file in
turn under GoldWave in Windows just to put together the file I wanted.


-- 
Doug Lee   http://www.dlee.org
"I before E, except after C, or when sounded like A, as in neighbor
and weigh, except for when weird foreign concierges seize neither
leisure nor science from the height of society."