Audio – Linux Hint https://linuxhint.com Exploring and Master Linux Ecosystem Sat, 12 Dec 2020 01:51:25 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.2 Best Audio Editing and Music Making Software for Linux https://linuxhint.com/audio_editing_music_making_software_linux/ Wed, 09 Dec 2020 05:20:10 +0000 https://linuxhint.com/?p=80472

This article covers a list of music making or audio editing software usable on Linux. Some of these applications allow you to record sound streams through external devices like microphones while others allow you to capture audio from musical instruments connected to your Linux system.

Audacity

Audacity is one of the most widely used sound editing and recording software available for Linux, Windows and macOS. Audacity is completely free and anyone can access its source code repository as it is an open source software. Its main features include audio recording through microphone and other instruments, support for importing sound files, mixing and editing of audio tracks, configurable sample rates, dithering, spectrogram, respamling, built-in and third-party plugins, sequential editing, edit history, sound effects, full support for navigation through keyboard and so on. You can read more about its features, functionality and user interface elements from its manual available here.

Audacity can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install audacity

You can install the Audacity app from package manager in other Linux based distributions or you can download it from its official website.

Ardour

Ardour is a music making and recording software specially designed for engineers who regularly edit and make music. You can also use it for casual sound editing needs. Main features of Ardour include its ability to capture sound streams through microphone and other connected instruments, input monitoring, multi-layer recording mode, multi-channel and multi-layer tracks, edit history, mixing and merging of clips, support for extracting audio from video files, basic video editing tools, routing, monitor controls, official and third-party plugins, dedicated mixer strips, groups, stream panning, automation macros and so on.

Ardour can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install ardour

You can install Ardour app from package manager in other Linux based distributions or you can download it from its official website.

Rosegarden

Rosegarden is an open source audio sequencer, music notation creator and editor, and MIDI sequencer combined into one. It is mainly designed for editing and mixing audio recorded from musical instruments but it also works with other popular digital audio file formats. Using Rosegarden, you can compose, synthesize, arrange, edit and organize audio files and MIDI data.

Rosegarden can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install rosegarden

You can install the Rosegarden app from package manager in other Linux based distributions or you can download it from its official website.

LMMS

LMMS is a cross-platform and open source software mainly used for producing music. You can create new tracks, mix and synthesize sounds, rearrange clips and use layers. Other features of LMMS include support for MIDI keyboards, MIDI controls, multiple export options, beat editor, looping points, automation macros, piano roll, effects mixer, song editor, built-in presets and samples, and so on.

LMMS can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install lmms

You can install LMMS app from package manager in other Linux based distributions or you can download the official “AppImage” file that runs on any distribution from its official website.

Mixxx

Mixxx is an open source and cross-platform DJ software that can be used to create live mixes and remixes. While it doesn’t work like other audio editors listed above, you can use it to record any live mixes created in real time. Its main mixing features include tempo control, support for external instruments, sound effects, support for controlling vinyl records, cue points, beat control, beat looping, pitch manipulation, built-in equalizer and so on.

Mixxx can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install mixxx

You can install Mixxx app from package manager in other Linux based distributions or you can download it from its official website.

Qtractor

Qtractor is an open source music making software programmed in C++ and designed using Qt toolkit. You can use it to create multi-track and multi-channel sequences of MIDI and various other sound files. Other features of Qtractor include support for mixing and editing of audio clips, edit history, drag-and-drop user interface, plugins, looped recording, crossfading tools, audio normalization, pitch and tempo manipulation, support for time-stretching, sample rate manipulation and so on.

Qtractor can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install qtractor

You can install the Qtractor app from package manager in other Linux based distributions or you can download it from its official website.

Hydrogen

Hydrogen is an open source software that can sequence and synthesize emulated drum patterns or real sounds through external instruments. Other features of Hydrogen include multiple layers, chainable patterns of variable lengths, mixing and editing capabilities, tempo and pitch manipulation, visual metronome, time-stretch function, loop support and so on.

Hydrogen can be installed in latest versions of Ubuntu by executing the command mentioned below:

$ sudo apt install hydrogen

You can install the Hydrogen app from package manager in other Linux based distributions or you can download it from its official website.

Helm

Helm is an open source and cross-platform synthesizer that can be used to create digital music. It features multiple oscillators, waveshaping, shelf filters, arpeggiator, sound effects, step sequencer, multiple waveforms, filters and so on.

Helm can be installed in Ubuntu by downloading installable “.deb” packages available here. Once downloaded, run a command in the following format to install the “.deb” package.

$ sudo apt install ./helm_0.9.0_amd64_r.deb

You can follow instructions available here to install Helm in other Linux based distributions.

Conclusion

These are some of the best, free, and open source software that you can use to record, edit, mix, synthesize, and directly make music from scratch using external instruments connected to your Linux system.

]]>
Noob’s Guide to Linux Audio: ALSA, OSS, and Pulse Audio Explained https://linuxhint.com/guide_linux_audio/ Wed, 06 May 2020 13:48:44 +0000 https://linuxhint.com/?p=59639 There’s one thing both new and seasoned Linux users can agree on: Linux audio is confusing. Not only are multiple technologies performing similar jobs, but most of them can be completely omitted by Linux distributions and their users.

