RealSimPLE: Soundcard Testing Your Soundcard An experiment that helps you assess the actual performance of your sound card and determine if it is good enough
RealSimPLE 2007 Testing Your Sound Card Page 2 RealSimPLE lives on the web: For high school: in Swedish and English http://www.speech.kth.se/realsimple For college and university, in English: http://ccrma.stanford.edu/realsimple Questions about RealSimPLE can be e-mailed to nelsonapollolee@gmail.com or to hellmer@kth.se. RealSimPLE - Reality and Simulations in a Pedagogical Learning Environment is a collaborative research and development project involving KTH, Stanford University and the House of Science. It is supported through the Wallenberg Global Learning Network. www.wgln.org by the Knut and Alice Wallenberg Foundation. Kungliga Tekniska Högskolan; School of Computer Science and Communication; Department of Speech, Music and Hearing. www.speech.kth.se Stanford University, California, USA - Department of Music, Center for Computer Research in Music and Acoustics (CCRMA). http://ccrma.stanford.edu House of Science, KTH Albanova, www.houseofscience.se
RealSimPLE 2007 Testing Your Sound Card Page 3 Innehåll List of components...4 Selecting the Sound Card...5 Testing Your Sound Card: Task One...6 Testing Your Sound Card: Task two...7 Testing Your Sound Card: Task three...9 Testing Your Sound Card: Task four...10 Testing Your Sound Card: Task five...11 FAQ...12
RealSimPLE 2007 Testing Your Sound Card Page 4 List of components 1. A CD player with a line output. Avoid using headphone outputs if possible. (A CD player makes a simple substitute for a signal function generator. If you have a signal function generator, you can use that instead.) 2. An audio cable running from the CD player's line output to the input of your computer's sound card. 3. An audio CD with test signals. 4. A printout of the journal sheet (available at the RealSimPLE website). 5. Attenuator (optional) to match the CD player output signal level to the sound card microphone input. The reason for using an external CD player, rather than just replaying the wave files from within the computer, is that the computer's sound card will affect the signal also on playback. A sound played internally does not pass through the sound card's analog-to-digital converter, which is one of the components we are testing. By re-recording from an external source we can assess the quality of the analog input. The reasons for using a line output rather than a headphone output is that (a) the line output has a fixed output level, (b) headphone outputs often have sound enhancement options with bass boost and/or spatial effects, (c) the small internal power amplifier for the headphones is often of questionable quality.
RealSimPLE 2007 Testing Your Sound Card Page 5 Selecting the Sound Card A few computers have more than one sound card installed or attached. For example, if you have an external sound device attached through a USB port or a professional sound card installed, this might be in addition to the internal sound card in your computer. If your computer has just one consumer sound card, or if you understand this issue already, you can skip directly to task one. If there is an external sound card attached to a USB or Firewire port on your computer, or if has a pro audio card installed, this most likely performs better than the built-in sound card. Pro audio cards usually need special drivers in order to work properly, which may mean that they can not be controlled using the Windows Volume Control. Since there are several manufacturers and models of specialist sound cards, only general instructions can be given here. First of all make sure that the sound card that is intended for use is activated by clicking Start -> Settings -> Control Panel. In the window that opened double-click on Sounds and Audio Devices Properties, then locate and click on the tab Audio. Make sure that the sound card intended for use is selected in both Sound playback and in Sound recording. There is probably an icon in the task bar with which you can open the sound card control panel. Locate the sound card s level controls in the control panel. There should be a strip with a gain slider and possibly some buttons for each input. Make sure that the strip that corresponds to the input that you intend to use is selected or activated, also make sure that the input is an analog audio input. If possible, unselect or deactivate inputs which are not used, to avoid unnecessary noise. Note that most professional sound cards have digital audio inputs which can easily be mistaken for the analog audio inputs. If you are using a pro audio card you can now skip Task one. Do not close the sound card control panel.
RealSimPLE 2007 Testing Your Sound Card Page 6 Testing Your Sound Card: Task One (MS Windows) Check the gain settings on your sound card. With most sound cards, the gains are controlled using the Windows Volume Control. Some specialist cards install their own Volume Control or control panels. To run Volume Control, find and double-click the loudspeaker icon in the program tray on your task bar. If there is no such icon (or similar), then choose Start menu -> Programs -> Accessories -> Entertainment -> Volume Control. If your sound card has a Line audio input, then that is the preferred input. If not, you will have to use the Microphone input, which is usually noisier. In Volume Control, choose Options -> Properties -> Recording. This displays a dialog box that configures the Volume Control's Recording panel. Make sure that the check box for Line or Microphone input is checked, as appropriate. This will cause a slider to be for that input. Choose OK. The Volume Control panel now displays one or more gain sliders, each with a check box called Select. Check the Line or Microphone slider as appropriate. This activates the right input on the sound card. If you have to use the Microphone input, then there may be a Boost button in Volume Control. Check that the Boost option is NOT turned on. Do not close the Volume Control window, yet.
RealSimPLE 2007 Testing Your Sound Card Page 7 Testing Your Sound Card: Task two You will now run a couple of tests on the input section of your sound card, using three simple PD patches. The first patch sets a reference gain. The second patch measures the noise level. The third patch measures the frequency response. To run the first patch, follow these steps: 1. Run PureData. (On a Windows system, this can be done by choosing Start -> Programs -> Pure Data -> Pure Data) 2. In PD, choose File -> Open... 3. Locate the file 001.pd and select it. 4. Choose Open. 5. In PD, choose Media -> Audio settings... 6. Verify that the intended sound card is selected. If the sound card has several inputs, verify that the intended input is selected. 7. Start the patch: check the box Media -> audio ON. 8. Load the CD player with the RealSimPLE CD. 9. If the CD player has any "bass boost" or other "sound enhancement" features, make sure that they are turned off. 10. Play the CD, track one. That track plays a continuous sine wave. You should now see a window similar to the figure below. The box frame displays the incoming signal. The top window displays the incoming signal as a function of time and the bottom one as a function of frequency, a so called line spectrum.
RealSimPLE 2007 Testing Your Sound Card Page 8 In Volume Control (or its equivalent), find the input gain setting that allows as high a signal level as possible without clipping or visible distortion of the sine wave. For the rest of the sound card test, do not change this setting.
RealSimPLE 2007 Testing Your Sound Card Page 9 Testing Your Sound Card: Task three You will now measure the noise level of the sound card, and its DC offset. Follow these steps: Close the previous patch, 001.pd. Stop the CD player, and disconnect its audio lead from the computer, at the computer end. Open the next patch, 002.pd. The sound card is now acquiring a null signal. Note the displayed values of noise level and DC offset on your RealSimPLE log sheet.
RealSimPLE 2007 Testing Your Sound Card Page 10 Testing Your Sound Card: Task four This step checks the frequency response of the input section of the sound card. Close the patch 002.pd and open 003.pd. Press the "Start" button in the patch. The model is now waiting for track two to be played from the CD. This track plays a sine wave swept in frequency from 20 Hz to 20 khz on a logarithmic scale. The sweep takes 60 seconds. Start the playback, and watch the frequency response being plotted. The patch will stop automatically on completion. (If you are using a function generator, set it up to produce a 20 Hz - 20 khz log frequency sweep in 60 seconds.) The plotted line in the bottom chart shows the gain of the sound card's input section as a function of frequency. The optimal result is a flat line. Note the highest and lowest amplification peak. This will give you a positive and a negative value. The frequency response is usually specified as the the maximum and minimum deviation from 0 db, i.e. 20 Hz - 20 khz +0.1/-0.3 db. Some future RealSimPLE experiments may require a frequency response down to zero Hz (DC), which is available only on special data acquisition boards. For the time being, however, this is not a concern.
RealSimPLE 2007 Testing Your Sound Card Page 11 Testing Your Sound Card: Task five Having tested your sound card, check it against these requirements. If any of them is not met, consider using an external sound card. The signal-to-noise ratio should be at least 48 db. The DC offset should not exceed 1 %. Sometimes the DC offset changes when the Volume Control sliders are moved. The frequency response should be within +/- 1 db from 50 Hz to 8 khz.
RealSimPLE 2007 Testing Your Sound Card Page 12 FAQ