Digital Audio in Practice

Lorenz Schwarz
Karlsruhe University of Arts and Design (HfG)
Winter Semester 2025/26
Course info

Slides marked include a live REAPER demonstration.

← Overview

Digital Audio in Practice

DAW settings

Project setup, audio I/O, and latency

Digital Audio in Practice

Basic project settings

Define the project settings before working with audio.

  • project location: save the project and its media in a self-contained folder
  • sample rate: define the session rate and match the audio interface
  • recording format: use an uncompressed format, normally WAV
  • recording bit depth: define how newly recorded samples are stored

48 kHz / 24-bit WAV is generally recommended for common audio workflows.

Related: Fundamentals of Sound · Digital Audio

Project settings in REAPER

The project sample rate governs playback and processing; the Media tab defines the format of new recordings.

center

Course setting: 48 kHz · WAV · 24-bit PCM
Digital Audio in Practice

Project and source-file sample rates

Project sample rate

  • defines the reference rate for playback and processing
  • should be established before recording

Source-file sample rate

  • is stored in each imported audio file
  • may differ from the project rate

When rates differ, the DAW normally resamples during playback. Rendering may use the project rate or another delivery rate.

Digital Audio in Practice

Sample rate mismatch

If a file is interpreted at the wrong rate without resampling, pitch and speed change:

  • 96 kHz file interpreted as 48 kHz → slower, lower pitch
  • 44.1 kHz file interpreted as 48 kHz → faster, higher pitch

Sample-rate mismatch

Comparison of correctly interpreted and mismatched sample rates

Digital Audio in Practice

Audio interface and I/O settings

The DAW uses an audio device for recording, playback, and monitoring.

  • audio device: select the built-in audio hardware or an external audio interface
  • driver system: Core Audio on macOS; ASIO is generally preferred on Windows
  • input and output mapping: assign physical interface ports to DAW channels
  • sample rate: set the project rate; the DAW normally configures the audio interface to match

Audio device settings in REAPER

The selected input device determines where REAPER records from; the output device determines where playback is heard.

center

Digital Audio in Practice

Latency and buffers

Latency is the delay through a digital audio system.

Buffer size is the number of samples processed per block (one factor affecting latency).

REAPER: Preferences → Audio → Device → Request block size
(or use the audio interface control panel)

Digital Audio in Practice

Sources of latency


center

Digital Audio in Practice

Buffer-size trade-off

center

Buffers that are too small may cause clicks or dropouts.

Digital Audio in Practice

Buffer size and sample rate

The table shows the duration of one audio processing block. This duration is one component of the overall system latency.

Buffer 44.1 kHz 48 kHz
32 0.73 ms 0.67 ms
64 1.45 ms 1.33 ms
128 2.90 ms 2.67 ms
256 5.80 ms 5.33 ms
512 11.61 ms 10.67 ms
1024 23.22 ms 21.33 ms

For comparison, sound travels approximately one metre through air in 2.9 ms.

Digital Audio in Practice

Real-time and offline processing

Processing may follow playback in real time or run offline, faster or slower than the audio. Rendering may use either mode.

Mode Timing requirement Common uses
Real-time completes each audio block within the available buffer time playback, recording, monitoring, live processing
Offline runs independently of playback speed rendering, conversion, analysis, restoration
Digital Audio in Practice

Levels, formats, and bit depth

Clipping, quantization, dither, and file formats

Digital Audio in Practice

center

Digital Audio in Practice

Bit depth

Clipping concerns the limits of the available amplitude range. Bit depth determines how finely values within that range can be represented.

  • in integer PCM, n bits provide 2n possible sample values
  • each sample is assigned to one of these values through quantization
  • more available values reduce quantization error and increase the dynamic range

Use 24-bit PCM for general recording workflows. 16-bit PCM remains common for some delivery formats, while 32-bit float is used in some recording and processing workflows.

Bit depth and amplitude levels

Waveform represented at progressively lower bit depths

Digital Audio in Practice

Dither

Dither is low-level noise added before reducing integer PCM bit depth. It helps decorrelate quantization error from the audio signal.

center

Digital Audio in Practice

Dither listening example

A 300 Hz tone fading to silence, reduced to 8-bit so the effect is obvious (in practice, dither is applied at the final 16-bit export, where it is far subtler):

  1. 16-bit reference, full resolution.
  2. 8-bit without dither: the quiet tail distorts and drops to silence.
  3. 8-bit with dither: the tail keeps fading, into a faint steady noise.



Digital Audio in Practice

Audio file formats

  • WAV / AIFF: containers commonly used for uncompressed PCM audio
  • FLAC / ALAC: lossless compression; the original samples can be recovered
  • MP3 / AAC / Ogg Vorbis: lossy compression; smaller files with reduced fidelity

