Page 1 of 2
Сhanging project rate.
Posted: Sat Oct 13, 2018 4:26 pm
by юра00
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.
Posted: Sat Oct 13, 2018 5:08 pm
by steve
Anything is possible, but what is your specific use case? What are you trying to do?
Re: Сhanging project rate.
Posted: Sat Oct 13, 2018 8:26 pm
by юра00
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.
Posted: Sat Oct 13, 2018 8:31 pm
by steve
юра00 wrote: ↑Sat Oct 13, 2018 8:26 pm
60-70-th
I don't understand what that means.
юра00 wrote: ↑Sat Oct 13, 2018 8:26 pm
Just in case, I raise it to 44000 or 48000 Hz
Why?
Re: Сhanging project rate.
Posted: Sat Oct 13, 2018 9:50 pm
by юра00
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.
Posted: Sun Oct 14, 2018 11:25 am
by steve
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
Re: Сhanging project rate.
Posted: Mon Oct 15, 2018 8:34 am
by юра00
"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?
Re: Сhanging project rate.
Posted: Mon Oct 15, 2018 8:37 am
by юра00
These options? How can I choose? Preset, variable, stereо, joint stereo...
Re: Сhanging project rate.
Posted: Mon Oct 15, 2018 8:54 am
by steve
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
Re: Сhanging project rate.
Posted: Mon Oct 15, 2018 2:08 pm
by юра00
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.