From Fedora Project Wiki

Revision as of 20:24, 10 July 2010 by Crantila (talk | contribs) (→‎MIDI Interface: added comment for future revision, courtesy Fernando Lopez-Lezcano)

This page is a draft only
It is still under construction and content may change. Do not rely on the information on this page.

Address: User:Crantila/FSC/Sound_Cards

Everybody has a vague idea of what sound cards are, how they work, and what they do. Sometimes, especially when doing professional-quality audio work, a vague understanding is no longer sufficient. This chapter introduces its readers to the specific technical vocabulary used when discussing computer audio hardware.

What Sound Cards Are

Broadly defined, a sound card is any computer-connected device which allows the computer to process audio in some way. There are two general categories into which most sound cards fit, described below.

Audio Interface

This is a hardware device that allows audio equipment to be connected to your computer, including microphones and speakers. Typically audio entering or leaving an audio interface from/to an external device requires conversion between digital and analogue formats. However, with the rise of external digital audio equipment, there are an increasing number of devices that connect digitally to an audio interface.

The conversion between analogue and digital signals is a prerequisite for computers to be able to process audio signals, so it is the primary function of audio interfaces. The real world creates sound with a limitless range of possibilities for pitch, volume, and duration. The digital nature of computers requires these limitless possibilities to be reduced to finite limits. The best digital/analogue converters are capable of using these limits in such a way that humans don't notice anything missing - much like the best computer monitors and graphics adapters are able to disguise the fact that only about half of the colours our eyes can see are display-able on computers. This problem is discussed further in the "Bit Rates and Sample Rates" section.

Audio interfaces also amplify signals for directly-connected analogue devices (like headphones). Some offer power for microphones, too (pre-amplification and/or phantom power).

MIDI Interface

MIDI stands for "Musical Instrument Digital Interface," and is commonly associated with low-quality imitations of audio. This association is unforunate, since high-quality audio is possible with MIDI, and MIDI-driven devices have played a part in many mainstream and non-mainstream audio environments. Whereas audio signals specify the sounds themselves, MIDI signals contain instructions on how to make the sounds. It is a synthesizer's responsibility to follow these instructions, turning them into sounds.

Whereas audio interfaces allow the input and output of audio signals ("normal sound") from a computer, MIDI interfaces allow the input and output of MIDI signals. Some audio interfaces have MIDI capabilities built-in, and some MIDI interfaces also transform MIDI signals into audio signals. The latter kind of device is performing "MIDI synthesis," a task for which there exist many software-only solutions. "FluidSynth," covered in another section of this Guide, is one such software solution.

Having a hardware-based MIDI interface is not a requirement for working with MIDI signals and applications. The costly nature of most MIDI hardware makes it impractical for occasional or beginning MIDI users and computer music enthusiasts. Much of the software in thie Guide is capable of working with MIDI signals, and supports but does not require any MIDI-capable hardware.

!!

Methods of Connection

The following connection methods can be used by either audio or MIDI interfaces, so they are collectively referred to as "sound cards," in this section.

Integrated on Motherboard

These sound cards are built into the computer's motherboard. In recent years, the quality of audio produced by these sound cards has greatly increased, but the best integrated solutions are still not as good as the best non-integrated solutions. Good integrated sound cards should be good enough for most audio work; if you want a professional-sounding sound card, or especially if you want to connect high-quality input devices, then an additional sound card is recommended.

Hardware MIDI interfaces are rarely, if ever, integrated into the motherboard.

PCI (Internal)

Sound cards connected to the motherboard by PCI (or PCI-Express, etc.) will probably offer higher performance, and lower latencies, than USB- or FireWire-connected devices. Professional-quality sound cards often have insufficient space for connectors on the card itself, so they often include a proprietary, external component specifically for adding connectors. The biggest disadvantage of PCI-connected sound cards is that they cannot be used with notebooks or netbooks, and that they are only as portable as the computer in which they're installed.

USB

