Disable automatic low pass filter when resampling

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
8bit_coder
Posts: 32
Joined: Sun Dec 03, 2017 4:31 am
Operating System: Windows 8 or 8.1

Disable automatic low pass filter when resampling

Post by 8bit_coder » Sat Jun 01, 2019 12:38 am

First off I'm using windows 8.1 Pro and Audacity 2.2.2

Whenever I resample something in audacity, it resamples it but it also has an automatic low pass to prevent the alias frequencies from coming through. Is there a way I can disable this to hear for example a 8 khz sample rate file without the low pass, meaning including all of the hiss and alias noises along with that sample rate?
Thanks.
PS: I am willing to modify code in my copy of audacity to attempt this

DVDdoug
Forum Crew
Posts: 9419
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Disable automatic low pass filter when resampling

Post by DVDdoug » Sat Jun 01, 2019 1:04 am

PS: I am willing to modify code in my copy of audacity to attempt this
You'll probably have to do that. Filtering is part of any proper downsampling algorithm. I've never even looked at the Audacity code but I assume you know it's open source.

You can probably make a Nyquist plug-in. That should be easier than modifying the Audacity code and I'd imagine it's "easy" if divide the sample rate by even numbers.

8bit_coder
Posts: 32
Joined: Sun Dec 03, 2017 4:31 am
Operating System: Windows 8 or 8.1

Re: Disable automatic low pass filter when resampling

Post by 8bit_coder » Sat Jun 01, 2019 1:56 am

Well, then what code should I write? I don't have a ton of experience with nyquist so a little help would be greatly appreciated :)

Trebor
Posts: 9954
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Disable automatic low pass filter when resampling

Post by Trebor » Sat Jun 01, 2019 2:18 am

8bit_coder wrote:
Sat Jun 01, 2019 12:38 am
First off I'm using windows 8.1 Pro and Audacity 2.2.2

Whenever I resample something in audacity, it resamples it but it also has an automatic low pass to prevent the alias frequencies from coming through. Is there a way I can disable this to hear for example a 8 khz sample rate file without the low pass, meaning including all of the hiss and alias noises along with that sample rate?
A similar effect could be achieved with a bit-crush plugin.
Tritik Krush is free & works in Audacity on Windows ...

https://youtu.be/owZhhsHjh20?t=35s

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Disable automatic low pass filter when resampling

Post by steve » Sat Jun 01, 2019 1:26 pm

8bit_coder wrote:
Sat Jun 01, 2019 12:38 am
Whenever I resample something in audacity, it resamples it but it also has an automatic low pass to prevent the alias frequencies from coming through. Is there a way I can disable this to hear for example a 8 khz sample rate file without the low pass, meaning including all of the hiss and alias noises along with that sample rate?
Thanks.
1) Select the track
2) Apply this command in the Nyquist Prompt:

Code: Select all

;version 4
(force-srate 8000 *track*)
3) From the track drop-down menu, select "Rate" and set it to 8000.

The "force-srate" command resamples a sound using linear interpolation without pre-filtering.
*TRACK* is a special variable that passes the selected audio from Audacity to Nyquist.

By the way, the current and recommended version of Audacity is 2.3.2. It is available via the Audacity website: https://www.audacityteam.org/download/windows/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

8bit_coder
Posts: 32
Joined: Sun Dec 03, 2017 4:31 am
Operating System: Windows 8 or 8.1

Re: Disable automatic low pass filter when resampling

Post by 8bit_coder » Sat Jun 08, 2019 3:54 am

To Steve's solution:

Yes, I know of that nyquist command. But it still acts the same as if I just clicked resample. This simply does that but in a more complicated way and it doesn't give the results I want.

To the Trikit solution:

Yes, I know I can use a bit crusher, but that defeats the whole purpose of being able to set a specific sample rate.

Thanks

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Disable automatic low pass filter when resampling

Post by kozikowski » Sat Jun 08, 2019 4:54 am

that defeats the whole purpose of being able to set a specific sample rate.
Reducing the sample rate isn't "free." 8000 is just better than AM radio.

What's the goal? I mean the real goal, not the microscopic viewing the rate goal. Why are we doing this?

Koz

Trebor
Posts: 9954
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Disable automatic low pass filter when resampling

Post by Trebor » Sat Jun 08, 2019 5:35 am

8bit_coder wrote:
Sat Jun 08, 2019 3:54 am
To the Trikit solution:
Yes, I know I can use a bit crusher, but that defeats the whole purpose of being able to set a specific sample rate.
Tritik Krush does also downsampling as well as bitcrush.
dBlue crusher is a free plugin which has a downsample slider, independent of bitcrush.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Disable automatic low pass filter when resampling

Post by steve » Sat Jun 08, 2019 11:24 am

8bit_coder wrote:
Sat Jun 08, 2019 3:54 am
To Steve's solution:

Yes, I know of that nyquist command. But it still acts the same as if I just clicked resample.
Try following the instructions exactly as I wrote them.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Trebor
Posts: 9954
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Disable automatic low pass filter when resampling

Post by Trebor » Sat Jun 08, 2019 4:39 pm

steve wrote:
Sat Jun 08, 2019 11:24 am
Try following the instructions exactly as I wrote them.
steve wrote:
Sat Jun 01, 2019 1:26 pm

Code: Select all

;version 4
(force-srate 8000 *track*)
In Audacity 2-3-2 on Windows 8 that code just speeds it up.

Post Reply