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 5C54F1F55B for ; Sat, 30 May 2020 19:41:14 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jf7Lv-0001jG-1e; Sat, 30 May 2020 19:41:07 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf7Lt-0001j1-8n for sox-users@lists.sourceforge.net; Sat, 30 May 2020 19:41:05 +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=6XLldh+C/EJ4YYFQE/ASneAp16jZ1EURFD9FL5Md3V4=; b=APGNWS3DlIHQ0EnAWRmono5SY sHH9WIiwUTP/dc2IdHxdal/q/dIG06B03f8DnswcaiB9DUa2R4F0RXB3BZ2k9DaTaTD8PQb6NQnjm 4oq49jZmZ8PFRcAdbR9hGD6R96uvUNfsQzFFUXhvk1LfnLLE8+CdIkq5oVpkFmA2oomEM=; 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=6XLldh+C/EJ4YYFQE/ASneAp16jZ1EURFD9FL5Md3V4=; b=N6Fzp2F9EGkJ9gSJnvR6AvVv6w VQVJ4mP8+wKQXCsXxHHsUR/D0rgL9kEnHovyss6mw0Rlufpi0WuCrzlYzAXUggdwbEo9pV5On38ka xsUbjhwRvi3MzSbUz2LLuahojNW+Yro+IRXB03NlLI/CL+VXQJUedk6/RBc6iViNBfUI=; Received: from mail-wr1-f41.google.com ([209.85.221.41]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jf7Lr-004Df7-T7 for sox-users@lists.sourceforge.net; Sat, 30 May 2020 19:41:05 +0000 Received: by mail-wr1-f41.google.com with SMTP id e1so7535455wrt.5 for ; Sat, 30 May 2020 12:41:03 -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=6XLldh+C/EJ4YYFQE/ASneAp16jZ1EURFD9FL5Md3V4=; b=Hq1NADCmPM33HqbFh/a7IHAn6SeBE/dK7HWEU0DVzP7HPCZjMt/DNeZxxGJdEIij1O JpmTI/8h+4USeWeS5C+13RbRCg3aCTwaoP7giEmNkOXzcAfZpgItUdSJOAhvyUHaXWcG rOCrShOjPIbwD+rVVftI0eDibiOALoFpGT3zZ5wc6BOU3Xqg9N24XYZJX0fD8Lniq7zD IB4Z4L/lbFQJOT3hNHxOKaRkUomaX1j2d1fZfEE2mlTXtSGg0B5bzq9t8pPnLhHdvuD3 r18+OHKaKI0dv+E0b/IDFB8PeTlr4XJEmyWfVL2gY6tDVkeN/DSzcZL7UYqq9KKN6ag1 npIw== 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=6XLldh+C/EJ4YYFQE/ASneAp16jZ1EURFD9FL5Md3V4=; b=HM468tcLi9FjCr0hfsmmwmQ7ZZAKsuPYlCJyxs19X901q4y4eEZ7J81omzvpe5JUNs r6nJqhfThROkBI7cAy63ai+BHtFXlbOvj6Xn2rfNPf23YJv6YO+AOi1Iki47AecFY7/c 7VEKcW0bFvroJY/catVAvxM1hZBO/mem0oHLRsjaw554ivV2z8H5DE3LPEE7NEmqpHBO 2UvvzDbaPJDHyGmR0hgg/dJlDwQT4+QgCS0jfebD9u/QTOblpCEvSEd5DZDDq13hDeKo Q0DKEdAyZuvMi+rQBpwwFxhChfABXg2itwTjY8RQBa32YKAaZTRKarC6DAWpodWrCbhw XTPw== X-Gm-Message-State: AOAM533YfU3XO7dL473JDbCOFbtpmTa+7AwLwKK1Q7pI7+mffypFafz/ sbWkeWoyrbQcYhtEnVuuMl6So8LDf6ZsJ0uWNllI X-Google-Smtp-Source: ABdhPJzy9CTXp+l/2iD6qCuz/r5mM6oTSPYRrj3VRIuT2F6c7IGXHG+dMrq9ifUKXh2ogJ66VQeimTwni4lRgz6Iarc= X-Received: by 2002:a5d:49c4:: with SMTP id t4mr14081101wrs.127.1590867650257; Sat, 30 May 2020 12:40:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeff Learman Date: Sat, 30 May 2020 15:40:38 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jf7Lr-004Df7-T7 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="===============5773217672847012305==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============5773217672847012305== Content-Type: multipart/alternative; boundary="0000000000002da84605a6e2bdd6" --0000000000002da84605a6e2bdd6 Content-Type: text/plain; charset="UTF-8" Never mind! Colon abuse! I meant to chain effects but instead I used multiple effect chains. On Sat, 30 May 2020 at 14:52, Jeff Learman wrote: > 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 >> >> --0000000000002da84605a6e2bdd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Never mind!=C2=A0 Colon abuse!=C2=A0 I meant to chain effe= cts but instead I used multiple effect chains.

On Sat, 30 May 2020 at 14= :52, Jeff Learman <jjlearman@gmai= l.com> wrote:
Well I bet I didn't really mean to use negative g= ain!=C2=A0 But I think that shouldn't affect the question.
On Sat, 3= 0 May 2020 at 14:46, Jeff Learman <jjlearman@gmail.com> wrote:
I'm conver= ting 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: whe= n 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.=C2=A0 Why is there a diff= erence?=C2=A0 Note that there is no clipping going on in either case.=C2=A0= My intuition says that MS->LR is linear, so gain applied before or afte= r should have the same effect.

Thanks!
Jeff

--0000000000002da84605a6e2bdd6-- --===============5773217672847012305== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5773217672847012305== 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 --===============5773217672847012305==--