Setting up a Multitrack Audio Recording Studio
September 5th, 2001 by Alex Heizer in
Ever since Elvis plopped down his nickel and crooned a song captured in glistening black vinyl, children everywhere have dreamed of making the next hit single. Unfortunately, doing so usually costs more than the paltry sum The King laid out for his tracks. Today, anyone with a PC can be the next George Martin or Trent Reznor, making the next big hit to be traded illegally, right in their own bedroom! Linux's capabilities make it perfect for multimedia production, and as distributions become easier to install and set up, more ordinary users will want to do more multimedia projects.
To begin, start with your favorite Linux distribution, it doesn't matter which one. I choose Slackware. For this article I will assume you have the sound working and X running on x86 architecture. I'll also assume you know how to navigate Linux and install programs, although you don't have to be a guru. Because this article is targeted toward users who want to make good recordings, there will be less emphasis on the technical aspects of using Linux and more on recording theory and practices, including program-specific HOWTOs.
The two programs I discuss are Gmurf and Broadcast 2000, the latter of which had a nice introductory article in the January 2001 issue of Linux Journal. Neither program requires root privileges to install or run, and both are easy to install and run (just follow the documentation), so I won't cover that here.
The only other things you'll need aren't computer-related at all and consist of noise-making items (such as your voice or a pan and spoon), studio gear (such as a 48-channel powered mixing board with DSP or a Wah-Wah pedal) and a mic or three.
Once you have everything you think you need (trust me, you'll want more stuff once you get going), the next step is to record. Multitrack recording is essential for getting the best possible sound out of more than one instrument, and it is necessary if you are the only one playing the instruments.
Multitrack recording, in its simplest form, is simply multiple single tracks recorded and played in synch, so that the resulting music sounds like one composition. An audio CD is a multitrack recording consisting of two tracks that are played through a machine that sends one track to the left speaker and one to the right.
Music studios traditionally have tape machines that can record up to 64 tracks, and multiple machines can be synched to make an unlimited amount of tracks available. Then each track can have effects added to it and be mixed down to a regular stereo recording for placement on a CD, cassette or web site. With Linux, you can have an all-digital studio, with the number of tracks limited only by the space on your hard drive.
The two basic formats that we'll be working with are .wav and Broadcast's hypertext audio language (HTAL). Gmurf and Broadcast 2000 both work with .wav files; while Gmurf will actually let you edit and manipulate the bits of data that make up a sound file, Broadcast 2000 works only with pointers to various parts of sound files. The result is a small project file, one that leaves no fear of accidentally chopping the middle out of that killer take, and one that makes it incredibly easy to add "just one more" track.
The two quickest and cleanest ways of getting audio onto your computer are to rip from a pre-existing CD or download samples from the Web. The first method has the advantage of offering an enormous selection of samples to choose from, acquired simply and easily with countless CD-ripping utilities for Linux. However, current law limits the duration of samples you are legally allowed to use, and you'll need to be creative in finding even small samples that would be appropriate to use in an original composition. The second method has the advantage of being an easy way to get usable instrument sounds presampled. This is a great thing if you are looking for a unique instrument or any instrument to which you do not have access. I use downloaded samples to create drum tracks for lack of a real drum machine or drum kit.
The major disadvantage to using prerecorded sounds is that you will need some kind of sequencer to get maximum benefit and flexibility from the samples. For example, it is easy to arrange drum samples in Broadcast 2000 to create a great-sounding beat, but there is no easy way to add swing to the track to make a really funky groove, aside from tweaking it by trial and error.
Making a live recording using a microphone through your sound card will give your opus the "you are there" energy that can make a good tune rock. Synthesized noises are okay for backgrounds, but if you want your creation to turn out sounding more like a person played it and less like a midi-enabled web site, you'll have to break out some real recording tools.
Some programs will allow you to make a stereo recording on your hard drive, using the input jacks on your sound card. Broadcast 2000 is no exception, and shortly I'll discuss exactly how to record that screaming guitar solo quicker than you can say "real recording studio".
What about those little flubs and outtakes, the musical equivalent of typos? There are two ways you can deal with them, destructively and non-destructively.
Gmurf is a good program to use for destructive editing. I primarily use it for taking out dead space at the beginning or end of a .wav file or converting samples from one sample rate to another.
Broadcast 2000 is an excellent program for working nondestructively under Linux. You can easily clip, copy, loop, move and blend audio tracks without losing a single 1 or 0 from your original audio files. The main disadvantage of working this way is that a large .wav file will remain large, even if you clip all but ten seconds of it for use in a production. The file size, though, is offset by the enormous advantage of knowing you didn't just accidentally rm a piece of a file you intended to use later in the song.
The best compromise I've devised so far is to use Gmurf to whittle down each sample or track to the smallest size possible, then use Broadcast 2000 to arrange them, or parts of them, into a complete tune. So how do we do this, you ask?
Let's begin by deciding where you want to keep your project and create the appropriate folders. Since Broadcast 2000's markup language uses absolute paths, you can't easily move the files around when you realize they're in the wrong place. It's best if you set up a good directory structure from the beginning.
When you're ready, open Broadcast 2000. It should give you two audio and two video channels, with the play and record buttons selected for all four channels. The selection of these buttons determines what happens on the individual channel when you do various tasks. The Play button is a green triangle, while the Record button is a red circle. When the Play button is selected, that channel will play when you hit the master Play button. When the Record button is selected, any changes you make to selections will affect that channel. Both Play and Record are completely independent of each other and themselves across all channels, so you'll need to keep your eye on what's selected as you work.
The first thing to do, since we won't be doing video editing, is deselect the Record buttons on the two audio channels and click Delete Tracks in the Tracks menu. Since the two video tracks have their Record buttons selected, they will be affected, thus deleted, leaving only the two audio tracks. You can rename these if you'd like by clicking on the name of the track and typing something else. In Figure 1, you can see my drum tracks, all labeled. I used downloaded samples, which is why I have my drums set up before I have done any recording.
Figure 1. Drum Tracks Labeled and Ready to Use
To import samples or existing .wav files make sure all your samples are in the project directory, then select Append from the File menu and choose the file to import. It will create a new track or tracks, if it is a stereo sample.
The Cut, Copy and Paste buttons work similarly to those on other programs but only on tracks that have their record buttons selected. For example, to cut a section of a track that you don't like, click that track's Record button, click and drag the mouse from left to right over the section (like selecting text in a word-processor) in the timeline window, then click the Cut button. To paste the cut section somewhere else, select the target track's Record button, click the mouse at the desired location in the timeline and click the Paste button. To add a new track to paste something into, select Add Track from the Audio menu on the main window. Keep in mind that if you have multiple tracks' Record buttons selected, it will cut, copy or paste onto all of those tracks.
When selecting part of a track to edit, you may notice that selections are made in blocks. The size of a block is determined by the video framerate, which can be changed from the Video menu. You can switch back and forth between framerates, so if you want to make a selection for cutting down to one one-hundredth of a second, set the framerate to 100, then reset the framerate to 16 for pasting a sample dead on the beat.
To save the project, select Save from the File menu and name it. If, for some bizarre reason, Broadcast 2000 crashes before you get to save the project, don't worry. Since Broadcast 2000 uses a markup language to edit the projects, all of the recorded .wav files are on the disk already. Simply restart the program and import the individual tracks into a new project. I've had it crash while creating a loop by copying and pasting a sample onto the same track several times, then clicking the Play button. Saving before clicking the Play button, in this case, lets it work without it crashing.
Okay, so you have a blank canvas in front of you, let's get started. To make sure you are able to hear the instrument you're about to record coming through your computer's speakers, follow along while we make a test track.
Make sure a blank track's record button is selected, then click the Master Record button to bring up the track record dialog box (see Figure 2). Click the Browse button and navigate to the directory you set up earlier. You'll want the file format to be .wav, your audio options set at 16 bits, and all other options set up as I have. Now click the Do it button, which will bring you to the real record panel (see Figure 3). If you're about to overwrite a file with the same name, it will tell you. If you're doing a retake, click Ok; otherwise, click Cancel and go back and give it another filename to save as. Set all of the options the same as what I have here, and click the Play/Record button (the one with both the red circle and the green triangle on the same button). This will play all of the tracks that have the play button selected and allow you to hear whatever comes through the sound card's input jacks.
Figure 2. Track Record Dialog Box
Figure 3. Broadcast 2000 Record Panel
You are now on the air, so start playing! If you can hear your instrument, make sure it's not too loud or too quiet, then click the Stop button, click the Full Rewind button (left-pointing triangle with the vertical line) and re-record a real track.
When you are done, click the Stop and Save buttons, and your track will show up in Broadcast. Do this for as many tracks as you need to until your entire song is recorded.
To do a quick mix of your tracks (nicer to listen and play along with), select Show Console from the Window menu on the main Broadcast window (see Figure 4). The options you'll use most on the console are panning and faders. The pan box is the black square to the immediate right of the plugins. The yellow sideways T along one edge is actually a half-hidden cross that can be moved to adjust the panning. The fader turns the volume down and up by dragging it to the left and right, respectively. Since this is digital recording, you'll most likely only need the plugins to enhance the vocals, especially if the instruments sound good before you record them.
Figure 4. Main Broadcast Window
The last thing you'll need to know before doing a final mix is how to do a fadeout. First, make sure each track that will appear at the fadeout has its record button selected. Then, highlight the fadeout area; for example, the last ten seconds of the song or so. Then from the Audio menu, select Feather Edits. For now, leave the default number of samples and click Ok.
There is no hard and fast rule as to how many samples you'll need for a fadeout, so just experiment. A higher number of samples gives you a longer fade, and you can use this technique to fade out or in of any track for any reason, such as bringing in a choir. To fade in, select the beginning part of a track.
Once you have all your tracks recorded, your fadeouts planned, and your levels and panning adjusted, it's time to make music history. Simply select Render from the File menu (see Figure 5), browse to a directory, give it a name, render your audio tracks, don't render video tracks, then make it so! Since this will be a finished product and not part of the Broadcast 2000 project, you can save it anywhere. Finally, open your favorite .wav-capable audio player, open your file and give it a listen.
Now you're done, and it is perfect. So why would you ever need Gmurf? You're ready to convert it for sharing, and you never once opened Gmurf throughout the whole process. The secret to your long-term success lies in running a clean shop behind the scenes.
As I said before, Broadcast 2000 edits your files nondestructively. Concretely, this means that using a two-second section of a five-minute track could waste perhaps 50MB of hard drive space because although Broadcast is only using two seconds, the whole track is stored. Imagine how much space you'd waste with ten such tracks.
Now, you probably won't be wasting 500MB with each project, but it's best to learn good practices from the start, and once you get into projects with 24, 32, 64 or more tracks, it's easy to eat up a 30GB hard drive.
To alleviate wasted space, open Gmurf, then select Open in WE from the File menu. Navigate to your project directory and open the track you want to edit. This will open the track in Gmurf's WAV Editor (Figure 6). Using the Zoom in and Zoom out buttons will give you a finer or more coarse view of your .wav file, making it easier to edit smaller or larger sections of the file. Also, clicking the Play button will play as much of the song as is in the window, so zooming in will allow you to hear a shorter section, and you can edit small sections more quickly, especially when you're working with longer tracks.
Editing on Gmurf is a little different than most programs. The way you select a section is by clicking on the beginning of the selection area with the left mouse button, and the end of the selection area with the right mouse button, rather than clicking and dragging. Once you have a selection, Cut, Copy and Paste all work as usual from the Edit menu.
Because of the way Broadcast 2000 handles its tracks, it's best to do your Gmurf editing before making edits in Broadcast 2000. Broadcast's pointers point to specific places in a file, and if you shorten that file it will still have pointers to the same absolute place, now a new real place in the track.
In this article I've given a quick run-through of two powerful tools that you can use to create professional-quality audio on Linux. Using this article as a starting point, anyone proficient enough with both Linux and whatever instruments they wish to record can develop a good technique for making rich, professional sounding, layered musical compositions.
To progress further, you will need to practice using these programs, explore their capabilities and develop a comfortable method of working in the studio. Using the programs is the easy part. Making recordings that have a good sonic quality and are mixed properly takes hours of work experimenting, laying down tracks, making a mix, dumping it down to tape or CD, listening to it a zillion times in your car, re-recording tracks, remixing, listening to it a zillion more times in someone else's car--you get the idea.
For a more detailed walk-through, including more screen captures and expanded examples, check out my web site in the Resources section.
Alex Heizer (alexheizer@synchcorp.com) has been annoying people with his multitrack recordings for over 15 years and his love of Linux for over three years.
Special Magazine Offer -- 2 Free Trial Issues!
Receive 2 free trial issues of Linux Journal as well as instant online access to current and past issues. There's NO RISK and NO OBLIGATION to buy. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Sorry, offer available in the US only. International orders, click here.
Subscribe now!
Recently Popular
| Linux HOWTO: Video Editing Magic with ffmpeg | Jul-23-08 |
| Man vs. Myth: Greg Kroah-Hartman and the Kernel Driver Project | Jul-21-08 |
| Google Gadgets for Linux | Jul-21-08 |
| Building a Call Center with LTSP and Soft Phones | Aug-25-05 |
| Review: HP 2133 Mini-Note | Jul-16-08 |
| Boot with GRUB | May-01-01 |
Featured Videos
Non-linear video editing tools are great, but they're not always the best tool for the job. This is where a powerful tool like ffmpeg becomes useful. This tutorial by Elliot Isaacson covers the basics of transcoding video, as well as more advanced tricks like creating animations, screen captures, and slow motion effects.
Shawn Powers reviews the HP Mini-Note portable computer.
Thanks to our sponsor: Silicon Mechanics
Silicon Mechanics is a leading manufacturer of rackmount servers, storage, and high performance computing hardware. The best warranty offerings available are backed by experts dedicated to customer satisfaction.
From the Magazine
August 2008, #172
There's nuttin like a Cool Project to give you some relief from the summer heat, so get out your parka cuz we got a bunch of em. First up is the BUG, not a bug, The BUG. It's got a GPS, camera and more, in a hand-sized package that's user programmable. The BUG does everything. It's both a floor wax and a dessert topping. Get one now. Need a software version of a Swiss Army knife? Take a look at Billix, and don't leave home without it. Then, chew on this one, an X server on a Gumstix device driving an E-Ink display. Need more storage? How about 16 Terabytes? Can do.
And, of course, we have the usual cast of characters: Marcel, Reuven, Dave, Kyle, Doc, plus the new kid on the block Shawn Powers. But it doesn't stop there: build a MythTV box on a budget, build your own GIS system, set up the tools to monitor your enterprise and more. Finally, remember The War of the Worlds? Now you can play too.
Delicious
Digg
Reddit
Newsvine
Technorati







linux
On October 2nd, 2007 enigma variations download (not verified) says:
I distributions? my need driver to Do all test against Thanks.
Another recording article
On June 30th, 2005 Anonymous (not verified) says:
Check out The Linux-Based Recording Studio for a more up-to-date (2004) look at this subject.
There's also
Using the Hammerfall HDSP on Linux
Re: Setting up a Multitrack Audio Recording Studio
On January 23rd, 2002 Anonymous says:
How about an external USB sound card/DA convertor device like the Edirol UA-5? Anyone familiar with using it with Linux.
Re: Setting up a Multitrack Audio Recording Studio
On March 26th, 2002 Anonymous says:
Multitrack recording means the ability to record multiple tracks (8 or more) AT ONE TIME, as well as the ability to do sound-on-sound type work. It is hugely dissapointing to me that I cannot find a competative hardware product, such as the Echo Laya, for which there are Linux drivers. I, for one, would opt for a Linux solution, if it were viable. But I find, once again, that I must support the giants whose marketing skills exceed their product quality.
Re: Setting up a Multitrack Audio Recording Studio
On April 29th, 2002 AlexHeizer (not verified) says:
Actually, multitrack recording means "more than one track". I don't think the prefix "multi-" has ever been defined as "8 or more and not any other number". Multi-head monitor setups usually feature 2, 3 or 4 monitors, so I'll assume multi-track recording can include only 2 tracks at a time. :)
I've developed a system where you can use multiple "donated" computers to record to bcast2000 as many tracks as you have soundcards for. Of course, you need quick hands to start each copy of bcast at the same time. But with two hands you can start to record 4 tracks at a time, so with a co-engineer you can record 8 at a time. Networked together, you can save the sample tracks to a common directory and import them into a master bcast edit file. Sort of crude, but not bad for donated hardware and free software, but that's what the article was about.
You can always write your own multitrack solution and give it away for free so we all can enjoy it and not have to support the giants. I would love to be able to record more than 2 tracks at a time, so if you find anything let us know.
-Alex
http://www.synchcorp.com/alexheizer
Re: Setting up a Multitrack Audio Recording Studio
On March 21st, 2002 Anonymous says:
I would love to be able to use the UA-5 in linux, anyone with any ideas on it please let me know, even 44.1/16 bit would make me happy.
Re: Setting up a Multitrack Audio Recording Studio
On August 12th, 2002 Anonymous says:
i got the ua5 running under linux with the 2.4.18 kernel. just use the general usb-audio module (audio.o) and plug it in. works fine!
Re: Setting up a Multitrack Audio Recording Studio
On November 16th, 2001 Anonymous says:
While this seems like a lot of fun for someone who wants to play around at home, this article misses one very important point. For any *real* recordings, you need an audio-in card which supports more than two tracks.
If you use a mixer to record bass and drums at one, you can't go back and vary the drum mix. A number of companies have made cards with 8-track optical-in connectors (TDAT-16 was my favorite), but driver support under Linux seems to be lacking for these.
I would very much like to see a follow up article describing the multitrack possibilities currently available for Linux, whether "four PCI soundcards", "a specialized microphone breakout box", or "a Yamaha ProMix and specialised PCI card".
Geoff Silver
Re: Setting up a Multitrack Audio Recording Studio
On June 11th, 2004 Anonymous says:
Just a quick note for those interested in setting up a recording studio: You can find EXCELLENT Deals for Music Gear and MIDI workstations at http://www.americanmusical.com
I'm sure you'd find that site very useful! = )
- Music Fan
Re: Setting up a Multitrack Audio Recording Studio
On February 1st, 2002 Anonymous says:
geoff's point is well-taken if you are recording multiple instruments simultaneously. however, if it's just you, or if your bandmates show up one at a time, the great thing about multi-track hard disk recording is that you don't even need more than one (1) track input. once the first track is recorded, you play it back and record the second track, then so on. you can easily mix down the volume, pan and eq as you wish later. you *do* need simultaneous playback/record, which most current sound cards have.
(note: i am only in the research stage as far as linux recording is concerned, but i have done quite a bit of multi-track recording using cakewalk under windows, using only consumer-grade stereo sound cards such as soundblaster and yamaha, up to 9-10 tracks.)
here's a question: are products available under linux (possibly these reviewed products) which allow midi/audio mixing? i usually record drum and/or keyboard tracks in midi, then do the guitar, bass, and vocals as audio .wav files.
and here's question #2: when you're dicing and splicing audio samples, it's essential that you cut where the sound wave amplitude crosses zero or you will get pops when you splice. do these products offer the ability to snap to zero crossing?
lex lindsey
Here's a question
On December 7th, 2004 Jim (not verified) says:
Why doesn't some enterprising young programmer/musician write the required library to make FireWire audio a reality on Linux? Then you can hook up a Mackie Onyx 1640 and record 16 tracks simultaneously at 400MBs.
freebob
On August 31st, 2006 Anonymous (not verified) says:
I guess by now you know about it but if you do not, checkout the FreeBob project http://freebob.sourceforge.net/index.php/Main_Page. They made that happen..
Cheers from Brazil
Daniel
Re: Setting up a Multitrack Audio Recording Studio
On November 27th, 2001 Anonymous says:
There is one Multitrack Sound Card that's supported by ALSA that I know of, it's the Terratec 88 something (the correct model number i don't know right now but you can figure it out on www.terratec.com). I't like to know whether that works well enough for home recording, before I invest in Yet Another Soundcard, and a pricy one as well. Turtle beach makes Linux-compatible MT boards as well but they are even pricier. Has anyone found a nice solution for multitrack home recording?
Re: Setting up a Multitrack Audio Recording Studio
On November 27th, 2001 Anonymous says:
Check out the maudio cards 'delta' series from midiman, those are supported
by the alsa drivers as other cards based on the ice1712 chip (other cheaper
cards are the hoontech). The rme hammerfall are more expensive i think
but prousers seem to prefer them.
Me, i still have to wait to buy a decent multitrack card :-(
I have a wamibox, (it´s a be
On December 14th, 2004 flora (not verified) says:
I have a wamibox, (it´s a beautiful machine) but there´s no drivers available for it.
I want to run away from windows, but I can´t... I spend a lot of many when I bought this soundcard, and now I see that´s useless in linux :(
Re: Setting up a Multitrack Audio Recording Studio
On December 23rd, 2001 Anonymous says:
the midiman d-man (2-input card) has the crystal soundfusion chipset (cs4614) which is supported under alsa. This is a good little card for guitar players and others who want simultaneous recording of vocal and string but don't do direct recording of drums. I bought mine for about 130 bones.. not too bad