I would like to modify the pitch of my audio output.
I know you can use software such as PlayItSlowly to listen to an audio file and alter the pitch in the process, but what I am looking for is a way to modify the pitch just as I do with the volume.
I can do it on Windows with Realtek's sound manager, so I guess there must be a way to do it on Linux as well.
Install ALSA equalizer plugin:
sudo apt-get install libasound2-plugin-equal
Prepare your .asoundrs file, so that ALSA will know about the plugin:
gedit .asoundrc
Paste inside it (or append at the end, if it already contains some data):
Save the file and exit.
Next, reload ALSA:
sudo alsa force-reload
Your equalizer should be set-up. To use it, run
alsamixer -D equal
TADA! Your alsamixer will now behave as an equalizer, instead of adjusting volumes. Hope this helps!
There are several options. Many of them require Soundtouch, which is a plugin from the Gstreamer set "bad". Run
I wouldn't know which of the options listed below do not satisfy your requirement "just as I do with the volume", and why (e.g., playitslowly).
Sound stretch
Soundstretch seems to do the trick.
Usage:
Options:
Play it slowly
playitslowly
(official documentation) is a GUI, which also provides for a change in pitch. See also here.ffmpeg
Apparently,
ffmpeg
can also be used to change pitch.Audacity
Same as with ffmpeg.
PitchBox
See official info.
Others
There may be other options associated with different pieces of LADSPA software.
Related:
There are two programs that I know of that can do this. One is called rubberband. You can also see the manual page here. It is a time and pitch shifter. These two tools go hand in hand, as shifting the pitch will let you speed up the tempo without turning the result into a chipmunks track.
You can get
rubberband
from apt. It also has a command-line interface available withrubberband-cli
.The other is zita-retune. It is available on apt as well. It exposes the command zretune, which does the same as above through resampling. The
zita library
is very popular among Linux audio community, and has just about any type of pro-audio software tool there is.I got both of them in the Ubuntu Studio Tools Installer kit. It is an apt package (namely
ubuntustudio-installer
) that gives you all of the sound design tools that come withstudio
, including thelowlatency
kernel, but installs them in a way where they seem more like an added feature to the standard ubuntu flavor and not so much like a different flavor altogether. I personally just load thelowlatency
kernel, when I need it, and stick withgeneric
the rest of the time, as thelowlatency
doesn't handle multiple monitors very well.Use the alsa-mixer
Open a terminal and type
sudo apt-get install gnome-alsamixer alsamixergui libasound2-plugin-equal alsa-utils