USB-connected sound cards are becoming more popular, especially with the increasing bandwidth possibilities of USB connections. The quality can be as good as internally-connected sound cards, although the USB connection may add additional latency, which may or may not be a concern. The biggest advantages of USB-connected sound cards is that they can be used with notebooks and netbooks, and that they are usually easier to transport than an entire desktop computer.

FireWire

FireWire-connected sound cards are not as popular as USB sound cards, but they tend to be of higher quality. In addition, unlike USB-connected sound cards, FireWire-connected sound cards are able to take advantage of FireWire's "guaranteed bandwidth" and "bus-mastering" capabilities. Having guaranteed bandwidth ensures that the sound card will be able to send data when it chooses; the sound card will not have to compete with other devices connected with the same connection type. Using bus-mastering enables the FireWire-connected device to read and write directly to and from the computer's main memory, without first going through the CPU. High-speed FireWire connections are also available on older computers where a USB 2.0 connection is not available.

How to Choose

The method of connection should not by itself determine which sound card is appropriate for you. Which connection type is right for you will depend on a wide range of factors, but the actual sound quality is significantly more important than the theoretical advantages or disadvantages of the connection type. If possible, you should try out potential devices with your computer before you buy one.

Bit Rates and Sample Rates

As mentioned in the "Audio Interface," section, the primary job of audio interfaces is to carry out the transformation of audio signals between digital and analogue forms. This diagram from Wikipedia illustrates the "digital problem," when it comes to audio: here. Although the wave-shape of the analogue signal, which is what is produced by most acoustic instruments and by the human voice, is shown in red, computers cannot store that information. Instead, they usually store some approximation, which is represented in that diagram by the gray, shaded area. Note that the digram is simply an example, and not meant to depict a particular real-world recording.

It is the conversion between digital and analogue signals that distinguishes low- and high-quality audio interfaces. High-quality convertors will be able to record and reproduce a signal that is nearly identical to the original. Bit and sample rates are tied to the closeness of approximation that an audio interface can make, and they are explained below. There are other factors involved in overall sound quality.

Bit Rate

This is the number of bits used to describe the audio in a length of time. The higher the number of bits, the greater the detail that will be stored. For most uses, the bit-rate is usually measured in "bits per second," as in the often-used 128kb/s bit-rate for MP3 audio. Professional audio is more often referred to as "bits per sample," which is usually simply called "bits." CDs have a 16b/sample bit-rate, professional audio is usually recorded at a 24bit/sample bit-rate, and a 32bit/sample bit-rate is supported by some hardware and software, but not widely used. Due to technical limitations, 20-bit audio is also widely used. See Wikipedia for more information (get a link??)

Sample Rate

A sample is a collection of a number of bits, representing a sound at an instantaneous point in time. The number of bits contained in a sample is determined by the bit-rate (usually 16 or 24 bits per sample). The sample rate is a measure of how many samples occupy one second - that is, how many "instants" of sound are catalogued for each second. Theoretically, a higher sample rate results in a higher-quality audio signal. The sample rate is measured in Hertz, which means "samples per second." CDs have a 44,100 Hz sample rate, but audio is often recorded at 48,000 Hz, 96,000 Hz, or even 192,000 Hz. These are often indicated as 44.1 kHz, 48 kHz, 96 kHz, and 192 kHz, respectively.

Conclusions

Both of these factors have an impact on potential sound quality. Depending on the limitations and capabilities of your equipment, you may be more inclined to use particular settings than others. Here are some comparisons:

  • 16-bit bit rate, and 44.1 kHz sample rate (CD audio; good for wide distribution and maximum compatibility; 705.6 kb/s)
  • 24-bit bit rate, and 96 kHz sample rate (CDs are usually recorded at these rates, then "down-mixed" later; 2304 kb/s)
  • 24-bit bit rate, and 192 kHz sample rate (DVD Audio; not widely compatible; 4608 kb/s)
  • 1-bit bit rate, and 2822.4 kHz sample rate (Super Audio CD; not widely compatible; 2822.4 kb/s)

In the end, bit rate and sample rate are only part of what determines overall sound quality. Moreover, sound quality is subjective, and you will need to experiment to find the equipment and rates that work best for what you do.