Pre-emphasis

From Hydrogenaudio Knowledgebase
Revision as of 04:09, 5 March 2010 by Mjb (Talk | contribs)

Jump to: navigation, search

Pre-emphasis is the first part of a noise reduction technique in which a signal's weaker, higher frequencies are boosted before they are transmitted or recorded onto a storage medium. Upon playback, a de-emphasis filter is applied to reverse the process. The result is a higher signal-to-noise ratio (SNR); the original frequencies are restored, but noise that was introduced by the storage medium, transmission equipment, or analog/digital conversions is quieter than it would have been if no filtering had been done. Pre- and de-emphasis can be collectively referred to as just emphasis.

Emphasis was sometimes used in digital storage media in the late 1970s through early 1980s, including on a small percentage of audio CDs. Emphasis is akin to Dolby noise reduction for tapes, or the RIAA equalization curve for vinyl records.

Pre-emphasis on audio CD

Some early digital recording & playback equipment, including CD players, used 14-bit converters, even though they were dealing with 16-bit audio. The resulting noise introduced by these converters could be made relatively quiet by using pre-emphasis: boosting the signal (especially the higher frequencies) in the recording before it was put onto CD, and embedding flags in the disc's subcode to tell a CD player to apply de-emphasis on playback. Some CD players even had a de-emphasis button that could be used to manually apply de-emphasis, but now it's just a built-in feature of nearly all dedicated audio CD players. By the late 1980s, pre-emphasis stopped being used because reliable 16-bit DACs with oversampling and other technologies minimized the conversion noise without the need for pre-processing the recording.

Most major-label CDs with pre-emphasis were manufactured in Japan in the early and mid-1980s. Relatively recent forum posts indicates that pre-emphasis is still used on newly manufactured CDs by some indie labels, mainly for classical titles.

A pre-emphasis flag for each track is normally stored in the subcode along with the audio data. It's also supposed to be stored in the table of contents (TOC), but many CDs have TOCs that say there's no pre-emphasis when in fact the subcode says there is.

Pre-emphasis on audio CD in computers

CD drives in computers aren't exactly like regular CD players.

Some drives, especially older internal drives on desktop/tower PCs, have analog audio outputs which connect directly to a soundcard via a special cable. In this situation, the drive's own DAC is converting the CD's audio data into analog signals, and the OS or soundcard provide a "CD" volume control specifically for this signal. When audio is being fed to the soundcard this way, or listened to through a headphone connector on the drive itself, then the drive is probably doing its own de-emphasis.

Most OSes and drives nowadays, by default, instead use a digital interface to send the raw audio data straight from the disc, through the drive's regular connectors (IDE/ATAPI, SCSI, USB, whatever), into the operating system, which passes it along to whatever program needs it. This is the only method used in DAE (digital audio extraction). In this situation, the soundcard's DAC is converting the CD's audio data into analog signals, and the volume control is usually just the Wave volume control, used for all sounds originating inside the computer. The soundcard usually has no ability to do de-emphasis, and even if it could, it has no access to info about the presence of pre-emphasis, because it's just being fed the waveform data, not the disc's subcode.

In other words, even though a CD drive may be capable of detecting pre-emphasis flags in the disc's subcode and/or TOC, this information is usually completely ignored when sending audio data through the digital interface. So when you play a CD through your computer, or use CD ripping software to get the audio content, you're probably getting the pre-emphasized audio data. Since it has not been de-emphasized, it will probably sound too "bright" and/or hissy (although your audio equipment or your damaged ears may keep you from noticing). Therefore you may want to do de-emphasis processing yourself.

De-emphasis processing

According to forum posts, there's one CD ripper which will detect pre-emphasis flags in the subcode and will apply a de-emphasis filter to the data before writing it to disk: recent versions of iTunes. Recent versions of Windows Media Player will detect pre-emphasis and apply a filter for playback, but not for ripping.

So if you're ripping CDs with software other than iTunes, then there are various methods for applying de-emphasis, each with pros & cons. They all basically amount to turning down the treble with a special EQ curve that bottoms out at about -10 dB @ 20+ kHz. This can be done during playback with a simple equalizer setting, or you can modify the audio data itself so it will be as if it never had pre-emphasis.

Pre-emphasis in cue sheets

Pre-emphasis can be specified in a cue sheet using FLAGS PRE. This will tell the CD burning software to set the pre-emphasis flags in the subcode and TOC of a CD to be burned.

External links

The following threads & articles contain useful information
Digital de-emphasis tools
  • WaveEmph is a deemphasis tool for .wav files on Windows (after unzipping, right-click on the .exe and set Win98 compatibiliity)
  • SoX has a deemphasis function