sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jeff Learman <jjlearman@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: MS->LR conversion: why does order matter with gain?
Date: Sat, 30 May 2020 14:46:21 -0400	[thread overview]
Message-ID: <CAGyjer5_KdCSof6MSgx+HCAupfwbEp2dD71KiVpXtHoSyMNSqw@mail.gmail.com> (raw)


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

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

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

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



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

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

             reply	other threads:[~2020-05-30 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 18:46 Jeff Learman [this message]
2020-05-30 18:52 ` MS->LR conversion: why does order matter with gain? Jeff Learman
2020-05-30 19:40   ` Jeff Learman

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

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

  git send-email \
    --in-reply-to=CAGyjer5_KdCSof6MSgx+HCAupfwbEp2dD71KiVpXtHoSyMNSqw@mail.gmail.com \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).