What Is DSP (Digital Signal Processing) and What Is It Used For?

DSP is the practice of manipulating signals—audio, images, sensor readings, radio waves—after they have been converted into numbers. Instead of shaping a voltage with capacitors and resistors, you write algorithms that filter, transform, compress, or analyze a stream of samples. It is the reason a phone call sounds clean, a hearing aid can isolate a voice in a crowd, and a research lab can synthesize a 24-channel sound field. The rest of this article explains the core operations, where DSP shows up, and how it connects to music and acoustics research like that done at Stanford's CCRMA.

The core idea: signals as numbers

A signal is anything that carries information and changes over time or space. Sound pressure at a microphone, brightness across a camera sensor, and voltage on an antenna are all signals.

To process a signal digitally, you first sample it: measure its value at regular intervals. The sampling rate (samples per second) sets the highest frequency you can represent—roughly half the sampling rate, a limit called the Nyquist frequency. Sample too slowly and high frequencies fold down into false lower ones, an artifact called aliasing. This is why audio is commonly sampled at 44.1 kHz or 48 kHz: it leaves room above the ~20 kHz limit of human hearing.

Once sampled, the signal is a sequence of numbers, and any operation on it is arithmetic. That is the whole premise of DSP.

The operations you actually use

Most DSP work is built from a small set of primitives:

  • Filtering — boosting or cutting parts of a signal. A low-pass filter keeps low frequencies and removes hiss; a high-pass removes rumble. Filters are described by their frequency response and can be designed as finite impulse response (FIR) or infinite impulse response (IIR) systems.
  • Transforms — converting between representations. The Fast Fourier Transform (FFT) turns a chunk of samples into its frequency content, which is how you see a spectrum analyzer, detect a pitch, or separate instruments.
  • Convolution and correlation — combining a signal with a filter or template. Convolution with a room's impulse response is how you add realistic reverb; correlation is how you find a known pattern inside a noisy recording.
  • Modulation, mixing, and gain — the everyday arithmetic of combining and scaling signals.
  • Sampling-rate conversion — resampling audio or images to a different rate or resolution.
  • Compression — reducing data size, from lossless schemes to perceptual codecs that discard what listeners are unlikely to notice.

Analog vs. digital processing

Aspect Analog Digital
Medium Continuous voltage/current Discrete samples (numbers)
Flexibility Fixed by circuit design Reconfigurable in software
Precision Limited by component tolerances Limited by word length and algorithm
Storage & copy Degrades with each copy Bit-exact reproduction
Typical use Simple, low-latency, high-frequency front ends Complex, adaptive, repeatable processing

In practice the two are combined: an analog front end conditions and samples the signal, DSP does the heavy lifting, and an analog stage may convert back to sound or radio.

Where DSP is used

  • Audio and music — noise reduction, equalization, pitch correction, virtual instruments, spatial audio, and mastering.
  • Speech and hearing — echo cancellation, speech recognition front ends, hearing aids that emphasize speech over background noise.
  • Communications — modulation, error correction, and channel equalization in Wi-Fi, cellular, and satellite links.
  • Imaging — sharpening, denoising, and reconstruction in medical scanners and cameras.
  • Sensors and control — smoothing and interpreting accelerometer, radar, and biomedical signals.

How DSP connects to computer music and acoustics

DSP is the shared language between engineering and music. At a research center like CCRMA (the Center for Computer Research in Music and Acoustics at Stanford), the same techniques serve both artistic and scientific goals. CCRMA describes itself as a multi-disciplinary facility where composers and researchers use computer-based technology as an artistic medium and as a research tool.

Concrete examples from CCRMA's public events show the range:

  • Spatial audio performance — CCRMA's Transitions 2026 concerts present immersive 3D sound played over a multichannel system described as "24.6 speakers," combining live performance, fixed-media electronic music, and audiovisual works.
  • Perception and attention research — a hearing seminar on "a stimulus-computable framework for selective attention" asks how the brain picks out relevant sounds from a noisy world, a question that depends on signal analysis.
  • Machine listening — a seminar titled "Drowning in Noise: On Signal Saliency in Self-Supervised Learning" examines how systems decide which parts of a signal matter.

These are free and open to the public, which makes them a practical way to see DSP applied to real problems rather than only in theory.

Getting started

If you want to work with DSP, the usual path is:

  1. Pick a language with strong numerical libraries (Python with NumPy/SciPy is common; MATLAB and Julia are also used).
  2. Start with sampling and the FFT, then implement a simple FIR low-pass filter and listen to the result.
  3. Move to real signals—record audio, load it, filter it, and inspect the spectrum before and after.
  4. Study a domain that interests you: audio effects, communications, or imaging.

The key habit is to always connect the numbers back to the signal: what did the operation do to the sound, the image, or the measurement, and why?

ccrma.stanford.edu
Multi-disciplinary facility where composers and researchers use computer-based technology as an artistic medium and as a research tool.