From: Martin Guy <martinwguy@gmail.com>
To: sox-devel@lists.sourceforge.net
Subject: sinc: continue on lowpass filter with cutoff above Nyquist
Date: Mon, 2 Sep 2024 18:51:18 +0200 [thread overview]
Message-ID: <8f5a5827-e212-4965-a353-d90098da557b@gmail.com> (raw)
You're welcome. I think it needed it.
Now that we're in minor release phase and can pour as much of the
fabulous work that people have done on SoX over the last nine years as
we can into sox_ng, I have a question about SoX itself which I think
belongs here. The sox_ng (or sox-ng) list is only for discussion of the
mountain of cruft I've built on top of and around the code base we know
and love.
This is about an issue I'm putting in myself for my own use case where I
process a ripped enormous CD collection with a low-pass brickwall filter
"sinc" at 15175Hz because a lot of the CDs clip as recorded and all the
interesting musical information is below that frequency so it removes
the harshest part of the cllipping.
When it gets to the data CDs with WMAs and stuff recorded at 22050 or
16kHz, sox dies saying the cutoff frequency is above half the sampling
rate. But if a brickwall lowpass's cutoff frequency is above the Nyquist
frequency it should be a no-op, a copy-through.
I've done for myself: where it checks for this case, I just set the
cutoff frequency to half the sampling rate and it seems to work without
blowing up but it's not right because if the cutoff is way above half
the sampling rate, this erroneously fiddles with the top end for the
edge effects I presume it has around the target frequency. But it *is*
easy to implement.
My question is, to have the most SoXey result, would it be right to flip
from sinc to a copy-through when that happens, and how difficult is it
likely to be to implement?
Thanks, onwards...
M
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel
next reply other threads:[~2024-09-02 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-02 16:51 Martin Guy [this message]
2024-09-03 5:06 ` sinc: continue on lowpass filter with cutoff above Nyquist Rob Sykes via SoX-devel
2024-09-03 8:47 ` Martin Guy
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-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f5a5827-e212-4965-a353-d90098da557b@gmail.com \
--to=sox-devel@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).