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=-4.0 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,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 B48A11F55B for ; Sat, 30 May 2020 18:46:47 +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 1jf6VF-0001mA-I7; Sat, 30 May 2020 18:46:41 +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 1jf6VE-0001m3-GX for sox-users@lists.sourceforge.net; Sat, 30 May 2020 18:46:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3EF/DaPLCBOeYtzCl6ruE38m68lEIX+Y14Csmp1XJZM=; b=Q5tcJ1tYMMsKR+kRVfdNIPPxto A7I0Drg5IUWqQXwmzmG9Ibu3k/qoQc3mmC1PIpbf0C+skfGwk9i1s6tEpEzcII/JlG5vbI+B3bUlU N2id1b9p8kc0yqtiSchTiJCypf85EPbS2zVXNvVGbHuyGlB+Rvy3qHUyDZCcs30aTpWA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version:Sender:Reply-To :Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=3EF/DaPLCBOeYtzCl6ruE38m68lEIX+Y14Csmp1XJZM=; b=O IdaZMbbwIjHGFHRj2cl6YpIovEUugzDQaA2C+HYAm1URsXbNIs5TOgfX4FUkIeAAyLUjidY6adqnk Ki3wvD2NMXtkrc7Wg/HcEK9JGIvvR3GS0uOFJUBBTIu+NavUg6c5twOPDHj1jUqNqxjPOt7q+sKH0 rQB5tyhy47FWk3tY=; Received: from mail-wr1-f41.google.com ([209.85.221.41]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jf6VD-001AuA-8j for sox-users@lists.sourceforge.net; Sat, 30 May 2020 18:46:40 +0000 Received: by mail-wr1-f41.google.com with SMTP id p5so1503630wrw.9 for ; Sat, 30 May 2020 11:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3EF/DaPLCBOeYtzCl6ruE38m68lEIX+Y14Csmp1XJZM=; b=L5OGlB1GufSV0UnnXqp+218yypq1+U3z+ryG8GOs7Yg9yLl2rfzApWaD0/Bks6EEIG WL/2aNUmthKYgPQ8qyfv+VVK3ssABqFU7wEqgfCNVHZ0tSo+dRmkDTZ/BAWKYESV22/p 4BDrv4HOzj9VU11yWGOdtYpGKzrfrZsOYb9YST0GWQNyP4Iqq1hISrGyvo5Kmp/wl5M+ r2vPdq4M2zAaeTltDD30WmPuUgDqJc6BRt0znscc4J9X/PWZDD1n0XJNOf6OAZulHtpi 7Apa1IXwvX4+Ggq+7IJ+HACtQfK1sdKwXSFPnf/4OkOF6KIlYC8fwiQwHuUGcoYQpVrz tTVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3EF/DaPLCBOeYtzCl6ruE38m68lEIX+Y14Csmp1XJZM=; b=kxOBLCO7+pM9SQFmJKvYilhE5roCyNO/J+xVmI9JMSvgwSanfxnycLJE3EvHHop/Mg TpQpQHPL2ct3az2nNuIXcVl3Pu17QidSl2ofQCPlmI3wCSytjlOArDr+7A5N4epbGrIs HTsFHq0370DHouaMw4nvrBBLXajj43tDkbYFzHiTFNo40o8gIwCV6Is6FVjGNhfoksg2 /ZiHxb9EKHVaMWoAfoaDu0sjPXuCIEp7eQnfU6eEBQqpu8s+P/w2QQirmnnFLgNWWgii ggALik07c/vmalRTMAwTgElCO6uVkq6GDRQNyJphkrJkwu8e4IhcpTcbqXVMdAAtbtH4 U/aA== X-Gm-Message-State: AOAM531GCeWfu5dLUoKbmK7H+1jEJObIqIdL3EKTVL3yj5VSnnQ/EIOD hM2E6LnYDv1KlcTNOscD1tLgc8OhDpNA4yVNm+Dtd+g= X-Google-Smtp-Source: ABdhPJxIJN/lzMgp+XXAwPbbwUwLL5y8/uh1aTq/W52duaR1pShruO4yx5+jxDJpQJEaOiuTLBhu7+rZpEVz/3eXLsE= X-Received: by 2002:adf:9404:: with SMTP id 4mr11517647wrq.367.1590864392680; Sat, 30 May 2020 11:46:32 -0700 (PDT) MIME-Version: 1.0 From: Jeff Learman Date: Sat, 30 May 2020 14:46:21 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jf6VD-001AuA-8j Subject: MS->LR conversion: why does order matter with gain? 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: multipart/mixed; boundary="===============0597709238990869600==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0597709238990869600== Content-Type: multipart/alternative; boundary="00000000000002f6b905a6e1fb3f" --00000000000002f6b905a6e1fb3f Content-Type: text/plain; charset="UTF-8" I'm converting mid-side to LR. Originally I used this: sox $MS $LR gain -0.5 : remix -m 1,2 1,2i but found that the result does not have an important property of mid-side: when summed to mono, the effect does not cancel out. I changed it to this: sox $MS $LR remix -m 1,2 1,2i : gain -0.5 and it works as expected. Why is there a difference? Note that there is no clipping going on in either case. My intuition says that MS->LR is linear, so gain applied before or after should have the same effect. Thanks! Jeff --00000000000002f6b905a6e1fb3f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm converting mid-side to LR.=C2=A0 Originally I= used this:

sox $MS $LR gain -0.5 : remix -m 1,2 1= ,2i

but found that the result does not have an= important property of mid-side: when summed to mono, the effect does not c= ancel out.
I changed it to this:

sox $MS= $LR remix -m 1,2 1,2i : gain -0.5

and it works as= expected.=C2=A0 Why is there a difference?=C2=A0 Note that there is no cli= pping going on in either case.=C2=A0 My intuition says that MS->LR is li= near, so gain applied before or after should have the same effect.

Thanks!
Jeff

--00000000000002f6b905a6e1fb3f-- --===============0597709238990869600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0597709238990869600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============0597709238990869600==--