center

Choose a format according to compatibility, file size, and required fidelity.

Digital Audio in Practice

Technical settings summary

  • project sample rate: sets the playback and processing reference
  • integer PCM bit depth: determines amplitude resolution and theoretical dynamic range
  • recording format: 48 kHz / 24-bit WAV for this course
  • buffer size: balances latency against the time available for real-time processing
  • dither: apply once when reducing to a lower integer bit depth
Digital Audio in Practice

Reading digital audio

Waveform, spectrum, and spectrogram



Related: Fundamentals of Sound · Waveforms · Spectral Analysis

Digital Audio in Practice

Visualization views in DAWs

  • Waveform: amplitude over time
  • Spectrum: frequency content within an analysis window
  • Spectrogram: changing frequency content over time
Digital Audio in Practice

Waveform view (time domain)

A waveform shows amplitude over time; zooming helps locate transients, edit points, and fades.

Axes: time horizontally · amplitude vertically

center

Digital Audio in Practice

Spectrum view (frequency domain)

A spectrum shows frequency content within a short analysis window and helps identify fundamentals, harmonics, and noise.

Axes: frequency horizontally · level vertically

center

Digital Audio in Practice

Comparing timbres

Crash cymbal analysis


Flute analysis


Digital Audio in Practice

Spectrogram

center

Digital Audio in Practice

Reading a spectrogram

A spectrogram is a visual representation of how a sound's spectrum changes.

  • Horizontal axis: time
  • Vertical axis: frequency
  • Color or brightness: magnitude or level
Digital Audio in Practice

Spectrogram settings

Adjusting FFT and window size affects how detail appears:

  • large window: better frequency resolution, less precise timing
  • small window: better time resolution, less precise frequency
  • common window sizes: 512, 1024, 2048, or 4096 samples

Trade-off between time and frequency resolution.

Digital Audio in Practice

Spectrogram settings

center

Digital Audio in Practice

Analysis as an editing tool

Visual analysis and spectral editing

Digital Audio in Practice

Analysis for sound design

Visual analysis supports critical listening by making spectral and temporal patterns visible.

  • locate tonal build-up, hum, hiss, or noise
  • compare timbres, transients, and sustained components
  • relate visible patterns to audible changes across different time scales
Digital Audio in Practice

Spectral editing examples

Some applications use the spectrogram as a time-frequency editing surface.

  • select a region by time and frequency
  • attenuate clicks, hum, noise, or unwanted tones
  • adjust selected frequencies, similar to localized EQ

Examples include REAPER spectral edits, iZotope RX, Adobe Audition, and Steinberg SpectraLayers.

Spectral editing in REAPER

center

Digital Audio in Practice

Machine-learning source separation

Source-separation models estimate component signals from a mixed recording.

  • output categories depend on the model; common music stems include vocals, drums, bass, and other material
  • models may process waveforms, time-frequency representations, or both
  • separated signals may contain leakage, smearing, and other artifacts
  • results can be inspected and used as new editing material

Demucs research paper · Waves Mix Unlock DAW example

Digital Audio in Practice

Practical exercises

Digital Audio in Practice

Buffer size and voice monitoring

Use the computer’s built-in microphone and wired headphones at a moderate level.

  1. select the built-in microphone and wired headphone output
  2. arm a track, enable input monitoring, and set the buffer to 64 samples
  3. speak while listening to the monitored signal
  4. repeat at 1024 samples, compare the delay, then return to the lower setting
Digital Audio in Practice

Tone sequence and spectrogram

Create a sequence of three 1.5-second sine tones.

  1. generate 293.66, 349.23, and 440 Hz using
    JS: Tone Generator or Generate → Tone
  2. place the tones one after another in a single file or track
  3. inspect the sequence in waveform and spectrogram views
  4. locate each pitch and the transitions between them

Which view makes the pitch changes and their timing easier to identify?

Digital Audio in Practice

Selected references

  • Rumsey, Francis, with Tim McCormick. Sound and Recording: Applications and Theory. 8th ed., Routledge, 2021.
  • Smith, Julius O. Spectral Audio Signal Processing. W3K Publishing, 2011.

Related: Fundamentals of Sound · Waveforms · Spectral Analysis · Digital Audio

© 2026 Lorenz Schwarz

Original text, diagrams, illustrations, photographs, audio, and video are licensed under CC BY 4.0, except where otherwise noted.

Instrument samples: University of Iowa Musical Instrument Samples, free use without restrictions.
Bach, The Art of the Fugue, BWV 1080 (excerpt): Kimiko Ishizaka, CC0.

← Overview Next chapter →