Сhanging project rate.
Forum rules
This 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.
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.
Сhanging project rate.
Dear experts! Is it possible to improve the editor so that changing project rate could be included to the chain (macros)?
Re: Сhanging project rate.
Anything is possible, but what is your specific use case? What are you trying to do?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Сhanging project rate.
My favorite music is 60-70-th, among the tracks when downloading there are records with low rate, for example 22500 Hz. Just in case, I raise it to 44000 or 48000 Hz, now there are no hot keys or chains for this, I have to translate the value in the lower left corner every time.
Re: Сhanging project rate.
I don't understand what that means.
Why?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Сhanging project rate.
I've meant the songs of 1960-70s. And on the second question: I sometimes send music to sites, and so, on some, files with a low, up to 44000 Hz, are not accepted.
Re: Сhanging project rate.
It is not yet possible to change the project rate with a macro command, so I'll put the suggestion to the developer that has been working on the new macro commands.
Regarding your specific use case, there are a number of ways that the problem could be solved, some of which are possible now, and some of which are feature requests:
1) Specify the sample rate in the export command.
This is not currently possible using Audacity's built-in exporters (though it logged as a frequently requested feature), but it IS possible using the "external program" export option https://manual.audacityteam.org/man/exp ... ogram.html
For example, if you have SoX installed (http://sox.sourceforge.net/Main/HomePage) and you want a WAV file with a sample rate of 44100 Hz, then you can use the command:
2) Ensure that the file is not imported into an empty project. This won't work when batch processing, because the batch process effectively creates a new project on import, but is easily done in other cases. If the project is not empty, then Audacity retains its current project rate.
3) Feature request: Ability to specify the sample rate as an export setting.
4) Feature request: Preference setting to NOT change the project rate when importing.
5) Batch process your files with a suitable transcoding application so that they are all in an appropriate format before using Audacity.
6) Use Python (or any language that supports "named pipes") to drive Audacity via mod-script-pipe. Mod-script-pipe is not yet available as a ready-built module, but it is on its way. More info: https://manual.audacityteam.org/man/scripting.html
Regarding your specific use case, there are a number of ways that the problem could be solved, some of which are possible now, and some of which are feature requests:
1) Specify the sample rate in the export command.
This is not currently possible using Audacity's built-in exporters (though it logged as a frequently requested feature), but it IS possible using the "external program" export option https://manual.audacityteam.org/man/exp ... ogram.html
For example, if you have SoX installed (http://sox.sourceforge.net/Main/HomePage) and you want a WAV file with a sample rate of 44100 Hz, then you can use the command:
Code: Select all
sox -t wav - -r 44100 "%f"3) Feature request: Ability to specify the sample rate as an export setting.
4) Feature request: Preference setting to NOT change the project rate when importing.
5) Batch process your files with a suitable transcoding application so that they are all in an appropriate format before using Audacity.
6) Use Python (or any language that supports "named pipes") to drive Audacity via mod-script-pipe. Mod-script-pipe is not yet available as a ready-built module, but it is on its way. More info: https://manual.audacityteam.org/man/scripting.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Сhanging project rate.
"External program" export - I don't quite understand. A window opens with the lame command and something further. And how can I choose a format and bit-rate now? And other options that were available in the usual mp3 export?
- Attachments
-
- Capture.PNG (136.24 KiB) Viewed 1585 times
Last edited by юра00 on Mon Oct 15, 2018 8:44 am, edited 3 times in total.
Re: Сhanging project rate.
These options? How can I choose? Preset, variable, stereо, joint stereo...
Last edited by юра00 on Mon Oct 15, 2018 9:20 am, edited 2 times in total.
Re: Сhanging project rate.
The "external program" export option allows you to specify any command line encoder that you have installed on your computer.
Examples are included for "lame" and "ffmpeg" command line encoders.
In my previous post I gave an example using SoX command line encoder.
Detailed instructions for the "external program" export option are here: https://manual.audacityteam.org/man/exp ... ogram.html
SoX may be downloaded here: http://sox.sourceforge.net/
The full SoX manual is here: http://sox.sourceforge.net/Docs/Documentation
Examples are included for "lame" and "ffmpeg" command line encoders.
In my previous post I gave an example using SoX command line encoder.
Detailed instructions for the "external program" export option are here: https://manual.audacityteam.org/man/exp ... ogram.html
SoX may be downloaded here: http://sox.sourceforge.net/
The full SoX manual is here: http://sox.sourceforge.net/Docs/Documentation
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Сhanging project rate.
Well, is it possible to upgrade a command for sox
so that the export is in mp3 format, 48000 Hz and bit rate of 320 kbit/s? That is, I guess that wav should be replaced by mp3, 44100 - to 48000, and how to set the bit rate of 320 kbit/s?
By the way, the program has not been updated for a long time.
Code: Select all
sox -t wav - -r 44100 "%f"Code: Select all
sox -t mp3 - -r 48000 "%f"
Last edited by юра00 on Mon Oct 15, 2018 2:26 pm, edited 1 time in total.