Working with Sampling Rates


When audio comes in through your audio interface, analog-to-digital (A/D) converters sample the audio stream a certain number of times per second. That number is the recorded digital audio file's sampling rate. CDAudio uses a sampling rate of 44.1 kHz, which means the audio stream has been sampled 44,100 times per second. This is a lot of little samples, and consequently CDAudio comes pretty close to representing the original audio waveform.

But the holy grail of digital audio is to copy an analog waveform perfectly. In pursuit of this perfect waveform, audio editors like Logic now enable us to record and edit audio at sampling rates of 48 kHz, 96 kHz, and even 192 kHz (audio hardware permitting). These sample rates provide significantly more samples per second than CDAudio, which means these higher sampling rates come closer to representing a true analog waveform. Consequently, they sound better!

NOTE

Higher sampling rates mean more data to process every second, putting a strain on your computer. If your system's audio interface works with 96 or 192 kHz audio, you may want to edit at this sampling rate to preserve as much of the original analog signal as possible. But unless you're on a cuttingedge Mac, higher sampling rates won't let you use as many audio tracks and DSP effects as you can at lower sampling rates. The most commonly used sampling rate is 48 kHz because it provides good quality without straining your computer to the max.


As you saw at the beginning of the lesson, this song uses a sampling rate of 44.1 kHz. All of the song's audio files use this sampling rate too, except for the HH.aif file, which has been recorded at 48 kHz. You can still use the HH.aif file in the song, but it will not sound correct unless you convert its sampling rate to match the sampling rate of the song. The reason? Logic just plays samples per second. It's much the same as the frames per second (fps) setting in a video editor. If you play a 30 fps NTSC video at 25 fps (PAL), the video plays back much slower than it should because five fewer frames display every second. Similarly, playing a 48 kHz audio file in a 44.1 kHz song still works, but the file sounds like its playing slower than it should because fewer samples per second play than are supposed to.

The following steps demonstrate what happens if you add a 48 kHz file to a 44.1 kHz song.

1.

Press the spacebar to start playback.

The Kick and Snare Regions are perfectly in time, but the HH Region is not. In fact, if you look closely at the HH Region in the Arrange window, you can see that although it's supposed to be exactly one bar in length, it's a bit too long.

2.

Press the spacebar to stop playback.

3.

In the Audio window, check the HH.aif's sampling rate.

This file uses a sampling rate of 48 kHz. And therein lies the problem. You'll need to change the HH.aif file's sampling rate before it will play with proper timing in your song. To do that, you'll use the Sample Editor's Digital Factory.

Using the Digital Factory to Convert Sampling Rates

The Digital FactoryTM is a suite of digital signal processors designed to change audio files in several ways. For example, you can use the Factory to timecompress or timeexpand an Audio Region, change its pitch, add groove or swing to a machinelike audio loop, or, for the purpose of this exercise, alter its sampling rate.

Under most editing circumstances, Logic is a nondestructive audio editor that does not change your source audio files in the course of editing. But as with most rules, there is a notable exception.

Enter the Digital Factory. Almost all Digital Factory functions are destructive, which means they permanently alter your source audio files. This can cause problems if you ever need to get those source files back or if they are used in another song, so keep this in mind!

1.

In the Arrange or Audio window, double-click the HH Region.

The Region opens in the Sample Editor.

2.

From the Sample Editor's local menu bar, select Factory > Sample Rate Convert.

The Factory window opens and displays the Sample Rate Convert dialog.

On the right side is a Source [Hz] field displaying the file's current sampling rate (48,000 Hz, or 48 kHz), and a Destination [Hz] field displaying your song's sampling rate (44,100 Hz, or 44.1 kHz). This is all correct, so there's no need to change anything here.

3.

Click the Convert button.

If the Region references only a subsection of the audio file, a dialog pops up to inform you that the whole audio file will be converted.

4.

Click OK.

If the file is used in any other songs on your computer, Logic pops open a dialog to tell you so.

If you see this dialog, it's a very good idea to choose the Copy option. If you don't, the source audio file will be changed, and those changes will ripple into any other song that uses this file. When you choose this option, Logic creates a copy of the source file, and then changes the copy. Your source file is not altered, and it remains available to the other songs that use it (the copied file is placed in the same folder as the original on your hard disk).

5.

Close the Factory window.

6.

Close the Sample Editor.

Back in the Arrange window, the HH Region is now exactly one bar long because its sample rate has been converted.

7.

Press the spacebar to start playback.

All Audio Regions now play with the correct timing.

8.

Press the spacebar again to stop playback.



    Apple Pro Training Series Logic Pro 7 and Logic Express 7
    Apple Pro Training Series: Logic Pro 7 and Logic Express 7
    ISBN: 032125614X
    EAN: 2147483647
    Year: 2005
    Pages: 197
    Authors: Martin Sitter

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net