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 0FE631F55B for ; Sat, 30 May 2020 18:53:05 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jf6bM-0002Xf-08; Sat, 30 May 2020 18:53:00 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf6bL-0002XY-2m for sox-users@lists.sourceforge.net; Sat, 30 May 2020 18:52:59 +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: In-Reply-To:References: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OSxsuJdR/DR4ckE/ttyzN1aQJz/KzTpVje5eKAEPzb8=; b=EdJnV1XTyPJoC3dj+Io0ALNNZ QfCSQmbR7NSVXcwzTUnhBG4nfxcWz6PqxtctPyzcqxoFhkRcP2CfN/dGDZK5CIChJysbPk7VXd8Nu MdIlT7XySNazGoFchmf9qTSAJsZt6wPACzLTvF8zik5MruVwAkPLVMd4v4EJjQgZwCdh4=; 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:In-Reply-To:References: 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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OSxsuJdR/DR4ckE/ttyzN1aQJz/KzTpVje5eKAEPzb8=; b=jkkyF8HLpa2hUJ9wwTRubigdHB F4xvam6hvYtHkDpdlDz8FEpuQrdxkG8GYbeOxcA5aaIhpIzmrcq3Wpt9WyEb8OfaqiUHSDfSS29aJ 5JVzi3NfD7chJYeM6CkOMAwqfTpDsPIqUW3OOhznwRLtP0ceaNZ8+sW6JDX4x7fUPJFc=; Received: from mail-wm1-f44.google.com ([209.85.128.44]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jf6bG-00E8s1-7l for sox-users@lists.sourceforge.net; Sat, 30 May 2020 18:52:59 +0000 Received: by mail-wm1-f44.google.com with SMTP id n5so7405000wmd.0 for ; Sat, 30 May 2020 11:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=OSxsuJdR/DR4ckE/ttyzN1aQJz/KzTpVje5eKAEPzb8=; b=UE2Lm/Wpt1Ztx956l/f3vBLQlFy1HnAdGochNEkVhZQvhxBOfOBSSZzGfug8CAK6CS hy3xgMTHZXQ5dNZ145iN7oT7/QV7a1guJSoJpp+6KgK/vQE/RCh6VOQrW+isj7rbwIcJ qyeWxVKEoEgW6o76/2XcwoB1BjMohyIwkJpfFMiWSD2Azo1UJOTFZwbpNHL4tutBIFvI azhZQ2NddV0eedPRQiZEFjfOPHtBiAwBJavWD21LJ7Y6+/NWkWPSUGgQYpQ1sYcjr4to xzVwqumqpvtuHjYvjCjymULjJNXiagJ4NCmUpZ5GYic1enCOnJolttJ+tAUwYHElUbYS g/Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=OSxsuJdR/DR4ckE/ttyzN1aQJz/KzTpVje5eKAEPzb8=; b=jo3YuTNAZtdW3WE3JW+jyD2Tc5yoF8pVxWriJQtU5qkxbBCQ0Gw1d3HFGv1aM3o8QX E2SGOpwuwIqqB1f40aBacsA/BN+7rOpcBmLqNBSAkkiNVBmaxyZIn8I1IS4R43aZuDhJ pz3IOOmHnFTkzMv9x3xe9X3DmkPuWUjSZ6F1TUZg9YPhbSwDJKWJy9+tnWq0gn9ydtjn VloP8Yxp/0athXhTmn49sxu3BSeIuvVL2znJw8aul2cBmcefKwPFwbkqaRBwr6Mzwhnk 8C/XXqvv4Y9MtvDRqmyEtHnIV9bBs5opWDro+q1iGl2gWUsdPRQwH51w4K+a+QWT0EgV 6gag== X-Gm-Message-State: AOAM533edADarFD84MvSx+5WwAjKO8/pFGCUPomtiZPXeIy2M/h3hFwo kP1FSum6RrxJRcJe6fdCDWoch2OYJ6Ir0h9Dsv4g X-Google-Smtp-Source: ABdhPJykwNKU50DmcTU+2kHsDnpdG0yXt99AsfMwAfRAl/DQpjW0n/fXczCywrN1EyeeUzOZBAaeGk7whT9AUKdw1o8= X-Received: by 2002:a1c:1902:: with SMTP id 2mr14168323wmz.178.1590864767792; Sat, 30 May 2020 11:52:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeff Learman Date: Sat, 30 May 2020 14:52:36 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jf6bG-00E8s1-7l Subject: Re: 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="===============1543418051989746298==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============1543418051989746298== Content-Type: multipart/alternative; boundary="0000000000005ebb0705a6e211fa" --0000000000005ebb0705a6e211fa Content-Type: text/plain; charset="UTF-8" Well I bet I didn't really mean to use negative gain! But I think that shouldn't affect the question. On Sat, 30 May 2020 at 14:46, Jeff Learman wrote: > 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 > > --0000000000005ebb0705a6e211fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well I bet I didn't really mean to use negative gain!= =C2=A0 But I think that shouldn't affect the question.

On Sat, 30 Ma= y 2020 at 14:46, Jeff Learman <jj= learman@gmail.com> wrote:
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 resu= lt does not have an important property of mid-side: when summed to mono, th= e effect does not cancel out.
I changed it to this:
sox $MS $LR remix -m 1,2 1,2i : gain -0.5

<= div>and it works as expected.=C2=A0 Why is there a difference?=C2=A0 Note t= hat there is no clipping going on in either case.=C2=A0 My intuition says t= hat MS->LR is linear, so gain applied before or after should have the sa= me effect.

Thanks!
Jeff
--0000000000005ebb0705a6e211fa-- --===============1543418051989746298== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1543418051989746298== 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 --===============1543418051989746298==--