1. Home
  2. Explore
  3. Computer Science
  4. Digital Audio Waveforms

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Digital Audio Waveforms

  • 89Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Sound Capture

How are spoken sounds produced by the human vocal system?

89 questions

  1. 1

    How are spoken sounds produced by the human vocal system?

    Model answer

    Vibrating vocal folds, combined with the shapes of the mouth and the placement of the tongue, create pressure waves in the air at specific frequencies.

    Explanation

    Speech results from controlling air pressure waves through coordinated movement of the vocal folds, mouth, and tongue.

  2. 2

    How does a microphone convert sound into an electrical signal?

    Model answer

    Sound waves vibrate a microphone membrane, which moves a coil near a magnet and induces a voltage proportional to the vibration.

    Explanation

    The microphone changes mechanical motion caused by sound into variations in electrical voltage.

  3. 3

    What happens to a microphone's electrical signal inside a computer?

    Model answer

    The signal is measured thousands of times per second, and the resulting numerical values are stored as audio samples in a wave file.

    Explanation

    Sampling converts a continuously varying voltage into a sequence of stored numerical measurements.

  4. 4

    What does an audio sample represent?

    Model answer

    An audio sample is a numerical measurement of the microphone voltage at a particular instant.

    Explanation

    Each sample records the signal's amplitude at one point in time.

  5. 5

    In a waveform plot, what do the horizontal and vertical axes represent?

    Model answer

    The horizontal axis represents time, while the vertical axis represents a quantity proportional to the voltage measured by the microphone.

    Explanation

    A waveform displays how signal amplitude changes over time.

  6. 6

    Why can a complex sound such as speech be represented by a sequence of samples?

    Model answer

    A sufficiently frequent sequence of amplitude measurements captures the changing pressure pattern needed to reproduce the sound.

    Explanation

    Digital audio represents sound by recording its instantaneous values over time.

  7. 7

    What does the amplitude of an audio sample describe physically?

    Model answer

    It describes the strength of the pressure or voltage variation at that instant.

    Explanation

    Larger magnitudes correspond to stronger deviations from the signal's reference level.

  8. 8

    Why are audio waveforms often drawn with lines rather than isolated points?

    Model answer

    Lines connect neighboring samples and provide a more continuous visual representation of the signal between discrete measurements.

    Explanation

    The samples remain discrete, but connecting them makes the waveform easier to interpret.

  9. 9

    What do waveform peaks and troughs represent in an air-pressure signal?

    Model answer

    Peaks represent compressions, where air molecules are more closely packed, and troughs represent rarefactions, where they are more spread apart.

    Explanation

    Sound waves consist of alternating regions of high and low air pressure.

  10. 10

    How can the duration of a digital audio clip be calculated?

    Model answer

    Divide the total number of samples by the sample rate.

    Explanation

    The sample rate gives samples per second, so samples divided by samples per second gives seconds.

  11. 11

    What information is confirmed by the RIFF and WAVE identifiers at the beginning of a wave file?

    Model answer

    They identify the file as using the RIFF container format for WAVE audio.

    Explanation

    Checking these identifiers provides an initial validation that the file has the expected wave-file structure.

  12. 12

    How are sections, or chunks, located in a wave file?

    Model answer

    The file is read chunk by chunk, recording each chunk's name and location in a lookup table.

    Explanation

    The lookup table allows later code to jump directly to chunks of interest.

  13. 13

    How does a wave file indicate the size of a chunk?

    Model answer

    The chunk name is followed by a value specifying the chunk's size.

    Explanation

    Knowing the size makes it possible to skip over the chunk and locate the next one.

  14. 14

    What is the purpose of the format chunk in a wave file?

    Model answer

    It stores metadata describing how the audio samples should be interpreted.

    Explanation

    The format chunk supplies information such as channel count, sample rate, and bits per sample.

  15. 15

    What is the purpose of the data chunk in a wave file?

    Model answer

    It contains the encoded audio sample data.

    Explanation

    The data chunk is where the numerical measurements representing the sound are stored.

  16. 16

    What three important properties can be read from a wave file's format information?

    Model answer

    The number of channels, the sample rate, and the number of bits used for each sample.

    Explanation

    These properties determine the organization, timing, and numeric precision of the audio.

  17. 17

    What is the difference between mono and stereo audio?

    Model answer

    Mono uses one audio channel, whereas stereo uses two channels, typically representing left and right sound.

    Explanation

    The channel count determines how many separate sample streams the file contains.

  18. 18

    Why must audio data be converted into a common numeric form before processing?

    Model answer

    Different files may store samples in different formats, so conversion to a simple array of floating-point values provides a consistent representation.

    Explanation

    A common representation allows later visualization, playback, and analysis code to work uniformly.

  19. 19

    How are samples extracted from the data chunk?

    Model answer

    The program repeatedly reads the number of bytes specified for one sample and converts those bytes into a numerical value.

    Explanation

    The bits-per-sample metadata determines how many bytes must be consumed for each sample.

  20. 20

    Why is normalization applied when converting samples to floating-point values?

    Model answer

    The raw value is divided by the maximum value representable with that sample size so that it fits approximately within the range from negative one to positive one.

    Explanation

    Normalization creates a convenient scale for audio processing and visualization.

  21. 21

    Why does 24-bit audio require special handling in a byte-to-float conversion?

    Model answer

    There is usually no built-in numeric type that directly represents a 24-bit integer, so bit manipulation is needed to reconstruct the value and handle negative numbers correctly.

    Explanation

    The unusual bit width prevents using an ordinary 8-, 16-, or 32-bit type without additional processing.

  22. 22

    What two pieces of information are packaged into the signal object after reading a wave file?

    Model answer

    The signal object contains the normalized audio samples and the sample rate.

    Explanation

    Both the values and their timing information are needed to interpret and play the signal correctly.

  23. 23

    How does an audio callback provide samples to a sound card?

    Model answer

    It is called periodically with an empty block, which the program fills with the next audio samples before sending the block to the sound card.

    Explanation

    Block-based callbacks allow audio to be streamed continuously rather than sent one sample at a time.

  24. 24

    What happens when the sound card receives digital audio samples?

    Model answer

    It drives speakers or headphones so that they vibrate according to the sample values, producing pressure waves in the air.

    Explanation

    Playback reverses the recording process by converting numerical amplitudes back into physical sound.

  25. 25

    Why must playback stop or change behavior when no samples remain in the wave file?

    Model answer

    There are no more recorded values to provide to the audio device, so the program must stop supplying the file's signal.

    Explanation

    Continuing to read beyond the available samples would produce invalid or unintended audio.

  26. 26

    What caused the initial fluid simulation to become unstable?

    Model answer

    Viscosity was still enabled from the water settings, and the particle count had been increased substantially.

    Explanation

    Those settings were inappropriate for the intended air-like simulation and caused bubbles and other unstable behavior.

  27. 27

    Which changes make a fluid simulation behave more like air than water?

    Model answer

    Gravity should be turned off, the target density should be reduced, and viscosity should be disabled or reduced.

    Explanation

    These changes remove properties associated with water and produce a more suitable model for air.

  28. 28

    Why is fluid density useful for visualizing pressure waves?

    Model answer

    Density is closely related to pressure, so displaying density reveals the wave-like pressure variations in the fluid.

    Explanation

    Regions with different concentrations of particles correspond to different local pressure conditions.

  29. 29

    How is density estimated at a location in the fluid simulation?

    Model answer

    It is estimated as a smoothed sum of the particles within a small radius around that location.

    Explanation

    The smoothing produces a continuous density field rather than displaying individual particles only.

  30. 30

    What is the role of the density visualization cell in the simulation?

    Model answer

    For each texture cell, it calculates the density at that position and sets the cell's color based on the result.

    Explanation

    This converts the simulated density field into an image that can show pressure-wave patterns.

  31. 31

    How is the simulated speaker represented in the fluid?

    Model answer

    It is represented by a rectangular obstacle whose membrane moves back and forth through the fluid.

    Explanation

    The obstacle acts as a simplified speaker surface that transfers motion to the simulated medium.

  32. 32

    How does the simulated speaker use an input audio signal?

    Model answer

    At each simulation time, it looks up the corresponding audio sample and uses that value to offset the membrane's position.

    Explanation

    The membrane displacement is driven directly by the input waveform.

  33. 33

    Why is linear interpolation used when looking up audio samples for the simulated speaker?

    Model answer

    It estimates values between discrete samples, allowing the membrane to move more smoothly instead of jumping between sample values.

    Explanation

    Interpolation provides a continuous approximation of the sampled waveform.

  34. 34

    How does the simulated microphone measure the sound produced by the fluid?

    Model answer

    It reads the local fluid density, subtracts the rest density, and multiplies the difference by a constant to obtain a pressure value.

    Explanation

    The deviation from rest density represents the local pressure fluctuation recorded as an audio sample.

  35. 35

    Why did the first fluid-simulation recording contain almost no audible sound?

    Model answer

    The simulation completed only about 1,200 steps in four seconds, producing far fewer recorded pressure values than the original audio samples.

    Explanation

    The simulation's recording rate was too low to preserve the input signal's time-varying detail.

  36. 36

    Why did slowing the simulated speaker improve the recorded sound?

    Model answer

    A slower speaker gave the fluid more time to respond to each input change, allowing pressure variations to be captured more accurately.

    Explanation

    The fluid dynamics could not react quickly enough when the membrane moved too rapidly.

  37. 37

    What effect does reversing the order of audio samples have?

    Model answer

    It makes the audio play backward, so the end of the original recording is heard first.

    Explanation

    Reversing the sample sequence reverses the signal's time direction without changing the individual sample values.

  38. 38

    How can audio be slowed down by changing metadata rather than sample values?

    Model answer

    The same samples can be declared to have been recorded at a lower sample rate, causing them to play over a longer time.

    Explanation

    A lower playback rate stretches the waveform in time.

  39. 39

    How can audio be sped up using its sample rate?

    Model answer

    The samples can be declared to have been recorded at a higher sample rate, causing them to play in less time.

    Explanation

    A higher playback rate compresses the waveform in time.

  40. 40

    Why does changing playback speed also change pitch?

    Model answer

    Speeding up or slowing down stretches or compresses the waveform, changing the frequencies present in the sound.

    Explanation

    Pitch depends on frequency, so changing the time scale changes the perceived pitch.

  41. 41

    What parameters define each component wave in the synthetic signal?

    Model answer

    Each component is defined by a frequency, amplitude, and phase.

    Explanation

    These parameters determine how fast the wave oscillates, how strong it is, and where it begins in its cycle.

  42. 42

    How is the number of samples for a synthetic signal determined?

    Model answer

    It is calculated from the signal's duration and sample rate.

    Explanation

    The duration specifies how long the signal lasts, while the sample rate specifies how many samples occur per second.

  43. 43

    How is the time associated with each synthetic sample calculated?

    Model answer

    The sample's position in the array is converted into time using the sample rate, covering the interval from the beginning to the specified duration.

    Explanation

    Each successive sample represents a later instant in the generated signal.

  44. 44

    What mathematical operation generates a pure sinusoidal sample?

    Model answer

    The sample is computed as the sine or cosine of an angle proportional to time, frequency, and a full-turn constant.

    Explanation

    Sine and cosine produce periodic oscillations suitable for modeling pure tones.

  45. 45

    What is the meaning of the constant au auau in the sinusoidal signal formula?

    Model answer

    au auau is equal to 2pi2\\pi2pi and represents the angle of one complete rotation in radians.

    Explanation

    Using au auau makes the relationship between time, frequency, and complete cycles explicit.

  46. 46

    What is a radian?

    Model answer

    A radian is the angle formed when an arc has a length equal to the circle's radius.

    Explanation

    Radians measure angles using distances along the circumference rather than arbitrary degree units.

  47. 47

    How does multiplying time by au auau and frequency determine the number of oscillations?

    Model answer

    The frequency specifies the number of complete rotations or cycles per second, so multiplying time by au auau and frequency gives the corresponding angular position.

    Explanation

    At a frequency of one, one complete cycle occurs during one second; other frequencies scale the number of cycles proportionally.

  48. 48

    How does amplitude affect a sinusoidal signal?

    Model answer

    Amplitude controls the signal's strength, scaling the wave's maximum displacement from its center.

    Explanation

    Increasing amplitude makes the waveform larger without changing its frequency.

  49. 49

    How does phase affect a sinusoidal signal?

    Model answer

    Phase shifts the wave horizontally, changing the point in its cycle at which the signal begins.

    Explanation

    Phase changes timing or alignment without changing the wave's frequency or amplitude.

  50. 50

    How is a signal containing several frequencies synthesized?

    Model answer

    The contributions from the individual sinusoidal waves are added sample by sample.

    Explanation

    A complex signal can be formed by superposing component waves with different frequencies, amplitudes, and phases.

  51. 51

    Why can combining waves with different frequencies create different sounds?

    Model answer

    Different frequency, amplitude, and phase combinations produce different overall pressure patterns, which are perceived as different sounds.

    Explanation

    The mixture of component waves determines the resulting waveform and therefore its character.

  52. 52

    What is the main purpose of the discrete Fourier transform?

    Model answer

    It analyzes a finite set of samples to estimate the frequencies, amplitudes, and phases that compose the signal.

    Explanation

    The transform separates a time-domain signal into frequency-domain components.

  53. 53

    How does the circular visualization test whether a frequency is present?

    Model answer

    Each sample is multiplied by a rotating test point at the candidate frequency; matching frequencies produce a nonzero average position, while mismatched frequencies tend to cancel.

    Explanation

    The rotation aligns contributions from a matching component and spreads out contributions from other components.

  54. 54

    What happens to the sample points when the test frequency matches a signal frequency?

    Model answer

    They form an offset circle rather than canceling symmetrically around the origin.

    Explanation

    The matching component remains aligned with the rotating test point and produces a nonzero center.

  55. 55

    What happens to the sample points when the test frequency does not match a signal frequency?

    Model answer

    They tend to spread around the origin in a symmetric pattern, causing their average contribution to cancel.

    Explanation

    The test rotation is out of sync with the component being measured.

  56. 56

    How is the sample center calculated?

    Model answer

    The sample points are summed and the resulting vector is divided by the total number of samples.

    Explanation

    This computes the average position of all sample points.

  57. 57

    Why does the sample center usually return to zero for an integer test frequency that is not present?

    Model answer

    The points form a balanced periodic pattern around the origin, so their vector contributions cancel.

    Explanation

    Complete rotations and symmetry eliminate the average contribution of mismatched integer frequencies.

  58. 58

    Why can non-integer test frequencies cause the sample center to wobble?

    Model answer

    The test point does not complete a whole number of rotations, so the first and last sample positions do not align into a perfectly periodic pattern.

    Explanation

    The incomplete cycle disrupts the cancellation that occurs for aligned integer frequencies.

  59. 59

    What does the distance of the sample center from the origin reveal?

    Model answer

    It indicates whether the tested frequency is present and measures its strength.

    Explanation

    A larger offset means a stronger matching frequency component.

  60. 60

    Why must the sample-center distance generally be doubled to obtain the component amplitude?

    Model answer

    The sample center lies at the middle of the offset circle, so its distance represents half of the component's amplitude.

    Explanation

    Doubling the measured offset compensates for the geometric scaling in the circular representation.

  61. 61

    How can the phase of a frequency component be extracted from the sample center?

    Model answer

    The angle of the sample-center vector relative to the origin gives the component's phase.

    Explanation

    The phase determines the orientation of the offset circle and therefore the direction of the sample center.

  62. 62

    Why do other frequencies not change the sample center when testing one matching frequency?

    Model answer

    Their sample-point contributions form symmetric patterns whose average cancels, leaving the contribution from the matching frequency.

    Explanation

    This cancellation allows the DFT to isolate individual frequency components.

  63. 63

    What does a plot of sample-center distance against test frequency show?

    Model answer

    It shows peaks at frequencies present in the signal, with peak size related to the amplitudes of those components.

    Explanation

    The plot is a visual representation of the signal's frequency spectrum.

  64. 64

    What is spectral leakage?

    Model answer

    Spectral leakage is the spreading of a non-aligned frequency's energy into neighboring frequency bins.

    Explanation

    It occurs when the recorded duration does not contain an exact integer number of cycles for the tested frequency resolution.

  65. 65

    Why do fractional frequencies pollute nearby frequency results?

    Model answer

    A fractional frequency may not align with the available frequency bins, so its incomplete-cycle pattern fails to cancel and affects neighboring bins.

    Explanation

    The resulting leakage appears as smaller false bumps around the actual frequency.

  66. 66

    What is aliasing?

    Model answer

    Aliasing occurs when a signal is sampled too slowly, causing a higher-frequency signal to appear as a false lower-frequency signal.

    Explanation

    Widely spaced samples can skip over peaks and valleys and produce an incorrect apparent waveform.

  67. 67

    What is the Nyquist rate for a signal?

    Model answer

    The Nyquist rate is twice the highest frequency present in the signal.

    Explanation

    Sampling at this rate provides the minimum theoretical rate needed to avoid ambiguity from frequencies up to the specified maximum.

  68. 68

    Why is sampling exactly at the Nyquist rate potentially risky?

    Model answer

    An unfavorable phase can cause the samples to fall at uninformative locations, such as producing a flat line, so sampling above the Nyquist rate is safer.

    Explanation

    The theoretical minimum can be vulnerable to exact alignment with signal features.

  69. 69

    Does increasing the sample rate always improve the frequency resolution of a fixed-duration recording?

    Model answer

    No. Increasing the sample rate increases the highest detectable frequency, but frequency resolution is determined by the recording duration.

    Explanation

    For a fixed duration, a higher sample rate adds more samples without changing the spacing between resolvable frequency bins.

  70. 70

    How does recording duration affect frequency resolution?

    Model answer

    A longer recording provides finer frequency resolution because the detectable frequency spacing is the reciprocal of the duration.

    Explanation

    For example, a duration of ten seconds gives frequency increments of one tenth of a hertz.

  71. 71

    Why can a waveform sampled at the Nyquist rate appear to change strength over time even when the original signal has constant amplitude?

    Model answer

    The discrete samples may visually suggest changing strength, but the Nyquist-Shannon theorem guarantees that the samples can uniquely represent the original band-limited signal.

    Explanation

    The apparent envelope can result from the positions of the samples rather than an actual amplitude change.

  72. 72

    What condition allows a sampled signal to be reconstructed without ambiguity?

    Model answer

    The signal must contain no frequencies above half the sample rate, or those frequencies must be removed before sampling.

    Explanation

    Frequencies above the Nyquist limit can alias into lower frequencies.

  73. 73

    Why are anti-aliasing filters used before sampling?

    Model answer

    They remove frequencies above the range that the chosen sample rate can represent safely.

    Explanation

    Because real filters are imperfect, extra margin is included in practical sample rates.

  74. 74

    Why are audio sample rates such as 44.1 kilohertz and 48 kilohertz suitable for human audio?

    Model answer

    Humans hear to roughly 20 kilohertz, so rates above 40 kilohertz satisfy the basic Nyquist requirement, with extra frequency margin for imperfect filters.

    Explanation

    The additional margin helps suppress frequencies near or above the hearing limit before sampling.

  75. 75

    What determines the maximum frequency that can be detected from a sampled signal?

    Model answer

    The maximum detectable frequency is determined by half the sample rate, not by a fixed universal value such as the upper limit of human hearing.

    Explanation

    Different data sources can use different sample rates and therefore have different Nyquist limits.

  76. 76

    How many frequency bins are needed for the positive-frequency half of a DFT spectrum?

    Model answer

    The number of bins is the number of samples divided by two.

    Explanation

    The maximum frequency is half the sample rate, while the bin spacing is the reciprocal of the signal duration, producing half as many positive-frequency bins as samples.

  77. 77

    How is the frequency spacing between adjacent DFT bins calculated?

    Model answer

    The spacing is one divided by the signal duration, equivalently the sample rate divided by the number of samples.

    Explanation

    Longer recordings produce more closely spaced frequency bins.

  78. 78

    What information is stored for each frequency bin in the spectrum?

    Model answer

    Each bin stores the detected frequency, its amplitude, and its phase.

    Explanation

    These values describe the sinusoidal component associated with that bin.

  79. 79

    How does a direct DFT calculate the amplitude and phase for a frequency bin?

    Model answer

    It computes the sample center for that bin and derives the amplitude from its distance from the origin and the phase from its angle.

    Explanation

    The circular sample-point method provides the geometric interpretation of the DFT calculation.

  80. 80

    Why is the zero-frequency component special in amplitude calculations?

    Model answer

    At zero frequency, all sample points pile up at one location instead of forming a circle, so the usual doubling correction is not needed.

    Explanation

    The zero-frequency component represents a constant vertical offset, or the signal's average level.

  81. 81

    Why is the component at half the sample rate another special case?

    Model answer

    Like the zero-frequency case, it does not follow the ordinary circular pattern used for the general amplitude correction, so it should not be doubled.

    Explanation

    The Nyquist-frequency component requires separate handling in the amplitude calculation.

  82. 82

    How can a signal be reconstructed from DFT results?

    Model answer

    Generate a sinusoidal wave for each extracted frequency using its amplitude and phase, then add all the waves together.

    Explanation

    The inverse process recombines the frequency-domain components into the original time-domain signal.

  83. 83

    What happens when a signal is reconstructed using only its largest-amplitude frequency components?

    Model answer

    The broad structure of the sound can remain, but details are lost until enough significant frequencies are included.

    Explanation

    A few components may produce only a hum, while hundreds or thousands can begin to reproduce speech.

  84. 84

    Why did using more frequency components make the reconstructed speech clearer?

    Model answer

    Additional components restore more of the waveform's detailed variations, including information important for intelligible speech.

    Explanation

    Speech depends on many frequency components rather than only its strongest tones.

  85. 85

    What artifacts can remain when reconstructing audio from a limited set of frequency components?

    Model answer

    The result may contain muffling, background hum, hiss, or other noise caused by omitted or inaccurately estimated components.

    Explanation

    Discarding components changes the waveform and can introduce audible differences from the original.

  86. 86

    Why is a direct DFT computationally slow for large audio signals?

    Model answer

    It repeatedly compares many samples with many candidate frequencies, requiring a large amount of computation.

    Explanation

    The direct method becomes impractical for long recordings or high-resolution spectra.

  87. 87

    What is the fast Fourier transform designed to improve?

    Model answer

    The fast Fourier transform efficiently computes the same type of frequency analysis as the DFT but with much less computation.

    Explanation

    It is a faster algorithm for obtaining the Fourier transform of discrete data.

  88. 88

    Why should a frequency-analysis implementation avoid hardcoding a maximum frequency such as 20 kilohertz?

    Model answer

    The maximum usable frequency depends on the input sample rate and may need to accommodate signals outside human hearing, such as bat calls.

    Explanation

    The correct upper limit is determined by the Nyquist frequency of the data.

  89. 89

    How does the duration of a signal affect which test frequencies align with its samples?

    Model answer

    A frequency aligns when the recording contains an integer number of its cycles; longer durations allow smaller fractional frequency increments to align.

    Explanation

    Alignment determines whether the sample pattern closes neatly and avoids leakage into neighboring bins.

1 of 89
Question 1 of 89

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent