From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0883C1F55B for ; Fri, 5 Jun 2020 08:05:04 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jh7LU-00058C-ET; Fri, 05 Jun 2020 08:04:56 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jh7LN-00057t-NG for sox-users@lists.sourceforge.net; Fri, 05 Jun 2020 08:04:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=J1Gbkv8VEk3ihV/pzoU2UGVLko/icjS/V7mdeUT8m9o=; b=dS2xAx+7tgjRA0itaOYCd3rK9M ayYrCh2NV/vBzGEsxAk6mVOpIxiJK+6v4qyZL/epYJKFXdVWwknaNTlGDbfjBMzeJ0PUsvFe4cv8U NnTP9PQLRFX4oFkeOtLzyynEQ1vMwRufXGM8C8LIZ4IPK1+1/UIGq+VM8Mv5Vfd+jCz8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To: From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=J1Gbkv8VEk3ihV/pzoU2UGVLko/icjS/V7mdeUT8m9o=; b=CuzFEHV0SScdP22TtPBgi+cnQ6 Ol+CprYTII1HbjJH/VMHtc2H4r2Bdvh4FPh+Cctz6xOvh0bW3Ro2fHWtWaODh6iO8u6qRS4UJmfz6 1kDNrAP2KQ+10z45k/FvJ0cl4H0SrD9107hFGrtwuWFAAGbXNJajU3NaDaiUlQEjrcME=; Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jh7LM-006bww-0R for sox-users@lists.sourceforge.net; Fri, 05 Jun 2020 08:04:49 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E9D985C0092 for ; Fri, 5 Jun 2020 04:04:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 05 Jun 2020 04:04:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=J1Gbkv8VEk3ihV/pzoU2UGVLko/ icjS/V7mdeUT8m9o=; b=akGMaI4ubgy3iikMomNJI8ZicNJzX5vUnUMqHfCdLEO ZAJMCAYTmo83UtJcTZrRUKCw0zX7MMMY1vnINaoqOrIJX47nUCmNi9SJy9sDgMVk REGrWCSFuXxZv4y21aQMd4I1oAkwYBlZtujOcFabv0SYXjz65m1x06Gl3wr207g6 CvyxhRJGXg28cdhF4ztjteunZRlSpaE4fzUd0CgQXleW9rMIdSFTI3iEMORXuiV8 Una7tfCPUPI0PvObqSX9C/G0l4B1xxBSx9skv1RZy91aqLGkWTpXW6e8GvLRLY4J m2cQbzyaEgvbHG7foN0E2lYRNEfzyh43voXhnzH8Efg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=J1Gbkv 8VEk3ihV/pzoU2UGVLko/icjS/V7mdeUT8m9o=; b=WAzz0UoMuR7YMZSxB5NUZa AdQjgrJGLR+to7yoPTMQg5idAiNYrT48GLZZonYlTLsZRnL8xLaZIBtZcxPf1ILA Zv75FAWjwRlnnhqRfL2M30ihuMesXfzMQzq7UZNh3uNhYF0hwzKPlINPcWZlSNdV fU6y5oE9K5SMRnvsxwx2TLzqwwIOk+EE2/thjbr/3wzcNGNAV7iRO+4opnbgar1T rnU8slHL/1lTG+Qe3q6u5t+tNQjkCkDdwMQikmKRf9ZV7CsK0OuBNwtJ2CmD+2Uk whQlbtdUfQlV8xFwxD6HiMpQBD2RLZ/ch3CJ13mbz3N2+V+IL+MbkzSWOAqh42Bw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudegvddguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpedfrfgvthgvrhcurfdrfdcuoehpvghtvghrphgrrhhkvghr sehfrghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepkedvfeelvdejkeegvd evtedvudfghefhhfekhfeivddtjefhvdeuffejueehledvnecukfhppeduvdelrddvjedr udejvddrieejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhhprghrkhgvrhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (vra-172-67.tugraz.at [129.27.172.67]) by mail.messagingengine.com (Postfix) with ESMTPA id 82B7D30618C1 for ; Fri, 5 Jun 2020 04:04:39 -0400 (EDT) Date: Fri, 5 Jun 2020 10:05:08 +0200 From: "Peter P." To: sox-users@lists.sourceforge.net Message-ID: <20200605080508.thtemzpzfd7jzbuz@fastmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1jh7LM-006bww-0R Subject: Re: Prevent SoX from doing the clipping? X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-users-bounces@lists.sourceforge.net * Danijel DOMAZET [2020-06-05 09:19]: > 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 > [-5.0,+5.0]. > > 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 > volume? > > 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 > clipping? Does the RAW format support 32bit floats? Would it be possible for you to rescale volume using the "norm" effect? > > Thanks! > Danijel Domazet > > -- > - Confidential - also confidential Peter _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users