Making waves with Audacity

Making waves with Audacity


For me there is nothing quite as relaxing as the sounds of the beach. The slow crashing of waves and the gentle lapping of water in the tide pools really helps me find my inner calm. Of course, I could do without the smell of rotting fish carcasses, the constantly screeching gulls and the looming threat of melanoma. So I decided to create my own virtual beach experience using some free sound clips from the internet and the free software package called Audacity. I’ve got all the relaxation without the annoying dead fish, dive bombing birds and sunburn.

Introduction

Using environmental sounds for relaxation is nothing new. The white noise and repetition of waves or waterfalls or even a gentle rain can help a person tune out the noisy, modern world and find calm. I know it helps me relax. The big question is, do I want to buy prepackaged nature sounds or try my hand at creating my own. Plenty of retail outlets would be happy to take my money in exchange for nature sounds on CD or a fancy new environmental sound machine. There are some pretty convincing recordings out there and I must admit it was tempting to hand over a little hard earned cash for some instant gratification. Of course, if I had chosen that route this would be a very short article. In the end, I decided to use Audacity, one of my favorite free software applications, to create my own virtual trip to the beach.

Follow along in this article as I cover each step as it relates to creating a virtual trip to the shore

The process of creating environmental sound clips, or any sound clips for that matter, with Audacity is not terribly difficult. There are only a few basic steps.

  1. Install Audacity
  2. Find the sounds you want
  3. Bring the sounds into Audacity
  4. Mix the sounds together in an interesting way
  5. Prepare a final audio file in a common format

Follow along in this article as I cover each step as it relates to creating a virtual trip to the shore. In the end you will hopefully find your inner calm. If nothing else, you will learn quite a bit about how Audacity works and how you can use it to make all sorts of audio projects.

Downloading and installing Audacity

The first thing I need to do is install Audacity on my computer. I’m a GNU/Linux user so I was able to find a packaged version of Audacity on my distribution CD-ROMs. If you are a penguin fan too, you’ll probably find Audacity on your distro’s install media. If you’re planning to work through this project on a Mac or a Windows machine you’ll want to visit the Audacity project web page. This is where you can find the latest downloads and installation instructions for your operating system.

Finding the essence of the ocean

The next step in my project is to find the ocean sounds that I want. Audacity has the capability to record sounds directly from a microphone onto the computer’s hard drive. This would be the best way to get authentic ocean sounds. But, unfortunately, I live hundreds of miles from the nearest ocean. So I did what any computer geek would do and downloaded some cool ocean sounds from the internet.

A quick web search for the terms “free”, “ocean”, and “sounds” came up with some good hits. I found a couple clips from a site called Shockwave-Sound.com that really fit my idea of what a relaxing day at the beach sound sound like. Specifically, I found a clip called “oceano 2 sound” that captures a big wave crash and another clip called “Ocean lap (ocean surf)” that reminds me of water slapping against the hull of a boat. Both of these sound clips are recorded in the WAV file format and are easy to import into Audacity.

Capturing nature in a computer

Once I have my sound clips from the internet, I need to get them into Audacity. Opening WAV files in a sound editor is just like opening documents in a word processor. I simply start up Audacity and choose Open... from the File menu. I then navigate to the location of the oceano2.wav file and click OK. Once the file is loaded, I can click on the big, green play button to hear the sound of a wave crashing onto the shore.

Opening WAV files in a sound editor is just like opening documents in a word processor

I also downloaded a clip of lapping water that I want to use in my project. However, I need to load this file a little differently. This time I need to choose Import Audio from the Project menu, navigate to the oceanlap (Ocean Surf).wav file and click OK. This way I get both clips in the same Audacity project instead of opening them in two separate windows.

Figure 1: Sound clips opened in AudacityFigure 1: Sound clips opened in Audacity

