Exploring the Audacity 2.1 audio editor
Sound City
The Audacity free audio editor is evolving from a hobby app into a professional sound tool.
The free audio editor Audacity is highly popular in open source music circles. Users rely on Audacity for radio productions, podcasts, and video soundtracks – on Windows and Mac OS as well as Linux. Others use Audacity to digitize cassette tapes and vinyl records. However, many professional musicians have never really been satisfied with Audacity.
The most common criticism of previous Audacity versions was that Audacity didn't allow you to set parameters for effects during playback. With version 2.1, Audacity is now beginning to eliminate this weakness (Figure 1). Additionally, the new version offers many more functions and unique new techniques for sound editing in Linux.
Unpacked
Audacity 2.1 has been available on the project website [1] since the end of March 2015. You'll find installer packages for Windows and Mac OS X; Linux users will find only source code at the Audacity site; check your distro's software repository to see if the latest version is available in package form. The complex Audacity with its cross-platform functional interface has a long list of dependencies. When I tried to build Audacity from the source code on Ubuntu 14.04 LTS, the configure step worked, but the Make build process aborted with an error.
Other Ubuntu administrators have obviously had more luck. The new version was online in the Audacity team's PPA repository a few days after the release [2]. However, because the new PPA version only contains daily builds, you might want to use the PPA maintained at the UbuntuHandbook.org blog [3]:
$ sudo add-apt-repository \ ppa:ubuntuhandbook1/audacity $ sudo apt-get update $ sudo apt-get install audacity
The most important components included with the package are:
- Alsa and OSS as an audio interface,
- Jack as an audio interface via PortAudio,
- Built-in effects, Nyquist console plugins, and Vamp plugins (for visualization)
- LADSPA and Linux VST (lxvst) effects in real-time (lxvst with graphical user interfaces)
- LV2 effects (still without the GUI and not adjustable in real time).
Audacity 2.1 is also available for other common distributions. Fedora is introducing the version to the official package sources from Fedora 20. Packman [4] offers packages for openSUSE back to version 12.3.
Audacity 2.1 launched quickly in my tests, which ran on Ubuntu 14.04 with the KX Studio extensions [5]. Despite the many new functions, the new version is still remarkably stable. Whenever things went wrong in the lab, the problem appeared to be a problem with a plugin.
The Carla VST plugin did not work at all and caused Audacity to crash. Other plugins reacted badly to extreme settings: TAL-Reverb crashed as soon as the section playing live reached the end. Automatic recovery took effect each time Audacity was unresponsive when an error occurred. The automatic recovery feature opens a dialog when you launch Audacity for the first time after a crash. During testing, virtually no modifications that I failed to save before the crash were lost.
Audacity also uses the interface available on Windows and Mac OS X PortAudio [6] for the connection to Jack. This connection now works without any nasty scratching noises or noticeable delays but still remains inferior to a native connection to a Jack server. PortAudio thus only generates a port in Jack, for example, if Audacity is currently playing or recording something. The ports always receive new names. Editing the output from Audacity with external Jack software is a bit of a hassle because Audacity can only be patched while running.
The situation looks better for recording from Jack sources. Audacity lists Jack sources in its summary of recording devices, top center (Figure 2). However, these applications need to be running when you start Audacity; Audacity simply ignores Jack sound sources launched during the Audacity session.
Unlike many other multitrack recording studios, you do not have to configure a track for a new recording yourself in Audacity. The program automatically creates it for you when you press the red record button. However, this design means that only one recording is possible on each track. This approach allows faster and more intuitive work than more demanding software recorders.
Imports and Exports
You can import audio material from supported files directly into the current project as a new track. Audacity needs the corresponding external libraries to open MP3 and similar formats. A meta-package such as ubuntu-restricted-extras will provide you with a collection of important codecs.
Audacity always converts all audio data formats into the uncompressed ULAW-AU format for editing. ULAW-AU corresponds almost completely to similar formats such as Microsoft's WAV or Apple's AIFF. You can import audio tracks from video files. Audacity uses Ffmpeg (libavformat); you will need to install a suitable version. Enable a multichannel mix tool in Edit | Preferences | Import/Export for exporting formats with surround sound.
The versions of Ffmpeg available in Ubuntu caused Audacity a few difficulties in the test. The Audacity package from the Audacity team's PPA requires libavformat.so.55
, whereas the package sources from Ubuntu 14.04 LTS only provide version 54. Audacity also refused to use version 56 of libavformat built from the current source code; I thus had to do without the Ffmpeg functions.
To load an audio track into a new instance, you use File | Open. All running instances of Audacity share the cache. You can copy sections of a recording from a running instance using Ctrl+C and then paste them into another project using Ctrl+V (Figure 3).
The File | Export Audio option lets you export completed projects. Just below, you will find several other export functions for selecting or outputting multiple files. However, the MIDI export offered here counts as the very first step toward MIDI support: As before, Audacity cannot really do anything practical with MIDI; however, the export function at least lets you get started.
At the bottom right of the export tool you can select the desired format for an export. Audacity uses WAV PCM by default for 16-bit files. Audacity does not offer to convert the sample rate when exporting, so if you are working on a video soundtrack, you should make sure the project is running at 48kHz. (44.1kHz is standard for CD audio.)
Select Other uncompressed files, and you'll see a very long list with various niche formats if you click on Options (Figure 4). Some of these formats are reason enough for an aspiring sound engineer to install Audacity: The application provides proud owners of an Akai sampler the option to export home-made drum sounds into the MPC format.
Listen Here and Now
The main improvement in Audacity 2.1 is the real-time mode for effects. Previous versions only allowed a brief preview when setting the parameters of effect plugins, and you could not move the sliders. This limitation made Audacity unattractive for serious ventures.
Using real-time mode, you can now change the different parameters in all Linux VST and LADSPA modules, and you can listen to the effect of the changes immediately. Additionally, Audacity's Effects window provides buttons for controlling the drive (Figure 5). You can save and load the settings with the Effect | Manage menu item when you need them.
You can enable and disable the effect formats LADSPA, VST, and LV2. To avoid problems with experimental plugins, you should manage them in separate directories and link them to /usr/lib
or /usr/share/audacity/plug-ins/
, depending on the distribution. Please note: Nothing caused as many problems in the tests as running external effects, although the built-in plugins worked perfectly and safely.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.