The situation is relatively fine when it comes to mainstream distros like Ubuntu, Debian, or Fedora because their developers have gone to great lengths to make audio work right out of the box, but the same can’t be said about Arch Linux, Gentoo, and other minimalistic distributions that expect users to configure everything from scratch.

This article won’t make you an expert on Linux audio, but it will, hopefully, explain the basic technologies responsible for making sound come out of your speakers when you open a video on YouTube or play a game on Steam.

Advanced Linux Sound Architecture (ALSA)

Let’s start with the most important layer of the Linux audio, ALSA. Created in 1998 by Czech software developer Jaroslav Kysela, ALSA is responsible for giving a voice to all modern Linux distributions. It’s actually part of the Linux kernel itself, providing audio functionality to the rest of the system via an application programming interface (API) for sound card device drivers.

The original design of ALSA was largely inspired by the Linux device driver for the Gravis Ultrasound sound card, which was made by Canada-based Advanced Gravis Computer Technology and became very popular in the demo scene during the 1990s.

ALSA support for all types of audio interfaces thanks to fully modularized sound drivers, can manage up to eight audio devices at the same time, access hardware MIDI functionality, perform hardware mixing of multiple channels, and more.

Users typically interact with ALSA using alsamixer, a graphical mixer program that can be used to configure sound settings and adjust the volume of individual channels. Alsamixer runs in the terminal, and you can invoke it just by typing its name. One particularly useful keyboard command is activated by hitting the M key. This command toggles channel muting, and it’s a fairly common fix to many questions posted on Linux discussion boards.

Open Sound System (OSS)

The official website of ALSA mentions support for Open Sound System, or OSS for short. Until Linux 2.5, OSS was actually the main and only sound system for Linux. ALSA was designed to overcome its various shortcomings, such as the fact that it didn’t allow more than one application to access the hardware at a time. In Linux 2.6 ALSA replaced OSS as the default sound system.

When the developers of OSS announced that OSS version would have a proprietary license, a decision was quickly made by Linux developers to replace it with ALSA. It’s worth noting that OSS became free software again with the release of the version 4 in 2007. Today, OSS is distributed under four different licenses (BSD, CDDL, GPL, Proprietary).

Most Linux distributions these days don’t even bother activating the OSS emulation layer present in ALSA because almost nobody needs it anymore, making OSS a relic of the past.

PulseAudio

If you don’t remember the last time you interacted with ALSA when changing your audio settings, that’s probably because the user-facing layer of the Linux audio system in most modern distributions is called PulseAudio.

PulseAudio was initially released in 2004, and it’s now included and enabled by default in Ubuntu, Linux Mint, openSUSE, and other major distributions. The job of PulseAudio is to pass sound data between your applications and your hardware, directing sounds coming from ALSA to various output destinations, such as your computer speakers or headphones. That’s why it’s commonly referred to as a sound server.

At first glance, it might seem that PulseAudio doesn’t really add anything critically important to Linux audio, and many of its critics share the same opinion. In reality, there are actually many things that would be impossible or difficult to accomplish without it, including mixing several sounds into one, transferring audio to a different machine, or changing the sample format or channel count.

PulseAudio also brings cross-platform compatibility (FreeBSD, NetBSD, OpenBSD, Linux, Illumos, Solaris, macOS, and, in a limited fashion, Microsoft Windows). If you want to control PulseAudio directly, instead of interacting with it through a volume control widget or panel of some sorts, you can install PulseAudio Volume Control (called pavucontrol in most package repositories).

If you feel that you have no use for the features provided by PulseAudio, you can either use pure ALSA or replace it with a different sound server.

PulseAudio vs. JACK

PulseAudio isn’t the only sound server for Linux. There’s also JACK, which is a recursive acronym for JACK Audio Connection Kit. Whereas PulseAudio was developed with the needs of general Linux users in mind, JACK is intended for DJs and audio professionals, providing real-time, low-latency connections for both audio and MIDI data.

Because JACK lets you connect the audio inputs and outputs of each and everyone one of your applications together, you can do some pretty cool things with it, such as monitoring your own voice, adding effects to it in real-time, and more. In fact, the name of this sound system was inspired by the cables used in real recording studios to build intricate connections between instruments, synthesizers, MIDI controllers, and multitrackers.

Arguably the biggest downside of JACK is that it usually either works perfectly or horribly, owning to the fact that its chief goal is to provide low-latency audio. It also requires considerably more CPU power compared with PulseAudio, which is why you’ll find it mostly on professional workstations dedicated to audio editing.

Checking Pulse Audio and ALSA

You may be wondering, how do I tell which audio software my computer is using? To check if both Pulse Audio and ALSA are present on your system, use the following two commands:
 
Checking for PulseAudio:

$ pactl list

 
Checking for ALSA:

$ aplay -l

Conclusion

Audio on Linux seems complicated because it really is. Untangling the web of legacy technologies and layers of abstraction can be a real challenge even for seasoned Linux users who know the ins and outs of the operating system by heart. Hopefully, our article helped you better understand the most important components of the Linux audio system, including ALSA, OSS, and PulseAudio.

]]>