Now when I click on the play button I hear both sounds at once. If I want to hear the new, lapping ocean sound all alone, I can click on the Solo button just to the left of the waveform display. This area is called the track control panel and contains some of the information and controls that I’ll use for this project. For now I’m only interested in the Solo button. I’m satisfied that the lapping water clip sounds good by itself so I’ll click the Solo button once again to deselect it.

The ocean (remix)

Now that I’ve gotten a couple of interesting sound clips into Audacity’s buffers, I can start the process of editing and mixing them. This is where the cool stuff happens. Once you’ve gone through these steps, feel free to revisit this section and add your own personal touch to the editing and mixing.

Naming tracks

Before I get started editing, I want to make my life a little easier and give some meaningful names to the tracks I’ll be working on. I can do this clicking the downward pointing arrow on track control panel and selecting Name... from the pop-down menu. Since the first track I loaded sounds like a crashing wave, I’m going to name it just that. I will name the second track “lapping water”. You can choose any designations you like, but “crashing wave” and “lapping water” are the names I will use when referring to the tracks in this article.

Copying and pasting

Now that I’ve devised a way to keep the two tracks straight, I need to decide what kind of editing I want to do. One of the first things that jumps out at me is that the two clips are drastically different in length. The crashing wave lasts about twice the amount of time as lapping water track. I can take care of this by copying and pasting the lapping water track so that it repeats itself. I select the entire length of lapping water by clicking on the blank area of the track control panel. It really doesn’t matter where I click as long as it’s not on one of the buttons. When the track’s waveform is highlighted, I can use the Edit menu to Copy the selection. Once this is done I am ready to paste a second copy of the track at the end. To find the end of the track I’ll use the Edit menu again and select Move Cursor...→to Track End. After that, a third trip to the Edit menu reveals the Paste option and I have effectively doubled the length of lapping water. A quick tap of Home on the keyboard and a click on the big green play button will let me listen to my editing job.

When the track’s waveform is highlighted, I can use the _Edit_ menu to _Copy_ the selection

Adjusting volume

In the end I want to create a virtual ocean experience that lasts longer than the seven seconds of sound I currently have. One way I can do this is to use the same trick I used to extend lapping water and just repeat the whole project over and over again. To see how this would sound, I hold down the Shift key right before I click the play button. This puts Audacity into loop-play mode and the tracks will repeat until I click stop. This seven second loop would be pretty annoying in a music track, but for an environmental sound track repetition can be relaxing.

My repetitious virtual ocean is sounding pretty good, but there are a few things to tweak. For one, the crashing wave track ends slightly before the newly extended lapping water track. This incongruity creates about a tenth of a second jolt where the sound level drops, but it can be easily solved. Looking at the waveform display, I can see that the bulk of the sound in the crashing wave track happens between 0.5 seconds and 5.5 seconds. The rest is just background noise and can be faded. I can use my mouse to highlight the section of crashing wave between 0 and 0.5 seconds. Then I select Fade In from the Effect menu. I can use a similar procedure on the last 1.5 seconds of the track, except this time I’ll choose Fade Out.

Figure 2: Fading the crashing waveFigure 2: Fading the crashing wave

The jolting drop in sound is gone and the next thing I want to fix is the relative loudness of the two tracks. I think of crashing waves as very powerful sounds, but right now my crashing wave is about the same volume as the lapping water. I can easily lower the volume of the lapping water track by using the gain control on the track control panel. If I slide it to the left three notches I get a 9 dB drop in gain which results in lapping water being less obtrusive and crashing wave sounding more powerful.

Creating the illusion of stereo

My virtual ocean is coming along nicely, but somehow it still sounds a little flat. I can add some depth to the sound by making it playback in stereo. Since I am working with monaural clips, I have to employ a little bit of creative trickery to make it sound like a true stereo recording. I’ll create the illusion of stereo by having the wave sound move from the left to right as it crashes onto the shore. It may sound like a complex task, but I can do it all using techniques I’ve already employed.

I’ll create the illusion of stereo by having the wave sound move from the left to right as it crashes onto the shore

