How upsample channel to 11 289 600 hz

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity 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.
Noirceur
Posts: 16
Joined: Thu Aug 13, 2015 5:49 pm
Operating System: Please select

How upsample channel to 11 289 600 hz

Post by Noirceur » Fri Aug 14, 2015 12:35 am

Hello from France, first sorry for my bad english. The mail support send me here.

For a scientific purpose i want to upsample some channel in audacity to non usual/classic sample rate like 11 289 600 hz (44,1khz x 256) or more like 1024x
The resampled option in menu allow only upsampling to 384khz, i can't write value > 384khz.
It's very important to me to have a modded audacity version or a update who can do what i want, or a command line who an do it in audacity. I not a programmer, but i think this thing is not complicated to do, because Libsox library used in audacity allow all sample rate resampling, I want to resample my audio channel in audacity. No with other application. I know superior sample rate can't be readed by soundard/programm.

I'am on Mac os 10.10.4 (Yosemite) and use Audacity 2.1.0.

I will be very happy to donate to audacity team if someone help me to do this for me.

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

Re: How upsample channel to 11 289 600 hz

Post by steve » Fri Aug 14, 2015 8:52 am

11289600 Hz is too high for Audacity.
It is also too high for all sound cards, so even if you could do it, the only way that it could be played would be by down-sampling before passing the data to the sound card.
Noirceur wrote:For a scientific purpose
Could you say more about that? Why do you need to resample to 11289600 Hz sample rate? (perhaps there could be some other approach that you could use).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Noirceur
Posts: 16
Joined: Thu Aug 13, 2015 5:49 pm
Operating System: Please select

Re: How upsample channel to 11 289 600 hz

Post by Noirceur » Fri Aug 14, 2015 2:56 pm

steve wrote:11289600 Hz is too high for Audacity.
It is also too high for all sound cards, so even if you could do it, the only way that it could be played would be by down-sampling before passing the data to the sound card.
Is not a problem ! I don't want to read 32bit/11289600 kHz audio off course and for the quality 24/44.1khz is enough off course !
I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate.
Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.

Its for my student Thesis about digital audio, want to do some measurement. I can't all tell you fine.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: How upsample channel to 11 289 600 hz

Post by Gale Andrews » Fri Aug 14, 2015 5:10 pm

Noirceur wrote:I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate. Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.
You can do it by typing in 11289600 in Project Rate bottom left of Audacity then Tracks > Mix and Render. You will not see all the sample dots when zoomed in. It looks like you see one in every 100 sample dots in some places and one in every 1000 elsewhere. So you should not trust what you see.

If you only want to export, just change the project rate.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Noirceur
Posts: 16
Joined: Thu Aug 13, 2015 5:49 pm
Operating System: Please select

Re: How upsample channel to 11 289 600 hz

Post by Noirceur » Fri Aug 14, 2015 5:33 pm

Gale Andrews wrote:
Noirceur wrote:I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate. Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.
You can do it by typing in 11289600 in Project Rate bottom left of Audacity then Tracks > Mix and Render. You will not see all the sample dots when zoomed in. It looks like you see one in every 100 sample dots in some places and one in every 1000 elsewhere. So you should not trust what you see.

If you only want to export, just change the project rate.


Gale
Thanks for your response. I already tried this method. It work, but non perfectly. The processing resampling time is 2x faster when resampling like this than using the resampling option in the menu, more longer time but better. I really want to do resampling use the resampling option. Any solution ?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: How upsample channel to 11 289 600 hz

Post by Gale Andrews » Fri Aug 14, 2015 6:13 pm

Noirceur wrote:
Gale Andrews wrote:
Noirceur wrote:I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate. Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.
You can do it by typing in 11289600 in Project Rate bottom left of Audacity then Tracks > Mix and Render. You will not see all the sample dots when zoomed in. It looks like you see one in every 100 sample dots in some places and one in every 1000 elsewhere. So you should not trust what you see.

If you only want to export, just change the project rate.
I already tried this method. It work, but non perfectly. The processing resampling time is 2x faster when resampling like this than using the resampling option in the menu, more longer time but better.

In what way is resampling using Tracks > Resample... better, or what is wrong with Mix and Render?

If we let you enter 11289600 Hz in the "Resample" dialogue you would not see all the sample dots in Audacity.
Noirceur wrote:I really want to do resampling use the resampling option. Any solution ?
Remove the hardcoded maximum of 1000000 Hz in Menus.cpp and recompile Audacity.

You can make this a feature request, too. There are a number of places where there are hard coded sample rate limits, but this upper limit (which is in Set Rate in the Track Dropdown Menu too) might be thought reasonable.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Noirceur
Posts: 16
Joined: Thu Aug 13, 2015 5:49 pm
Operating System: Please select

Re: How upsample channel to 11 289 600 hz

Post by Noirceur » Fri Aug 14, 2015 6:43 pm

Gale Andrews wrote:
Noirceur wrote:
Gale Andrews wrote:
Noirceur wrote:I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate. Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.
You can do it by typing in 11289600 in Project Rate bottom left of Audacity then Tracks > Mix and Render. You will not see all the sample dots when zoomed in. It looks like you see one in every 100 sample dots in some places and one in every 1000 elsewhere. So you should not trust what you see.

