unofficial mirror
 help / color / Atom feed
From: Danijel DOMAZET <>
Subject: Prevent SoX from doing the clipping?
Date: Fri, 5 Jun 2020 08:54:48 +0200
Message-ID: <> (raw)

[-- Attachment #1.1: Type: text/plain, Size: 798 bytes --]

Hi list,

I have a heavily "overflowed" WAV file (samples written in float 32-bit
format): instead of [-1.0,+1.0], the samples range goes as far as

Using SoX to get raw PCM audio samples from WAV file:

`sox --bits 32 --channels 1 --encoding floating-point --rate 48000
input.wav output.raw`

I get warnings:

    sox WARN sox: `input.wav' input clipped 1163400 samples
    sox WARN sox: `output.raw' output clipped 605664 samples; decrease

When I look into the output, I see the samples were clipped, and the range
is [-1.0,+1.0] now. However, that is not what I want.

I would like to have exactly the same output as input, just in different
format (RAW instead of WAV). Is there a way to prevent SoX from doing the

Danijel Domazet

- Confidential -

[-- Attachment #1.2: Type: text/html, Size: 1263 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

Sox-users mailing list

             reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05  6:54 Danijel DOMAZET [this message]
2020-06-05  8:05 ` Peter P.
2020-06-05  8:31 ` Måns Rullgård
2020-06-05  8:39   ` Danijel DOMAZET
2020-06-06 18:02 ` Jan Stary
2020-06-06 18:03 ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link unofficial mirror

Archives are clonable: git clone --mirror

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor:

AGPL code for this site: git clone