I first create a new track by choosing New Audio Track from the Project menu. Then I copy the entire waveform from the crashing wave track into the new track. I use the same technique of selecting and copying as I did with the lapping water track, except this time I’ll paste the contents of the clipboard into the new track. Now that I have two tracks, I can use the track pop-down menus to assign one of them to the left channel and the other to the right channel. The entire left channel track can then be faded out while the entire right channel track is faded in, giving the appearance of the crashing wave moving left to right. It sounds pretty convincing when I listen in loop-play mode.

Figure 3: Crashing wave in simulated stereoFigure 3: Crashing wave in simulated stereo

The final cut

I really don’t want to boot up my PC every time I decide to listen to my virtual ocean, so the final step in my project is to export the audio to a file format that is compatible with my digital audio player. My player can play stereo tracks in WAV, MP3 or Ogg Vorbis.

First, I need to take the three tracks in my Audacity project and mix them down to one left channel and one right channel for my audio player. I’ll do this by first choosing Select...→All from the Edit menu and then choosing Quick Mix from the Project menu. Next, I can do some repetitive copying and pasting to make the ocean sounds extend beyond a mere seven seconds. Finally, I’ll choose one of the Export As... options from the File menu. Now all I have to do now is transfer the file to my audio player and I can enjoy a relaxing trip to the virtual beach.

Figure 4: Project mixed down to one stereo trackFigure 4: Project mixed down to one stereo track

Where do we go from here?

In this article I’ve just scratched the surface of what Audacity can do. If you like what you’ve seen so far, there’s no better way to learn than to get some more hands-on practice. You don’t have to limit yourself to making environmental tracks either. Maybe you’re itching to try your hand at mixing music or recording live events. Whatever it is, if it’s related to audio, you can probably do it with Audacity.

Category: 
License: 

Comments

tony killey's picture
Submitted by tony killey (not verified) on

Using stereo mix input ie bbc radio channel 7 listen again feature. I can record ok either wav or mp3 onto hard disc,and play back within real player or windows media but when I want to burn a cd using nero the wav format is not compatible.The message is that file may be corrupt. anything exported as mp3 is ok. Commercial cd wav tracks put on hard drive can be added ok. Using Ms windows media burn facility has the same problem. The audacity recording sits in My Music with a wav format. Utilising CDex prog and calling up Wav files for compressing the title does not appear. A nero problem you say as I did. However an audacity saved as mp3 file can be decompressed into a Wav file. This file now is acceptable to nero and windows media burn. Whatever is removed from file at this decompression CDex stage to make it acceptable to nero can it be eliminated at the audacity export stage, double recording it a touch tiresome. I trust you can follw this and do you have a solution please A. Killey

RogerD's picture
Submitted by RogerD (not verified) on

Audacity uses 32-bit files internally by default ie. records to 32-bit. Nero probably needs standard 16-bit .wav files. Make sure the export format is right by going to Edit>Preferences>File Formats and set Uncompressed Export Format to WAV(Microsoft 16-bit PCM). Then you can use the ExportAs>WAV function in the File menu to save new 16-bit .wavs.
It happened to me once when recording vinyl for CD transfer. Easy to fix :)

pashabear's picture
Submitted by pashabear (not verified) on

Don't suppose you could post your file for us to hear the results? I'm a big fan of ocean sounds too, and currently live a long ways away - in fact, I'm told this country (Kazakhstan) is the farthest away from any ocean of any country in the world!

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

*sigh* does anyone know why Ubuntu gutsy is still packaging only Audacity 1.2.6, and not 1.3.2? Debian has a newer version!

Author information

David Horton's picture

Biography

David Horton got started with GNU/Linux in 1996 when he needed a way to share a single dial-up internet connection with his college room-mates. He found the solution he needed with an early version of Slackware and a copy of the PPP-HOWTO from The Linux Documentation Project. More than ten years later he is older and wiser and still hooked on GNU/Linux. Many of Dave's interests and hobbies can be explored on his website.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!