If you only want to export, just change the project rate.
I already tried this method. It work, but non perfectly. The processing resampling time is 2x faster when resampling like this than using the resampling option in the menu, more longer time but better.

In what way is resampling using Tracks > Resample... better, or what is wrong with Mix and Render?

If we let you enter 11289600 Hz in the "Resample" dialogue you would not see all the sample dots in Audacity.
Noirceur wrote:I really want to do resampling use the resampling option. Any solution ?
Remove the hardcoded maximum of 1000000 Hz in Menus.cpp and recompile Audacity.

You can make this a feature request, too. There are a number of places where there are hard coded sample rate limits, but this upper limit (which is in Set Rate in the Track Dropdown Menu too) might be thought reasonable.


Gale
I don't know, why but i think there a little bug when resampling by export with sample rate project changed.

Per exemple if i upsample 44,kHz to 192khz ("normal" sample rate) , in menu resampling, it take exactly 22 seconds. Do the same think but with changing project rate and do "mix and render" take only 11 second. To my ear with AbX comparaison in blindtest software the file obtain with resampling option in menu sound more smooth (is maybe because longer time processing do the job best)

If i enter 11289600 Hz in the "Resample" menu audacity say me incorrect value.

I'm not programer and i never do code. Remove the hardcoded maximum of 1000000 Hz in Menus.cpp and recompile Audacity is easy for me who has never coding ?

Really thanks you for you support response.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: How upsample channel to 11 289 600 hz

Post by Gale Andrews » Sat Aug 15, 2015 1:52 pm

Noirceur wrote:
Gale Andrews wrote:
Noirceur wrote:
Gale Andrews wrote:
Noirceur wrote:I just want this in audacity, for some dsp treatment and after dowsampled it back to normal rate. Audacity can import all sample rate file and can do resampling effect with all sample rate. I already can import a 11289600 Hz file and downsampling it to 44,1, Auda don't allow upsampling because no sound card can play audio >384 but technically the resampler can resample all signal. I just want upsample properly to non classical sample rate and export.
You can do it by typing in 11289600 in Project Rate bottom left of Audacity then Tracks > Mix and Render. You will not see all the sample dots when zoomed in. It looks like you see one in every 100 sample dots in some places and one in every 1000 elsewhere. So you should not trust what you see.

If you only want to export, just change the project rate.
I already tried this method. It work, but non perfectly. The processing resampling time is 2x faster when resampling like this than using the resampling option in the menu, more longer time but better.

In what way is resampling using Tracks > Resample... better, or what is wrong with Mix and Render?

If we let you enter 11289600 Hz in the "Resample" dialogue you would not see all the sample dots in Audacity.
Noirceur wrote:I really want to do resampling use the resampling option. Any solution ?
Remove the hardcoded maximum of 1000000 Hz in Menus.cpp and recompile Audacity.

You can make this a feature request, too. There are a number of places where there are hard coded sample rate limits, but this upper limit (which is in Set Rate in the Track Dropdown Menu too) might be thought reasonable.
I don't know, why but i think there a little bug when resampling by export with sample rate project changed.

Per exemple if i upsample 44,kHz to 192khz ("normal" sample rate) , in menu resampling, it take exactly 22 seconds. Do the same think but with changing project rate and do "mix and render" take only 11 second. To my ear with AbX comparaison in blindtest software the file obtain with resampling option in menu sound more smooth (is maybe because longer time processing do the job best)
I agree that Tracks > Resample... takes proportionately longer than Tracks > Mix and Render, whatever "High-quality conversion" quality is chosen in Quality Preferences. So that suggests that the Mix and Render isn't simply selecting a lower quality, whatever the reason is.
Noirceur wrote:If i enter 11289600 Hz in the "Resample" menu audacity say me incorrect value.
That is what it is coded to do.
Noirceur wrote:I'm not programer and i never do code. Remove the hardcoded maximum of 1000000 Hz in Menus.cpp and recompile Audacity is easy for me who has never coding ?
There is no programming to do. It means you have to remove a few very obvious lines of code in Menus.cpp and recompile Audacity. We have just made it much easier to compile Audacity on recent OS X. https://github.com/audacity/audacity/bl ... /Build.txt.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Noirceur
Posts: 16
Joined: Thu Aug 13, 2015 5:49 pm
Operating System: Please select

Re: How upsample channel to 11 289 600 hz

Post by Noirceur » Sat Aug 15, 2015 3:04 pm

Thanks you really ! :) I gonna try to Remove the hardcoded maximum of 1000000 Hz alone. If i need help where i can repost a topic ? Still same forum ?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: How upsample channel to 11 289 600 hz

Post by Gale Andrews » Sat Aug 15, 2015 4:25 pm

Noirceur wrote: I gonna try to Remove the hardcoded maximum of 1000000 Hz alone. If i need help where i can repost a topic ? Still same forum ?
First, get wxWidgets built, then Audacity built, without making any changes. If you need help doing that, post in the Compiling Audacity board.

If you have built Audacity without changes but cannot see what to change, ask in this topic.

Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply