Due to the limitations of Pyodide which does not include support for the librosa Python library, we will exclusively work with WAV files, specifically those with a sample rate of 44100 Hz. No other types of audio files will be considered.
Independent Component Analysis (ICA) is a computational technique designed to separate a multivariate signal into its additive, independent non-Gaussian components. This method is particularly effective for analyzing mixed signals that originate from multiple sources. In contrast to Principal Component Analysis (PCA), which seeks orthogonal components that maximize variance under the assumption of Gaussian source signals, ICA identifies components based on their statistical independence rather than their variance. Unlike PCA, which is significantly influenced by the orientation of the first eigenvector, ICA does not prioritize components based on variance. Instead, it focuses on the statistical independence of components, ensuring that each component's amplitude at any given point is unrelated to that of any other at the same time, indicative of their origins from distinct physical processes.
PCA reduces data dimensionality by emphasizing the variance captured by the first few eigenvectors, potentially leading to a reliance on the first principal component. This reliance is due to the first eigenvector's orientation, determined by the direction associated with the maximum variance principal component (PC). In contrast, ICA's approach to signal separation is not constrained by the variance or order of components. It seeks to identify independent sources within the signal mixtures, guided by the statistical properties of the signals rather than their variance. This fundamental difference underlines ICA's utility in separating mixed signals into components that represent original, independent sources, free from the hierarchical constraints of variance prioritization seen in PCA.
ICA is rooted in fundamental mathematical concepts such as entropy maximization, likelihood estimation, and the utilization of non-linear functions, notably the hyperbolic tangent (tanh), to approximate the cumulative distribution functions (CDFs) of source signals. A hallmark of successful separation through ICA is the alignment of the joint distribution of signals with the product of their marginal distributions, signifying statistical independence. Key characteristics of signal mixtures include (1) the independence of source signals versus the dependence observed in mixtures, (2) the presence of non-Gaussian histograms for each source signal in contrast to Gaussian histograms for mixtures, and (3) the lower complexity found in the simplest source signal compared to any of its mixtures. These principles underscore the theoretical and practical underpinnings of ICA, distinguishing it from other signal processing methods by emphasizing the non-Gaussian nature and statistical independence of source signals.
Independent Component Analysis (ICA) boasts a wide array of applications, from speech processing and brain imaging using functional Magnetic Resonance Imaging (fMRI) to the analysis of electrical brain signals via Electroencephalography (EEG). Its core advantage lies in the ability to discern and isolate source signals from their mixtures based on unique properties — particularly their statistical independence, non-Gaussian distribution, and comparative simplicity. This distinction is crucial in fields requiring precise signal separation, such as distinguishing individual voices in a noisy environment or isolating specific brain activities from complex imaging data. Furthermore, ICA's adaptability is showcased through its spatial and temporal variants: Spatial ICA (sICA) excels in analyzing data points like image pixels to segregate different visual sources, making it indispensable in image processing, while Temporal ICA (tICA) is pivotal for unraveling sequences over time, such as isolating distinct audio tracks or analyzing temporal brain signal patterns. This dual capability highlights ICA's comprehensive approach to addressing analytical challenges across a spectrum of domains, enhancing its utility in both spatially and temporally oriented data analysis.
FastICA, while aligned with the fundamental objective of the ICA to separate mixed signals into independent components, introduces specific nuances in its approach, theoretical focus, and practical execution, making it a variant of the broader family of ICA algorithms.
Distinctly, FastICA is tailored for rapid convergence by employing a negentropy approximation to optimize for non-Gaussianity. Its fixed-point iteration scheme for updating the unmixing matrix stands out for its efficiency. Although the implementation may slightly differ concerning the choice of non-linear functions (e.g., logcosh or exp) to approximate negentropy, the underlying principle of non-Gaussianity maximization remains intact. Other salient features include:
Amazon's Alexa is equipped with an innovative feature through its LED ring atop the device, which plays a crucial role beyond mere aesthetic appeal. When activated with the wake word "Alexa," this LED ring serves as a directional indicator, illuminating to point towards the source of the voice. This functionality not only adds an element of interaction by mimicking human-like responsiveness to sound sources but also signifies the sophisticated audio processing capabilities of the device. The directional illumination of the LED ring is a direct outcome of the device's ability to analyze and locate the origin of the sound, a process rooted deeply in the principles of independent component analysis (ICA).
ICA is pivotal for two primary functions within Alexa's operational framework. Firstly, it aids in pinpointing the direction from which the voice command is issued. By separating the mixed audio signals received by Alexa's microphones into their independent components, the system can identify the specific direction of the sound source. This process allows Alexa to "focus" on the speaker, enhancing user interaction by providing visual feedback through the LED ring.
Secondly, ICA plays a vital role in background noise reduction, a critical factor in far-field speech recognition. Voice commands captured from a distance inherently carry more noise and reverberation compared to those spoken directly into a device, such as a smartphone. These disturbances, primarily caused by sound waves reflecting off surfaces like walls or windows, can significantly hinder speech recognition accuracy. Through ICA, Alexa can effectively isolate the voice command from the background noise and reverberation. This isolation not only improves the clarity of the signal being processed but also enhances Alexa's ability to understand and respond to the user accurately, even in acoustically challenging environments.
ffmpegMac: Install using Homebrew:
brew install ffmpeg
Linux: Install using apt for Ubuntu or Debian:
sudo apt-get install ffmpeg
Once ffmpeg is installed, you can convert an MP3 file to WAV format with the following command:
ffmpeg -i input.mp3 output.wav
soxMac: Install using Homebrew:
brew install sox
Linux: Install using apt for Ubuntu or Debian:
sudo apt-get install sox
With sox installed, convert an MP3 file to WAV format with the following command:
sox input.mp3 output.wav
ngene-fasticaThe custom-built FastICA source code shown below has also been published as an installable Python package, ngene-fastica, for local waveform separation examples and educational biomedical signal-processing demonstrations.
This package is intended for users who would like to test the FastICA implementation locally without configuring PyScript, browser-side audio handling, or JavaScript-based waveform controls.
python -m pip install ngene-fastica
import numpy as np
from ngene_fastica import FastICA
# Rows represent observed mixtures; columns represent time samples.
X = np.random.randn(3, 10000)
ica = FastICA(n_components=3, random_state=42)
S = ica.fit_transform(X)
print(S.shape)
ngene-fastica-demo
The local demo writes example WAV files for source signals, mixed signals, and separated signals. Please note that ICA separation may recover components in a different order or sign, which is a normal property of ICA.
| Use case | Recommended option | Purpose |
|---|---|---|
| Browser-based demonstration | This PyScript page | Interactive waveform separation and visual demonstration inside the browser |
| Local Python test | pip install ngene-fastica |
Run the FastICA package locally without PyScript configuration |
| Algorithm review | nGeneFastICA.py |
Read the commented source code and follow the algorithmic steps |
This explores the field of audio processing with our Independent Component Analysis (ICA) tool, crafted with medical professionals and researchers in mind. This software aids in the separation of complex audio signals, with a focus on heart and lung sounds.


This attached Python script first generates the mixed wavelets of heart and lung sounds. You can view and listen to this mixed sound:
Each iteration of the ICA algorithm generates two wavelet visualization files and two sound files:










In the pursuit of advancing and streamlining signal processing workflows, two new Python modules have been developed: nGene_rpy2 and nGene_Waveform. These modules are designed to facilitate the integration of R scripts into Python applications and to efficiently manage waveform data. The following sections provide an overview of these modules and demonstrate their practical applications.
nGene_rpy2 is a Python class that utilizes the rpy2 library to seamlessly integrate R scripts and packages into Python applications. This class enables the loading of R code from files or strings, the importation of R packages, and the invocation of R functions directly from Python. Such integration is instrumental in leveraging R's advanced statistical and signal processing capabilities within a Python environment.
The following example demonstrates the utilization of nGene_rpy2 to perform Independent Component Analysis (ICA) using R's fastICA function:
nGene_Waveform is a Python class dedicated to the processing and visualization of waveform data. This class simplifies tasks such as reading audio files, normalizing signals, saving audio data, and plotting waveforms. It is essential for applications involving audio signal processing, particularly within the context of biomedical signals like heart and lung sounds.
.wav files and normalization of audio signals for processing..wav files.The example below illustrates how to utilize nGene_Waveform to read audio files and plot their waveforms:
main.py serves as an example script demonstrating the application of the nGene_rpy2 and nGene_Waveform classes to perform Independent Component Analysis (ICA) on mixed audio signals, such as heart and lung sounds. Users may adapt this script to their specific requirements by renaming it accordingly.
nGene_rpy2 and nGene_Waveform..wav files.The complete script is available in main.py. Users may adapt this script as needed:
nGene_rpy2 and nGene_Waveform.nGene_rpy2.nGene_Waveform to read and normalize heart and lung sound files.nGene_rpy2 to execute the fastICA function from R on the mixed signals.nGene_Waveform..wav files for further analysis or playback.Upon executing main.py, the script generates both console output and waveform plots. These outputs demonstrate the successful integration of R scripts within Python and the effective separation of audio signals using Independent Component Analysis (ICA).
The console output provides detailed logs of the script's execution process, including information about loading scripts, processing audio data, performing ICA, and saving the results. You can download the complete console output for further inspection:
/Users/frank/nGeneDL20241116/pythonProject/.venv/bin/python /Users/frank/nGeneDL20241116/pythonProject/main.py
Using R code from file: fastICA.R
2024-11-17 06:50:35,274 - nGene_rpy2 - INFO - Detected R installation: R version 4.4.1 (2024-06-14)
2024-11-17 06:50:35,274 - nGene_rpy2 - DEBUG - Activated numpy2ri and pandas2ri for automatic data conversion.
2024-11-17 06:50:35,274 - nGene_rpy2 - DEBUG - Initialized internal dictionaries for packages and scripts.
2024-11-17 06:50:35,276 - nGene_rpy2 - INFO - Loaded R script into package 'DefaultPackage'.
2024-11-17 06:50:35,276 - nGene_rpy2 - INFO - Loaded R script from file 'fastICA.R' into package 'DefaultPackage'.
2024-11-17 06:50:35,276 - nGene_Waveform - DEBUG - Initialized nGene_Waveform instance.
2024-11-17 06:50:35,278 - nGene_Waveform - INFO - Fetched and normalized audio data from 'heart_sound.wav'.
2024-11-17 06:50:35,278 - nGene_Waveform - INFO - Fetched and normalized audio data from 'lung_sound.wav'.
2024-11-17 06:50:35,279 - nGene_rpy2 - DEBUG - Retrieved fastICA package successfully.
2024-11-17 06:50:35,281 - nGene_rpy2 - DEBUG - Converted NumPy array to R matrix.
2024-11-17 06:50:35,281 - nGene_rpy2 - DEBUG - Retrieved R function 'fastICA' from package.
2024-11-17 06:50:35,319 - nGene_rpy2 - INFO - Called R function 'fastICA' successfully.
2024-11-17 06:50:35,319 - nGene_rpy2 - INFO - Executed fastICA function successfully.
2024-11-17 06:51:13,560 - nGene_Waveform - INFO - Plotted waveforms successfully.
2024-11-17 06:51:13,562 - nGene_Waveform - INFO - Saved separated signal 1 to 'separated_signal_1.wav'.
2024-11-17 06:51:13,564 - nGene_Waveform - INFO - Saved separated signal 2 to 'separated_signal_2.wav'.
The waveform plot visualizes the original, mixed, and separated audio signals, providing a clear representation of the ICA process. You can view the waveform plot below or download the image for your records:
| Topic | Details |
|---|---|
| Purpose |
Two-column HTML5 studio for audio/video playback, live signal visualization, lightweight tempo analysis, and simple source–mixture experiments. Pure vanilla JS; SVG-only waveforms; no frameworks or Canvas. New in v 3.3.5 line (3.3.1–3.3.5): Trim (loop-based clip creation with auto-download), matrix-based Mix of the last two items, and ICA separation of stereo mixes into two mono sources. |
| Layout |
Left column: Player (seek/loop, playhead cursor, volume, speed, transport controls, playlist, uploads). Right column: Trim · Mix · ICA toolbar, Tempo details panel, and Signal views (Overview, Mid, Micro, and band rows: Low/Mid/High). |
| File locations |
Place nws.html anywhere.Primary playlist: ./playlist.json (same folder as nws.html).Legacy/fallback playlist and tempo meta: optional sibling folder /media/ containing playlist.json and tempo_meta.json.
Files should be world-readable (e.g., chmod 644 *).
|
| Playlist |
On load, the player first attempts ./playlist.json (array of media entries, order preserved); if unavailable, a legacy /media/playlist.json is attempted.Absent JSON → starts empty and awaits uploads (drag-&-drop or picker). Uploaded files are referenced via blob-URLs only (no disk writes). |
| Playlist ordering |
Each row contains a dedicated ↓ button that sends that item directly to the bottom of the playlist while preserving the order of all others. The currently selected row remains highlighted; index bookkeeping is adjusted so that the audible selection is preserved when possible. |
| Trim |
Trim cuts the current loop range of the selected item into a new media item and appends it to the playlist, then immediately plays it. Audio items: decoded into an AudioBuffer, sliced in the loop interval, given short fade-in/fade-out ramps, encoded as 16-bit PCM WAV, and added as a new playlist entry.Video items: preferred path uses MediaRecorder on a captureStream() of the element over the loop range, targeting MP4 when supported and falling back to WebM; a pure audio WAV fallback is used when capturing A/V is not possible.New in v 3.3.4–3.3.5: the trimmed clip is auto-downloaded using the same filename shown in the playlist (WAV or MP4/WebM), immediately after creation. |
| Mix (matrix A) |
Mix combines the last two playlist entries into a stereo mixture using a fixed 2×2 mixing matrix:A = [[1, 1], [0.5, 2]], where rows index output channels (L,R) and columns index sources (S1,S2).Processing: each source is downmixed to mono, linearly resampled to a common sample rate, then mixed by A with automatic peak-based scaling to avoid clipping.Output: stereo WAV blob (L = mixture#1, R = mixture#2), auto-named as MixA_S1+S2_YYYYMMDDhhmmss.wav, appended to the playlist, and auto-selected for playback. Tempo metadata and overview are computed for the mix and stored under its filename.
|
| ICA separation |
ICA operates on the currently selected stereo item (e.g., a Mix result). Internals: 2×N mixtures are centered, whitened via a 2×2 symmetric eigendecomposition, then separated with a 2-component FastICA (tanh nonlinearity, symmetric decorrelation between components, Frobenius-norm convergence). Output: two mono WAV signals ( ICA_A_of_* and ICA_B_of_*), normalized with modest headroom and short fades, appended to the playlist as independent entries with their own tempo and overview metadata.
|
| Decoding & fallback |
Primary decoding path: decodeAudioData on fetched/uploaded bytes. For playlist URLs, fetch is attempted first.Fallback: full-length or range-limited capture via MediaElementSource → AudioWorklet (preferred) or ScriptProcessor, routed through a zero-gain node to keep the capture path inaudible. The muted property is never used in logic.
|
| Tempo metadata |
If present, /media/tempo_meta.json (keyed by filename) provides BPM and auxiliary fields (confidence, beat period, half/double suggestions, textual tempo class), which are reflected both in the playlist badge and the Tempo details panel.Otherwise, an internal estimator runs on decoded buffers or short capture segments, yielding approximate BPM and beat-period values sufficient for exploratory work. |
| Uploads |
Accessible uploader with ➕ Upload button and drag-&-drop support; the uploader itself is keyboard-focusable. Typical formats: MP3, M4A, FLAC, WAV, OGG, AAC, and common video containers such as MP4, MOV, WebM, MKV, and AVI. |
| First-30-second cue | Uploader border and hint text gently pulse every 2 s for the first 30 s after load, encouraging an initial user gesture that reliably resumes the AudioContext on modern browsers. |
| A–B Looping |
Seek bar shows cerulean A (“[”) and B (“]”) handles plus a thin ultramarine loop fill, always constrained within the gray full-track bar. ✖ Clear restores full-length playback. During playback, when the playhead reaches B, it wraps to A (with a small tolerance) as long as the loop is active. |
| Playhead | Current time is indicated by a vertical “I”; the center of that stroke corresponds to the true position. The playhead is draggable and is clamped within the current loop range. |
| Click-to-toggle video | Single-click on the video element toggles play/pause; double-click toggles fullscreen. The central ⏸︎/▶︎ transport button remains synchronized with element state. |
| Autoplay | The first playlist item may start automatically depending on browser autoplay policy. The AudioContext resumes on the first user interaction (click, drag, drop, or keyboard action) to ensure consistent audio routing. |
| Repeat Mode |
Repeat cycles between One (🔁 with “1”), All (🔁), and Off (⛔). With an A–B loop active, playback wraps within the loop regardless of repeat mode. When the loop is cleared, Repeat = All advances across playlist items; Repeat = One replays the same item. |
| Controls | ⏮︎ Prev • ⏸︎/▶︎ Toggle • ⏭︎ Next • 🔁/⛔ Repeat • ✖ Loop-Clear • ⛶ Fullscreen (video). |
| Seek & Time |
Smooth range input with live “elapsed / total” time label, draggable A–B handles, thin loop fill, and a precise “I”-shaped cursor.Loop bounds constrain both seeking and continuous playback; a small, duration-dependent epsilon avoids stickiness at the upper boundary during wrap. |
| Volume |
0–500 % via WebAudio GainNode (primary route, single audible path).If WebAudio is unavailable, a graceful fallback uses native element volume (0–100 %). The design avoids double-routing and unintended parallel audio paths. |
| Speed | 0.05× – 2.00× with − / + step buttons (0.01 increments) and a 1× reset button. The same playback rate is applied to both audio and video media elements. |
| Tempo details |
Tempo panel presents BPM (with confidence), beat period (ms), half/double candidates, tempo class (Slow/Moderate/Fast), and effective BPM at the current playback speed (BPM × rate). The panel is visible whenever either file-based metadata or the internal estimator provides data for the selected item. |
| Overview (playlist.json-aware) |
Overview is a whole-file SVG representation built from min/max envelopes over fixed buckets. In v 3.3.5, an internal helper ensures that an Overview is generated for the currently selected item even when it comes from playlist.json loaded at startup (audio or video).Once constructed, the same Overview supports both the main Overview view and the centered Micro view around the playhead. |
| Signal views |
Overview (entire file, absolute timebase, interactive loop brackets and cursor), Mid (live trailing window, default 8 s), and Micro (centered ±3 s around the playhead; falls back to trailing when no Overview is available). Band rows (Low ≤~200 Hz, Mid ~200–2000 Hz, High ≥~2 kHz) use a simple one-pole filter bank per band and share the same trailing length as the Mid window, with distinct color-coded strokes for quick visual discrimination. |
| Live tap |
AudioWorklet-based collector (preferred) or ScriptProcessor fallback receives data from the shared MediaElementSource nodes via an inaudible zero-gain branch.Envelope rings are filled at an effective rate of ~2 kHz and decimated to maintain responsiveness while limiting CPU load. Tap operations do not alter the audible signal. |
| Resizable wrapper |
Outer .wrapper uses resize:both; the default width is governed by --w (980 px), suitable for dual-column layouts on desktop screens.The playlist panel is vertically resizable, allowing adaptation to longer track lists or small windows. |
| Accent colour |
Changing --accent (default #1e90ff) rebrands key UI elements, including buttons, sliders, pulse highlights, and active playlist rows, while preserving structural CSS.
|
| Fullscreen | The ⛶ button and the F key toggle fullscreen for video items only; audio items retain the compact layout. The output route is re-applied on fullscreen changes to maintain consistent gain behaviour. |
| Source-code reveal | Embedded “Full Source Code” accordion shows the entire page’s HTML/JS/CSS, syntax-highlighted via Highlight.js, allowing inspection, copy-paste, and regression testing from a single file. |
| Namespace |
All logic resides inside a single IIFE; public surface is limited to instantiation of the WaveformStudio class against the #box container. CSS is scoped by class names to minimize interaction with surrounding pages or frameworks.
|
| Notes & caveats |
Decoding and cross-origin fetching depend on server CORS configuration; when direct decoding fails, the capture-based fallback is used instead. Some exotic codecs or DRM-protected streams may remain unsupported. Mixed, trimmed, and ICA-derived outputs are held as in-memory blobs and appear as playlist entries; only Trim explicitly triggers a download by default in v 3.3.5. |
| Topic | Details |
|---|---|
| Purpose |
Two-column HTML5 studio for audio/video playback, live signal visualization, and lightweight tempo analysis.
Pure vanilla JS; SVG-only waveforms; no frameworks or Canvas. New in v 3.1.0: Mix button (right column) that combines the last two playlist items into a headroom-safe WAV and appends it to the playlist for immediate playback. |
| Layout |
Left column: Player (seek/loop, volume, speed, transport, playlist, uploads). Right column: Mix toolbar, Tempo details panel, and Signal views (Overview, Mid, Micro, and band rows). |
| File locations |
Place nws.html anywhere.Optional sibling folder /media/ for playlist.json and tempo_meta.json.
Ensure readable permissions (e.g., chmod 644 *).
|
| Playlist |
Optional /media/playlist.json — array of media paths (order preserved).Absent JSON → starts empty and awaits uploads (drag-&-drop or picker). Uploaded files are referenced via blob-URLs (no disk writes). |
| Mix (new) |
Click Mix to combine the last two playlist entries (audio or the audio track of video). Processing: OfflineAudioContext offline render; per-track gain = 0.5 for headroom; linear sum; length = max(duration).Output: in-memory WAV blob, auto-named as Mix - A + B.wav, appended to the playlist, and auto-played. Status text reports progress or errors (e.g., CORS/decoding).
|
| Decoding & fallback |
Primary: decodeAudioData on fetched/uploaded bytes.Fallback: full-length capture via MediaElementSource → Worklet/ScriptProcessor (kept inaudible through a zero-gain node; no muted property used).
|
| Tempo metadata |
If available, /media/tempo_meta.json (keyed by filename) populates BPM and related fields in the list and Tempo panel.
When absent, a quick internal estimator computes approximate BPM/beat period from short decoded segments or short captures.
|
| Uploads | ➕ Upload button and drag-&-drop; keyboard focusable uploader. Uploaded audio/video formats commonly supported: MP3/M4A/FLAC/WAV and MP4/MOV/WEBM/MKV/AVI. |
| First-30-second cue | Uploader border and hint gently pulse every 2 s for the first 30 s after load to encourage interaction (resumes AudioContext reliably). |
| A–B Looping |
Seek bar shows cerulean A (“[”) and B (“]”) handles and a thin ultramarine loop fill, always inside the gray full-track bar. ✖ Clear restores full-length playback instantly. |
| Playhead | Current time indicated by a vertical “I”; the center of the line is the true position. Draggable, clamped within the loop. |
| Click-to-toggle video | Single-click on video toggles play/pause; double-click toggles fullscreen. The ⏸︎/▶︎ control remains synchronized. |
| Autoplay | First item may start automatically (per browser policy). AudioContext resumes on first user gesture (click, drag, drop) for consistent sound. |
| Repeat Mode |
Cycles: One (🔁 with “1”) → All (🔁) → Off (⛔). With a loop active, playback wraps to loop start. After clearing loop and with Repeat = All, playback advances to the next track. |
| Controls | ⏮︎ Prev • ⏸︎/▶︎ Toggle • ⏭︎ Next • 🔁/⛔ Repeat • ✖ Loop-Clear • ⛶ Fullscreen (video). |
| Seek & Time |
Smooth range input with live “elapsed / total”, draggable A–B handles, thin loop fill, and precise “I” cursor.
Loop bounds clamp seeking and playback, with edge-aware wrap to loop start.
|
| Volume |
0–500 % via WebAudio GainNode (primary route).
Graceful fallback uses element volume (0–100 %) if WebAudio is unavailable. Single audible route is always maintained.
|
| Speed | 0.05× – 2.00× with − / + step buttons (0.01) and 1× reset. Applies to audio and video uniformly. |
| Tempo details | BPM (with confidence), beat period (ms), half/double suggestions, tempo class (Slow/Moderate/Fast), and effective BPM at current speed. Panel appears when data are available (from metadata file or internal estimator). |
| Signal views | Overview (whole file; absolute “now” marker), Mid (live trailing window, default 8 s), Micro (centered ±3 s around playhead; falls back to trailing if overview not ready), and Band rows (Low ≤~200 Hz, Mid ~200–2000 Hz, High ≥~2 kHz) with color-coded strokes. Window lengths selectable; ✖ clears live buffers. |
| Live tap |
AudioWorklet collector (preferred) or ScriptProcessor fallback feeds envelope rings at ~2 kHz sampling for responsive SVG paths.
Capture remains inaudible through a zero-gain branch; no reliance on muted.
|
| Resizable wrapper |
Outer .wrapper uses resize:both; default width from --w (980 px for two columns).
Track list is vertically resizable.
|
| Accent colour |
Adjust --accent (default #1e90ff) to rebrand buttons, sliders, uploader, and active highlights.
|
| Fullscreen | Dedicated ⛶ button and keyboard F toggle fullscreen for video items. |
| Source-code reveal | Built-in “Full Source Code” accordion displays the whole page, syntax-highlighted via Highlight.js, for sharing and tests. |
| Namespace | All logic is encapsulated in an IIFE; CSS classes are locally scoped. Safe to embed alongside other pages and scripts. |
| Notes & caveats | Decoding and cross-origin fetching depend on server CORS policies; when decoding fails, the inaudible capture fallback is attempted. Mixed output is stored as an in-memory blob (download prompt is not issued automatically). |
| Topic | Details |
|---|---|
| Purpose |
Self-contained, resizable HTML5 media player for audio
(MP3/M4A/FLAC/WAV) and video (MP4/MOV/WEBM/MKV/AVI).
Pure vanilla JS—no frameworks. New since v 2.6: vertical “I” playhead (center = true position), refined A–B loop visuals, hardened uploads/drag-&-drop, reliable play/pause with AudioContext resume. |
| File locations |
Place nmp.html anywhere.Media files live in sibling /media/.Ensure readable permissions, e.g., chmod 644 *.
|
| Playlist |
Optional /media/playlist.json — array of media paths (order preserved).
If absent, player starts empty and waits for user uploads.
|
| Tempo metadata |
Player reads tempo_meta.json (keyed by filename)
to show integer-rounded BPM beside each track
and in the title line (e.g., “128 BPM”).
|
| Uploads | ➕ Upload button and drag-&-drop. Files are played via blob-URLs (no disk writes). The dashed uploader box is clickable and keyboard-focusable. |
| First-30-second attention cue | Uploader border and hint softly pulse/glow every 2 s for the first 30 s after load. |
| A–B Looping |
Seek bar shows two cerulean brackets: • A handle “[” — loop start. • B handle “]” — loop end. Ultramarine blue loop bar (thinner) fills the loop region and is always fully inside the gray full-length bar (entire track). ✖ Clear resets loop to full-length instantly. |
| Playhead | Current position is a vertical “I” line; its center is the true time point. It can be dragged, and is always clamped inside the blue loop bar. |
| Click-to-toggle video | Click anywhere on the visible video to play/pause; ⏸︎/▶︎ stays in sync. Double-click toggles fullscreen. |
| Autoplay | First item starts automatically (subject to browser policy). AudioContext is resumed on first user gesture (e.g., button, drag, drop) for reliable playback. |
| Repeat Mode |
Cycles: 🔂 One → 🔁 All → ⛔ Off. With a loop active, playback wraps to the loop start. After you press ✖ to clear loop and Repeat = All, the player advances to the next track at end (not the same track). |
| Controls | ⏮︎ Prev • ⏸︎/▶︎ Toggle • ⏭︎ Next • 🔂/🔁/⛔ Repeat • ✖ Loop-Clear • ⛶ Fullscreen (video). |
| Seek & Time |
Sleek seek bar with live “elapsed / total” timer,
A–B handles, thin blue loop bar, and draggable “I” playhead.
|
| Volume | 0–200 % gain via WebAudio (gain node). Default is 33 %. If WebAudio is unavailable, falls back to element volume (0–100 %). |
| Speed | 0.05× – 2.00× slider with − / + step buttons (0.01) and 1× reset. Applies to both audio and video. |
| Resizable wrapper |
Outer .wrapper uses resize:both;
default width from --w (360 px).
Track-list is vertically resizable.
|
| Accent colour |
Edit --accent (default #1e90ff)
to rebrand buttons, slider thumbs, uploader, and active track highlight.
|
| Fullscreen | Dedicated ⛶ button and keyboard F toggle fullscreen for video items. |
| Source-code reveal | Built-in “Full Source Code” accordion shows the entire page, syntax-highlighted via Highlight.js (for easy sharing/tests). |
| Namespace | All logic wrapped in an IIFE; CSS uses scoped class names. Safe to embed alongside other scripts and styles. |
| Topic | Details |
|---|---|
| Purpose | Self-contained, resizable HTML5 player for audio (MP3/M4A) and video (MP4/MOV/WEBM). Pure vanilla JS—no frameworks required. New since v 1.8: tempo-aware track-list showing BPM (integer-rounded), auto-loading from tempo_meta.json; initial volume defaults to 17 % at page-load.
|
| File locations | Place nmp.html anywhere.Media files live in a sibling /media/ folder.Ensure readable permissions with chmod 644 *.
|
| Playlist | Optional /media/playlist.json—an array of paths (order preserved). If absent, the player simply waits for user uploads. |
| Tempo metadata | Run extract_meta_from_media.py v 2.4 to generate tempo_meta.json (single integer-rounded bpm). Player displays it beside each track and in the title-bar as “### BPM”. |
| Uploads | ➕ Upload button and drag-&-drop. Files become blob-URLs, so nothing is written to disk. |
| First-30-second attention cue | Uploader border, hint-text and container gently pulse, glow and scale every 2 s for the first 30 s after page-load. |
| A-B Looping | Seek-bar sports two cerulean “brackets”: • A handle “[” — left edge marks loop-start. • B handle “]” — right edge marks loop-end. Drag to set; ultramarine bar fills the loop range. ✖ Clear button instantly resets the loop. |
| Click-to-toggle video | Click anywhere on the visible video to play/pause; the ⏸︎/▶︎ button stays synchronised. |
| Autoplay | The first track auto-starts; subsequent behaviour follows Repeat Mode. |
| Repeat Mode | Begins at 🔂 One (loop current). Button cycles: 🔂 One → 🔁 All → 🔁 Off. |
| Controls | ⏮︎ Prev • ⏸︎/▶︎ Toggle • ⏭︎ Next • Repeat — plus ✖ Loop-Clear beside the seek-bar. |
| Seek & Time | Sleek seek-bar with live “elapsed / total” timer, integrated A-B loop handles and ultramarine fill. |
| Volume | Smooth 0–100 % slider with live percentage label; initial default 17 % (0.17). |
| Speed | 0.70× – 2.00× slider with − / + step buttons and 1× reset. Applies to audio & video. |
| Resizable wrapper | Outer .wrapper uses resize:both; default width governed by --w (360 px). Track-list is vertically resizable. |
| Accent colour | Edit --accent (default #1e90ff) to rebrand buttons, slider thumbs, active-track row and uploader pulse. |
| Source-code reveal | Built-in “Full Source Code” accordion shows the entire page, syntax-highlighted via Highlight.js. |
| Namespace | All logic wrapped in an IIFE; CSS uses local class names—safe to embed anywhere. |
| Topic | Details |
|---|---|
| Purpose | Self‑contained, resizable HTML5 player for audio (MP3/M4A) and video (MP4/MOV/WEBM). Pure vanilla JS—no frameworks. New since v 1.6 (c): draggable cerulean‑blue “bracket” handles for precise A‑B looping, ultramarine loop‑fill, and click‑to‑toggle playback directly on the video surface. |
| File locations | Place nmp.html anywhere.Media files live in a sibling /media/ folder.Ensure readable permissions with chmod 644 *.
|
| Playlist | Optional /media/playlist.json—an array of paths (order preserved). If absent, the player simply waits for user uploads. |
| Uploads | ➕ Upload button and drag‑&‑drop. Files become blob‑URLs, so nothing is written to disk. |
| First‑30‑second attention cue | Uploader border, hint‑text and container gently pulse, glow and scale every 2 s for the first 30 s after page‑load. |
| A‑B Looping (1.8 series) | Seek‑bar sports two cerulean “brackets”: • A handle “[” — left edge marks loop‑start. • B handle “]” — right edge marks loop‑end. Drag to set; ultramarine bar fills the loop range. ✖ Clear button instantly resets the loop. |
| Click‑to‑toggle video | Click anywhere on the visible video to play/pause; the ⏸︎/▶︎ button stays synchronised. |
| Autoplay | The first track auto‑starts; subsequent behaviour follows Repeat Mode. |
| Repeat Mode (default) | Begins at 🔂 One (loop current). Button cycles: 🔂 One → 🔁 All → 🔁 Off. |
| Controls | ⏮︎ Prev • ⏸︎/▶︎ Toggle • ⏭︎ Next • Repeat — plus ✖ Loop‑Clear beside the seek‑bar. |
| Seek & Time | Sleek seek‑bar with live “elapsed / total” timer. Integrates A‑B loop handles and ultramarine fill described above. |
| Volume | Smooth 0–100 % slider with live percentage label. |
| Resizable wrapper | Outer .wrapper uses resize:both; default width governed by --w (360 px). Track‑list is vertically resizable. |
| Accent colour | Edit --accent (default #1e90ff) to rebrand buttons, slider thumbs, active‑track row and uploader pulse. |
| Source‑code reveal | Built‑in “Full Source Code” accordion shows the entire page, syntax‑highlighted via Highlight.js. |
| Namespace | All logic wrapped in an IIFE; CSS uses local class names—safe to embed anywhere. |
A sound waveform is a change in air pressure, voltage, or digital amplitude over time. At first glance, a waveform looks like a curve on the time axis. However, many important properties of sound are difficult to understand from the time-domain curve alone. It is not always obvious why a sound rings for a long time, why a certain frequency is emphasized, why a feedback system becomes unstable, or how much delay exists between two similar waveforms.
The concepts in Chapter 2 can therefore be understood as different ways of reading the same waveform. Z-transform, Fourier transform, convolution, cross-correlation, poles, zeros, convergence, and inverse transforms are not isolated formulas. They are tools for seeing hidden structure inside waveform behavior.
Fourier transform explains a waveform by asking, “What frequencies are inside it?”
Z-transform explains a waveform system by asking, “Why does it decay, ring, resonate, or become unstable?”
A physical sound signal changes continuously over time. In continuous-time notation, it can be written as:
\[ x(t) \]
A computer cannot directly store every value of a continuous signal. Instead, the signal is sampled at regular time intervals. The resulting list of numbers is called a discrete sequence.
\[ x[0],\ x[1],\ x[2],\ x[3],\cdots \]
For example, a 44.1 kHz audio signal contains 44,100 samples per second. Each sample represents the amplitude of the waveform at a specific time.
\[ x[n] \]
In digital sound analysis, the waveform is therefore represented as a discrete sequence. When drawn as a graph, it appears as a waveform. When written mathematically, it appears as a sequence.
Consider the following samples:
\[ 0.1,\ 0.3,\ 0.2,\ -0.1,\ -0.4,\ -0.2,\ 0.1,\cdots \]
When these values are placed in time order, they form a waveform. Thus, a discrete sequence is not a separate abstraction detached from sound. In digital audio, it is the basic representation of the waveform itself.
All later operations start from this sequence \(x[n]\). Z-transform, Fourier transform, convolution, and cross-correlation are all methods for analyzing or manipulating this sequence.
Convolution is the operation that calculates the output waveform produced when an input waveform passes through a system. It is written as:
\[ y[n]=x[n]*h[n] \]
In expanded form:
\[ y[n]=\sum_{k=-\infty}^{\infty}x[k]h[n-k] \]
Here, \(x[n]\) is the input waveform, \(h[n]\) is the system impulse response, and \(y[n]\) is the output waveform.
An impulse response describes how a system reacts to a very short input. A simple acoustic example is a hand clap in a room. The clap itself is brief, but the room continues to respond through reflections and reverberation.
The room response to that short clap is the impulse response. When another sound passes through the same room, the resulting reverberant sound can be understood as the convolution of the original sound with the room impulse response.
\[ \text{dry sound} * \text{room impulse response} = \text{reverberant sound} \]
Many acoustic and audio systems can be described by the combination of an input waveform and a system response. Convolution is used to calculate this combination.
Typical examples include:
In this sense, convolution explains how a waveform changes after passing through an environment, device, or filter.
Cross-correlation measures the similarity between two waveforms. More specifically, one waveform is shifted along the time axis, and the operation checks at which shift the two waveforms match best.
A common form is:
\[ R_{xy}[m]=\sum_n x[n]y[n+m] \]
Here, \(m\) is the time lag. If \(R_{xy}[m]\) becomes large at a certain \(m\), the two waveforms are most similar at that delay.
In acoustics, it is often important to find the time difference between related signals. For example, an original sound and its reflected echo may have similar shapes but different arrival times. Cross-correlation can reveal that time delay.
Cross-correlation is used for:
Convolution creates an output waveform by applying a system response to an input waveform. Cross-correlation compares two waveforms and finds the delay at which they are most similar.
| Concept | Main question | Acoustic meaning |
|---|---|---|
| Convolution | What waveform is produced after this system? | Reverb, echo, filtering |
| Cross-correlation | At what delay do two waveforms match best? | Delay, pitch, echo position |
The Z-transform converts a discrete sequence \(x[n]\) into a function \(X(z)\) of a complex variable \(z\).
\[ X(z)=\sum_{n=-\infty}^{\infty}x[n]z^{-n} \]
The variable \(z\) is complex:
\[ z=re^{j\omega} \]
Therefore, the Z-transform changes a time-domain waveform into a function that can be analyzed on the complex plane.
The purpose of the Z-transform is not merely to make formulas shorter. Its deeper purpose is to reveal the overall behavior of a waveform system without following every sample one by one.
Consider the following system:
\[ y[n]=x[n]+0.8y[n-1] \]
This means that the current output \(y[n]\) depends not only on the current input \(x[n]\), but also on the previous output \(y[n-1]\). In other words, 80% of the previous output remains in the current output.
This structure is related to reverberation, ringing, resonance, and feedback. A sound does not disappear immediately; part of the previous sound remains and continues into the next sample.
In the time domain, the equation expands as follows:
\[ y[n]=x[n]+0.8y[n-1] \]
Since:
\[ y[n-1]=x[n-1]+0.8y[n-2] \]
substitution gives:
\[ y[n]=x[n]+0.8x[n-1]+0.8^2y[n-2] \]
Continuing this expansion gives:
\[ y[n]=x[n]+0.8x[n-1]+0.8^2x[n-2]+0.8^3x[n-3]+\cdots \]
The current output is therefore not determined only by the current input. It contains an infinite accumulation of past inputs, each weighted by a decreasing factor.
From the time-domain equation alone, the following questions are not immediately simple:
The Z-transform turns a delay into multiplication:
\[ y[n-1]\quad \leftrightarrow \quad z^{-1}Y(z) \]
Therefore:
\[ y[n]=x[n]+0.8y[n-1] \]
becomes:
\[ Y(z)=X(z)+0.8z^{-1}Y(z) \]
Rearranging:
\[ Y(z)-0.8z^{-1}Y(z)=X(z) \]
\[ (1-0.8z^{-1})Y(z)=X(z) \]
The transfer function is:
\[ H(z)=\frac{Y(z)}{X(z)} = \frac{1}{1-0.8z^{-1}} \]
The simplification is not only a shorter expression. An infinitely long time-domain memory structure is compressed into one function.
The long expression:
\[ x[n]+0.8x[n-1]+0.8^2x[n-2]+0.8^3x[n-3]+\cdots \]
becomes:
\[ H(z)=\frac{1}{1-0.8z^{-1}} \]
From this single expression, stability, frequency response, impulse response, and pole location can be read.
If an impulse is applied to the system:
\[ x[n]=\delta[n] \]
the output becomes:
\[ h[n]=0.8^n u[n] \]
That is:
\[ 1,\ 0.8,\ 0.64,\ 0.512,\ 0.4096,\cdots \]
This is a decaying waveform tail. Acoustically, it resembles a sound that gradually disappears after being excited.
The Z-transform explains why this waveform has that tail. Without calculating every sample in the time domain, \(H(z)\) reveals what kind of waveform behavior the system will produce.
The Z-transform is an infinite sum:
\[ X(z)=\sum_{n=-\infty}^{\infty}x[n]z^{-n} \]
This sum does not necessarily converge for every value of \(z\). The set of \(z\)-values for which the sum converges is called the Region of Convergence, or ROC.
Convergence tells where the expression has mathematical meaning. It is also closely related to causality and stability.
Consider:
\[ x[n]=0.8^n u[n] \]
This sequence decreases over time:
\[ 1,\ 0.8,\ 0.64,\ 0.512,\cdots \]
Its waveform tail decays and remains stable.
By contrast:
\[ x[n]=1.2^n u[n] \]
increases over time:
\[ 1,\ 1.2,\ 1.44,\ 1.728,\cdots \]
In this case, the waveform grows instead of disappearing. Thus, convergence is directly related to whether a waveform is stable or divergent.
The inverse Z-transform converts a Z-domain expression back into a time-domain sequence.
\[ X(z)\rightarrow x[n] \]
For example, if:
\[ X(z)=\frac{1}{1-0.8z^{-1}} \]
and the sequence is causal, the corresponding time-domain sequence is:
\[ x[n]=0.8^n u[n] \]
The inverse Z-transform therefore returns complex-plane analysis to an actual waveform sequence.
In the Z-domain, a system is often expressed as:
\[ H(z)=\frac{B(z)}{A(z)} \]
Here, \(B(z)\) is the numerator and \(A(z)\) is the denominator. Zeros and poles come from this expression.
A zero is a value of \(z\) that makes the transfer function equal to zero.
\[ H(z)=0 \]
In other words:
\[ B(z)=0 \]
A zero weakens or removes a certain component. If a zero lies on the unit circle, the frequency corresponding to that angular position can be strongly suppressed.
Acoustically, this is related to a notch filter. For example, a zero can be placed at a frequency corresponding to a hum noise in order to reduce that component.
A zero therefore removes or weakens a particular oscillatory component inside a waveform.
A pole is a value of \(z\) where the transfer function becomes very large. It occurs when the denominator becomes zero:
\[ A(z)=0 \]
A pole tends to maintain or amplify a certain component.
Suppose a pole is located at:
\[ p=re^{j\omega_0} \]
In the time domain, it produces a component similar to:
\[ r^n e^{j\omega_0 n} \]
Here, \(r\) is related to decay speed, and \(\omega_0\) is related to oscillation frequency.
If \(r\) is close to 1, the sound decays slowly. The waveform then has a long ringing or resonance.
In a causal discrete-time system, a pole outside the unit circle is unstable.
\[ |p|>1 \]
For example, if:
\[ p=1.2 \]
the impulse response grows as:
\[ 1.2^n \]
The waveform does not decay. Instead, it grows over time.
Acoustically, this resembles microphone-speaker feedback. If a microphone receives the loudspeaker output, the signal is amplified and played again. When the loop gain is too large, a certain frequency grows repeatedly and produces a strong feedback tone.
A pole-zero plot is a map of system behavior. A waveform may look complicated in the time domain, but the positions of poles and zeros reveal why the waveform rings, decays, resonates, or becomes unstable.
| Observed behavior | Pole-zero interpretation | Waveform result |
|---|---|---|
| Removal of a frequency | A zero is located near that frequency | The corresponding oscillation becomes weaker |
| Resonance | A pole is located near the unit circle | Ringing or resonance appears |
| Fast decay | The pole radius is small | The tail disappears quickly |
| Long decay | The pole is close to the unit circle | The tail remains for a long time |
| Instability | The pole is outside the unit circle | The waveform amplitude grows over time |
Fourier transform interprets a waveform as a sum of sinusoidal components. Even a complicated waveform can be analyzed as a combination of many frequencies.
In the time domain, the signal is written as:
\[ x[n] \]
After Fourier transform, the signal is represented by its frequency content:
\[ X(e^{j\omega}) \]
In conceptual form:
\[ \text{waveform} \quad \rightarrow \quad \text{spectrum} \]
Sound may look complex on the time axis, but its structure is often clearer on the frequency axis. For example, the waveform of an instrument can look irregular, while its spectrum may reveal a fundamental frequency and harmonic structure.
Fourier transform can show:
The Fourier transform of a discrete sequence \(x[n]\) is commonly written as:
\[ X(e^{j\omega}) = \sum_{n=-\infty}^{\infty}x[n]e^{-j\omega n} \]
This is called the discrete-time Fourier transform, or DTFT. It is a fundamental tool for analyzing the spectrum of a digital waveform.
The Z-transform is:
\[ X(z)=\sum_n x[n]z^{-n} \]
If \(z\) is restricted to the unit circle:
\[ z=e^{j\omega} \]
then:
\[ X(e^{j\omega}) = \sum_n x[n]e^{-j\omega n} \]
This is the Fourier transform. Therefore, Fourier transform can be understood as the Z-transform observed on the unit circle.
Z-transform views the system on the complex plane.
Fourier transform views frequency response on the unit circle.
A real sequence has real-valued samples:
\[ x[n]\in\mathbb{R} \]
Ordinary audio waveforms are real sequences. For example, PCM audio samples can be represented as real or integer values:
\[ 0.2,\ 0.5,\ -0.1,\ -0.4,\cdots \]
The Fourier transform of a real sequence has conjugate symmetry. Positive and negative frequencies mirror each other:
\[ X(e^{-j\omega})=X^*(e^{j\omega}) \]
A causal sequence is zero for \(n<0\):
\[ x[n]=0,\quad n<0 \]
Physical systems are generally causal. A loudspeaker cannot produce sound before an input voltage is applied. A room reflection cannot arrive before the original sound occurs.
Therefore, an acoustic impulse response usually has the following structure:
\[ \cdots,\ 0,\ 0,\ 0,\ h[0],\ h[1],\ h[2],\cdots \]
This means that output appears only after input.
A real causal sequence is an important model for physical acoustic systems. A room impulse response, for example, can be treated as a real causal sequence.
The direct sound arrives first, early reflections follow, and the reverberation tail continues afterward. The waveform follows the order of physical cause and effect.
An analytic sequence is a complex sequence that keeps the positive-frequency part and removes the negative-frequency part.
A real waveform contains both positive and negative frequency components. For real signals, these components are not independent; they are symmetric. The analytic sequence keeps one side in a complex representation, making envelope and phase easier to analyze.
It is commonly written as:
\[ x_a[n]=x[n]+j\hat{x}[n] \]
Here, \(\hat{x}[n]\) is the Hilbert transform of \(x[n]\).
An analytic sequence can be written as:
\[ x_a[n]=A[n]e^{j\phi[n]} \]
where:
\[ A[n]=|x_a[n]| \]
is the envelope, and:
\[ \phi[n]=\arg(x_a[n]) \]
is the phase.
This allows a waveform to be separated into fast oscillation and slowly changing envelope. For example, two 440 Hz tones can have the same pitch but different attacks and decays. The analytic sequence makes this envelope behavior clearer.
These concepts connect naturally. First, a physical sound waveform is sampled and represented as a discrete sequence \(x[n]\). When the sequence passes through a system \(h[n]\), convolution produces the output waveform \(y[n]\).
\[ y[n]=x[n]*h[n] \]
In the Z-domain, the same relationship becomes multiplication:
\[ Y(z)=X(z)H(z) \]
The function \(H(z)\) reveals poles and zeros. Poles and zeros explain which frequencies are emphasized or removed, how long a waveform rings, and whether the system is stable.
On the unit circle, where \(z=e^{j\omega}\), the Z-transform becomes the Fourier transform:
\[ Y(e^{j\omega})=X(e^{j\omega})H(e^{j\omega}) \]
This shows how each frequency component is amplified or weakened by the system.
| Viewpoint | Expression | What it reveals |
|---|---|---|
| Time domain | \(x[n]\), \(y[n]=x[n]*h[n]\) | Actual waveform change over time |
| Z-domain | \(X(z)\), \(H(z)\) | Poles, zeros, stability, system structure |
| Frequency domain | \(X(e^{j\omega})\), \(H(e^{j\omega})\) | Spectrum, resonance, filtering effect |
| Correlation domain | \(R_{xy}[m]\) | Similarity, delay, echo position |
| Concept | Core meaning | Relation to waveform |
|---|---|---|
| Discrete sequence | A list of samples | The digital waveform itself |
| Convolution | Combination of input and system response | Creates the output waveform with reverb, echo, or filtering |
| Cross-correlation | Similarity measurement between two waveforms | Finds delay, pitch, or echo position |
| Z-transform | Conversion of a sequence into a complex-plane function | Analyzes the structure of the waveform-producing system |
| Convergence | Region where the Z-transform is valid | Related to whether the waveform tail decays or diverges |
| Inverse Z-transform | Return from Z-domain to time-domain sequence | Converts analysis results back into a waveform |
| Zero | Point where the transfer function becomes zero | Removes or weakens a frequency component |
| Pole | Point where the transfer function becomes very large | Creates ringing, resonance, or decay tail |
| Unstable pole | Pole outside the unit circle | Causes waveform amplitude to grow over time |
| Fourier transform | Decomposition of a waveform into frequency components | Analyzes spectrum, harmonics, and resonance |
| Real causal sequence | Real-valued sequence with no output before input | Basic model for physical acoustic systems |
| Analytic sequence | Complex sequence focused on positive frequencies | Analyzes envelope, phase, and instantaneous frequency |
In conclusion, the main purpose of Chapter 2 is to move beyond viewing a waveform only as a time-domain curve. The time-domain waveform is the visible form of sound, but that form alone does not fully explain the system behind it.
Convolution shows how a waveform changes after passing through a system. Cross-correlation finds similarity and delay between waveforms. Fourier transform decomposes the waveform into frequency components. Z-transform explains poles, zeros, stability, resonance, and decay.
These tools address one central question:
What is this waveform made of, what system shaped it, and how will it behave over time?
Fourier transform answers this question from the viewpoint of frequency. Z-transform and pole-zero analysis answer it from the viewpoint of system structure and stability. For this reason, the mathematical concepts in Chapter 2 are not merely abstract formulas. They are a basic language for reading sound waveforms more deeply.
Written on June 5, 2026
Chapter 3 of Mikio Tohyama's Waveform Analysis of Sound can be understood as a chapter about how to analyze sound that changes over time.
A music file is not simply a collection of frequencies. A piano note begins strongly and then decays. A violin note may grow slowly and sustain for a long time. A drum hit appears suddenly and disappears quickly. A vocal note changes pitch, loudness, and tone continuously.
The main purpose of Chapter 3 is to understand sound through both time and frequency.
A single FFT can show which frequencies exist in a selected region, but it cannot fully explain when those frequencies appeared, how long they stayed, how they decayed, or how their timing created the perceived character of the sound.
Chapter 3 therefore moves from static frequency analysis to time-frequency analysis. It explains how to use spectrum, power spectrum, frame-wise Fourier transform, sub-band filters, envelope, group delay, and auto-correlation to understand real musical sound.
The chapter can be read as the following progression:
Waveform
↓
FFT
↓
Magnitude and phase spectrum
↓
Power spectral density and auto-correlation
↓
Frame-wise Fourier transform
↓
Sub-band filters
↓
Perfect reconstruction filters
↓
Sinusoidal modulation and envelope
↓
Group delay
↓
Triangular windowing and short-term auto-correlation
↓
Pitch, timbre, transient, and time-frequency analysis
Each step answers a different question about sound.
| Question | Main concept | Simple meaning | Musical meaning |
|---|---|---|---|
| What frequencies exist? | FFT, spectrum | Frequency ingredients | Pitch, harmonics, tonal balance |
| How strong is each frequency? | Magnitude spectrum | Frequency strength | Harmonic balance and basic timbre |
| How are the frequencies arranged in time? | Phase spectrum | Timing structure | Attack, transient, spatial impression |
| Where is the energy concentrated? | Power spectral density | Energy distribution | Bass, mid, treble balance |
| How much does the signal repeat? | Auto-correlation | Self-similarity over delay | Pitch and periodicity |
| When do frequencies appear? | Frame-wise Fourier transform | FFT repeated over short frames | Spectrogram, onset, rhythm, vocal entry |
| Which frequency band is active? | Sub-band filters | Frequency grouping | Bass, mid, treble, filter-bank analysis |
| Can separated bands be recombined correctly? | Perfect reconstruction filters | Split and rebuild without damage | EQ, codec, noise reduction, source processing |
| How does each frequency change over time? | Envelope | Amplitude shape | Attack, decay, sustain, release, timbre |
| When do frequency groups arrive? | Group delay | Timing alignment of frequency components | Drum punch, piano attack, speech clarity |
| What note is being played? | Short-term auto-correlation | Pitch from repeated periods | Vocal pitch, melody, tuning |
| What instrument-like character does it have? | Spectral envelope | Smooth outline of the power spectrum | Timbre, formant, instrument identity |
A digital audio signal is a sequence of samples:
x[0], x[1], x[2], x[3], ...
Example:
0.0012
0.0031
0.0054
-0.0022
...
The word temporal means related to time. The phrase temporal nature of sequence means that the audio sequence changes as time passes.
The temporal nature of a sound sequence means how the sound behaves over time.
This is essential in music. A piano, violin, drum, and human voice may contain overlapping frequency ranges, but their time behavior is very different.
Piano:
Strong beginning, gradual decay
Violin:
Slow growth, long sustain
Drum:
Sudden burst, rapid decay
Voice:
Continuously changing pitch, loudness, and vowel shape
A normal envelope follows the loudness shape of the whole sound. A narrow-band envelope follows the loudness shape of only one frequency region.
Whole envelope:
How the whole sound becomes louder or softer
Narrow-band envelope:
How the 440 Hz region changes
How the 880 Hz region changes
How the 2 kHz region changes
How the 8 kHz region changes
This matters because different frequency components do not decay at the same speed. In many acoustic sounds, high-frequency components decay faster than low-frequency components.
Example: piano note
Low-frequency component:
Longer decay
High-frequency component:
Shorter decay
This frequency-by-frequency decay behavior is a major part of timbre.
A frame-wise spectrum is obtained by cutting a music file into short frames and applying FFT to each frame.
Frame 1 → FFT → Spectrum 1
Frame 2 → FFT → Spectrum 2
Frame 3 → FFT → Spectrum 3
Frame 4 → FFT → Spectrum 4
By stacking these spectra over time, a spectrogram can be created.
Vertical axis: Frequency
Horizontal axis: Time
Brightness or color: Energy
The phrase temporal nature of sequence → narrow-band envelope or frame-wise spectra means that time behavior can be represented in at least two practical ways:
FFT stands for Fast Fourier Transform. It converts a time-domain waveform into a frequency-domain representation.
Time-domain waveform:
Amplitude
^
|
| /\ /\ /\ /\ /\
| / V V V V \
+--------------------→ Time
Frequency-domain spectrum:
Magnitude
^
|
| █
| █
| █ █
| █ █ █
+--------------------→ Frequency
261 522 783
In simple terms, FFT answers this question:
What frequencies are contained in this sound, and how strong are they?
A piano C4 note has a fundamental near 261.6 Hz, but the actual sound also contains harmonics.
261.6 Hz Fundamental
523.2 Hz 2nd harmonic
784.8 Hz 3rd harmonic
1046 Hz 4th harmonic
FFT reveals these components.
FFT is excellent for finding frequency components. However, a single FFT is weak at explaining time-varying behavior.
| Question | Can a single FFT answer it? | Reason |
|---|---|---|
| Which frequencies are present? | Yes | This is the main strength of FFT. |
| How strong is each frequency? | Yes | Magnitude spectrum provides this information. |
| What is the approximate pitch? | Partly | The fundamental or harmonic pattern may suggest pitch. |
| When did the sound begin? | Not well | A single FFT loses detailed timing information. |
| How did each frequency decay? | Not well | Envelope tracking or frame-wise analysis is needed. |
| How sharp was the transient? | Not well | Phase and group delay may be needed. |
A decoded audio file usually contains real-number samples. These samples are not complex numbers.
Real audio samples:
0.12
0.08
-0.04
-0.11
...
However, FFT output is usually complex. Each frequency bin has a real part and an imaginary part.
FFT bin at 440 Hz:
Real part = cosine-like component
Imaginary part = sine-like component
This happens because a frequency component can have the same frequency but a different starting position. Real and imaginary parts together store both frequency strength and timing position.
In practice, real and imaginary values are often converted into magnitude and phase.
| FFT information | Simple meaning | Audio meaning |
|---|---|---|
| Magnitude | How strong the frequency is | Pitch, harmonics, spectral balance |
| Phase | How the frequency is arranged in time | Attack, transient, spatial quality, reconstruction |
Most spectrum displays focus on magnitude because it is visually intuitive and strongly related to perceived loudness and harmonic content.
Phase is less intuitive, but it becomes important for transient-rich sounds, sound reconstruction, stereo/spatial audio, speaker measurement, and advanced signal processing.
Causal processing uses only past and present data. Non-causal processing may also use future data.
| Type | Data available | Example |
|---|---|---|
| Causal | Past and present only | Real-time EQ, live visualizer, hearing aid |
| Non-causal | Past, present, and future | Offline music analysis, full-file processing, editing software |
In real-time playback, future samples are not available. In offline file analysis, the entire audio file is available, so non-causal analysis can be used.
A normal spectrum asks:
What frequencies are present?
Power Spectral Density asks:
Where is the energy concentrated?
Example:
Bass 58%
Mid 31%
Treble 11%
This is useful for understanding tonal balance, mix character, warmth, brightness, and spectral weight.
Auto-correlation compares a signal with a delayed version of itself.
Auto-correlation asks: after how much delay does the signal resemble itself again?
For a 440 Hz tone, the period is about 2.27 ms. Therefore, the auto-correlation tends to show a strong peak near 2.27 ms.
Period = 2.27 ms
Frequency = 1 / 0.00227
Frequency ≈ 440 Hz
Note ≈ A4
PSD describes periodicity and energy in the frequency domain. Auto-correlation describes periodicity in the time domain.
PSD:
Peak around 440 Hz
Auto-correlation:
Peak around 2.27 ms
Both:
A periodic sound close to A4
Section 3.1.3 asks a difficult but important question:
If all magnitude information is flattened, does phase still preserve sound structure?
Original:
440 Hz 100
880 Hz 50
1320 Hz 20
Flat magnitude:
440 Hz 1
880 Hz 1
1320 Hz 1
When all magnitudes are forced to be equal, the amplitude shape disappears. What remains is mainly phase information.
Phase contains information about how frequency components align in time. This alignment is especially important for drums, piano attacks, consonants in speech, and acoustic impacts.
Magnitude:
How strong is each frequency?
Phase:
How are the frequency components arranged in time?
Phase correlation describes whether neighboring frequency components have organized phase relationships.
Organized phase relation:
440 Hz 10°
441 Hz 11°
442 Hz 12°
443 Hz 13°
Disorganized phase relation:
440 Hz 10°
441 Hz -170°
442 Hz 85°
443 Hz -23°
Structured sounds such as instruments and voices may show more phase organization. Random noise tends to show weak phase organization.
If a ten-second music segment is analyzed with one FFT, the result may say:
Piano frequencies exist
Vocal frequencies exist
Drum frequencies exist
Guitar frequencies exist
Cymbal frequencies exist
The problem is that the result does not clearly show when each sound happened. A whole-file FFT is like an ingredient list. It shows what exists, but not the order of events.
Frame-wise Fourier Transform cuts the signal into short frames and performs FFT for each frame.
Frame 1: 0.00–0.02 sec → FFT
Frame 2: 0.02–0.04 sec → FFT
Frame 3: 0.04–0.06 sec → FFT
Frame 4: 0.06–0.08 sec → FFT
This makes it possible to know which frequency was active at which moment.
Frame-wise FT attaches time information to frequency information.
| Element | Meaning | Example | Effect |
|---|---|---|---|
| Frame size | Length of each analysis block | 1024, 2048, 4096 samples | Longer frames improve frequency resolution but reduce time resolution. |
| Window | A weighting shape applied to the frame | Hann, Hamming, triangular | Reduces boundary artifacts and spectral leakage. |
| Hop size | Distance between consecutive frames | 256, 512, 1024 samples | Smaller hop creates smoother time tracking. |
A spectrogram is formed by placing frame-wise spectra in time order.
Horizontal axis: Time
Vertical axis: Frequency
Brightness/color: Energy
It can reveal drum hits, vocal entry, chord changes, high-frequency decay, and rhythm structure.
FFT may provide many frequency bins. Sub-band filters group those bins into musically meaningful bands.
FFT view:
440 Hz
441 Hz
442 Hz
443 Hz
...
Sub-band view:
Bass
Mid
Treble
This is easier to understand and closer to how many audio tools are designed.
| Band | Frequency range | Musical meaning |
|---|---|---|
| Sub-bass | 20–60 Hz | Deep bass, club bass, sub kick |
| Bass | 60–250 Hz | Kick, bass guitar, warmth, weight |
| Low-mid | 250–500 Hz | Body, thickness, muddiness |
| Mid | 500 Hz–2 kHz | Voice, melody, instrument identity |
| Upper-mid | 2–4 kHz | Clarity, attack, presence |
| Presence | 4–6 kHz | Speech consonants, vocal presence |
| Brilliance | 6–12 kHz | Cymbals, sparkle, brightness |
| Air | 12–20 kHz | Air, space, high-end texture |
Sub-band processing is used in many real systems:
The main idea is simple: split sound into frequency regions, analyze or process each region, and then use the result for display, compression, enhancement, or reconstruction.
If sound is split into sub-bands, it should be possible to recombine those bands without unwanted damage. This is the idea of perfect reconstruction.
Original audio
↓
Analysis filter bank
↓
Sub-band signals
↓
Synthesis filter bank
↓
Reconstructed audio
Perfect reconstruction means that splitting and recombining should reproduce the original signal when no processing is applied.
Perfect reconstruction is especially important when the system changes the actual audio.
If reconstruction is imperfect, the sound may change even when no processing is intended.
A sine wave is the simplest periodic sound component.
Pure 440 Hz sine wave:
~~~~~~~
~~~~~~~
~~~~~~~
Real musical sounds are not pure sine waves. They contain many frequency components, and their amplitudes change over time.
In this context, amplitude modulation is especially important. It means that the amplitude of a sinusoidal component changes over time.
Before modulation:
~~~~~~~
~~~~~~~
~~~~~~~
After modulation:
~~~
~~~~~~
~~~~~~~~~~
~~~~~~
~~~
The fast inner wave is the frequency component. The outer shape is the envelope.
The waveform oscillates very quickly, but the perceived loudness movement follows a slower outer shape.
Waveform:
/\/\/\/\/\/\/\/\/\/\/\
Envelope:
/\
/ \
____/ \____
Envelope explains how a sound grows, sustains, decays, and disappears.
A piano and violin can play the same pitch, but they still sound different. One major reason is envelope shape.
Piano:
Fast attack, gradual decay
Violin:
Slow attack, long sustain
Drum:
Very fast attack, very fast decay
| Stage | Meaning | Simple explanation |
|---|---|---|
| Attack | Time to reach peak | How quickly the sound becomes loud |
| Decay | Drop after peak | How quickly the initial strength reduces |
| Sustain | Maintained level | How strongly the sound continues |
| Release | Fade after note ends | How the sound disappears |
A whole-envelope tracks total loudness. A narrow-band envelope tracks the loudness of a specific frequency band.
440 Hz envelope:
How the fundamental changes over time
880 Hz envelope:
How the second harmonic changes over time
1320 Hz envelope:
How the third harmonic changes over time
This helps explain why a sound becomes darker, brighter, softer, sharper, or more percussive over time.
Group delay is difficult at first because it comes from phase rather than magnitude. A simple interpretation is:
Group delay shows when groups of frequency components arrive.
Envelope explains how loudness changes. Group delay explains whether frequency components are temporally aligned.
A real sound usually contains many frequency components. These components often behave as a group.
Drum hit:
Low-frequency body
Mid-frequency punch
High-frequency snap
Noise component
If all components arrive together, the transient sounds sharp. If they arrive at different times, the transient may sound smeared.
| Target | What group delay explains | Practical meaning |
|---|---|---|
| Drums | Whether low, mid, and high components arrive together | Punch, snap, transient sharpness |
| Piano | Timing between hammer attack and harmonic body | Attack clarity |
| Speech consonants | Timing of short high-frequency components | Speech clarity |
| Speaker | Delay differences across frequency | Speaker tuning and response quality |
| Room acoustics | Frequency-dependent reflections | Room response and clarity |
When a signal is cut into frames, the beginning and end of each frame may be abruptly cut. This can distort analysis.
Original signal:
~~~~~~~~~~~~~~~
Hard-cut frame:
|~~~~~~~|
Windowing softens the edges of the frame.
Triangular window:
/\
/ \
/ \
___/ \___
The center of the frame is treated as most reliable. The edges are reduced because they may contain boundary effects.
Music changes continuously. A long-term auto-correlation over an entire song mixes many notes, instruments, and rhythms.
Short-term auto-correlation analyzes a short frame and assumes that the sound is relatively stable inside that frame.
Frame 1:
Find current pitch
Frame 2:
Find next pitch
Frame 3:
Find following pitch
| Method | Time range | Good for | Weakness |
|---|---|---|---|
| Short-term auto-correlation | Short frame | Current pitch, vocal note, melody tracking | Very low pitch may need a longer frame |
| Long-term auto-correlation | Long section or whole song | Tempo, beat cycle, repeating structure | Current pitch becomes unclear |
Auto-correlation can be represented with negative delay and positive delay.
Delay:
-5 -4 -3 -2 -1 0 +1 +2 +3 +4 +5
Because auto-correlation is typically symmetric, the negative side and positive side contain the same information.
R(-τ) = R(+τ)
For pitch detection, the positive side alone is usually enough.
One-side auto-correlation:
0 +1 +2 +3 +4 +5 ...
A power spectrum may contain many harmonic peaks. The smooth outline of those peaks is the spectral envelope.
Power spectrum:
440 Hz ██████████
880 Hz ██████
1320 Hz ███
1760 Hz ██
2200 Hz █
Spectral envelope:
The smooth outer contour of those peaks
Pitch tells which note it is. Spectral envelope helps explain what kind of sound it is.
| Analysis | Looks at | Musical meaning | Example output |
|---|---|---|---|
| Auto-correlation | Repeating period | Pitch | A4, 440 Hz |
| Spectral envelope | Overall contour of harmonic energy | Timbre | Piano-like, violin-like, voice-like |
| Technology | Related concepts | Practical result |
|---|---|---|
| Speech recognition | Frame-wise spectrum, envelope, spectral features | Speech sounds are analyzed over time. |
| Automatic captions | Time-frequency analysis | Speech is converted into text. |
| Music identification | Spectrogram, time-frequency fingerprint | A song can be identified from a short sample. |
| Auto-Tune | Short-term auto-correlation, pitch tracking | Vocal pitch can be corrected. |
| Noise reduction | Frame-wise spectrum, sub-band processing | Noisy time-frequency regions can be reduced. |
| MP3/AAC compression | Sub-band filters, perceptual analysis | File size is reduced by removing less audible information. |
| Hearing aids | Sub-band filters, envelope tracking | Specific frequency regions can be amplified. |
| Cochlear implants | Filter banks, envelope extraction | Frequency-band information can be converted into electrical stimulation. |
| Audio mixing | PSD, envelope, compression | Loudness, punch, and balance can be controlled. |
| Speaker tuning | Phase, group delay, frequency response | Timing clarity and response quality can be improved. |
The natural direction is to move from a simple FFT viewer toward a time-frequency audio analyzer.
Basic version:
Audio
↓
FFT
↓
Spectrum viewer
Expanded version:
Audio
↓
Frame-wise FFT
↓
Spectrogram
↓
Sub-band energy
↓
Band envelope
↓
Pitch timeline
↓
Spectral envelope and timbre panel
↓
Transient sharpness and group delay
↓
Perfect reconstruction processing
| Phase | Feature | Difficulty | User value | Purpose |
|---|---|---|---|---|
| Phase 1 | Frame-wise FFT and spectrogram | Medium | High | Show time-frequency structure. |
| Phase 2 | 3-band and 8-band energy view | Low to medium | High | Show bass, mid, and treble movement. |
| Phase 3 | Band envelope, attack, decay analysis | Medium | High | Explain instrument-like behavior. |
| Phase 4 | Pitch detector and pitch timeline | Medium | Very high | Track vocal and melody pitch. |
| Phase 5 | Spectral envelope and timbre panel | Medium to high | High | Explain tone color and harmonic contour. |
| Phase 6 | Transient sharpness and group delay view | High | Medium to high | Analyze punch, clarity, and phase alignment. |
| Phase 7 | Perfect reconstruction audio processing | High | Very high | Enable EQ, noise reduction, and band processing. |
Audio file
↓
Decode to PCM samples
↓
Frame-wise segmentation
↓
Apply window
↓
FFT
↓
Magnitude path:
Spectrum
PSD
Sub-band energy
Envelope
Spectral envelope
↓
Phase path:
Phase spectrum
Phase correlation
Group delay
Transient sharpness
↓
Auto-correlation path:
Short-term auto-correlation
Period detection
Pitch estimate
Pitch timeline
↓
nGeneMediaPlayer output:
Spectrogram
Band energy
Band envelope
Pitch timeline
Timbre panel
Transient sharpness
Educational visualization
FFT shows what frequencies exist. Frame-wise FT shows when those frequencies appear. Envelope shows how those frequencies grow and decay. Auto-correlation helps find pitch. Spectral envelope helps explain timbre. Group delay helps explain sharpness and timing alignment.
Chapter 3 is therefore not just a mathematical discussion of Fourier transform. It is a practical foundation for understanding how real music behaves as a time-varying signal. These ideas can transform nGeneMediaPlayer from a basic spectrum viewer into a meaningful educational and analytical platform for sound, music, speech, pitch, timbre, and transient behavior.
Mikio Tohyama의 Waveform Analysis of Sound Chapter 3는 시간에 따라 변하는 소리를 어떻게 분석할 것인가를 다루는 장으로 이해할 수 있습니다.
음악 파일은 단순히 “어떤 주파수가 들어 있는가”만으로 설명되지 않습니다. 피아노 소리는 강하게 시작한 뒤 점점 사라지고, 바이올린 소리는 천천히 커지면서 오래 유지될 수 있으며, 드럼 소리는 짧은 순간에 강하게 터졌다가 빠르게 사라집니다. 사람의 목소리도 음높이, 크기, 발음, 음색이 계속 변합니다.
Chapter 3의 핵심은 소리를 시간과 주파수 양쪽에서 동시에 이해하는 것입니다.
FFT 한 번은 특정 구간 안에 어떤 주파수가 있는지 알려줄 수 있습니다. 그러나 그 주파수가 언제 나타났는지, 얼마나 오래 유지되었는지, 어떻게 사라졌는지, 그리고 그 시간적 구조가 소리의 성격을 어떻게 만드는지는 충분히 설명하지 못합니다.
그래서 Chapter 3에서는 spectrum, power spectrum, frame-wise Fourier transform, sub-band filters, envelope, group delay, auto-correlation 같은 개념이 차례로 등장합니다. 모두 실제 음악 파일을 더 사람 귀에 가까운 방식으로 분석하기 위한 도구입니다.
전체 흐름은 다음과 같이 정리할 수 있습니다.
Waveform
↓
FFT
↓
Magnitude and phase spectrum
↓
Power spectral density and auto-correlation
↓
Frame-wise Fourier transform
↓
Sub-band filters
↓
Perfect reconstruction filters
↓
Sinusoidal modulation and envelope
↓
Group delay
↓
Triangular windowing and short-term auto-correlation
↓
Pitch, timbre, transient, and time-frequency analysis
각 단계는 소리에 대한 서로 다른 질문에 답합니다.
| 질문 | 주요 개념 | 쉬운 의미 | 음악적 의미 |
|---|---|---|---|
| 어떤 주파수가 있는가 | FFT, spectrum | 주파수 재료 | 음높이, 배음, tonal balance |
| 각 주파수가 얼마나 강한가 | Magnitude spectrum | 주파수의 세기 | 배음 균형과 기본적인 음색 |
| 주파수들이 시간적으로 어떻게 배열되어 있는가 | Phase spectrum | 시간적 배치 | Attack, transient, 공간감 |
| 에너지가 어디에 몰려 있는가 | Power spectral density | 에너지 분포 | 저음, 중음, 고음의 균형 |
| 신호가 얼마나 반복되는가 | Auto-correlation | 지연된 자기 자신과의 유사성 | Pitch와 주기성 |
| 주파수가 언제 나타나는가 | Frame-wise Fourier transform | 짧은 frame마다 FFT 반복 | Spectrogram, onset, rhythm, 보컬 진입 |
| 어느 주파수 대역이 활성화되는가 | Sub-band filters | 주파수 대역 나누기 | Bass, mid, treble, filter-bank 분석 |
| 나눈 대역을 다시 정확히 합칠 수 있는가 | Perfect reconstruction filters | 분해 후 손상 없이 재합성 | EQ, 코덱, 노이즈 제거, 음원 처리 |
| 각 주파수는 시간에 따라 어떻게 변하는가 | Envelope | 크기의 윤곽선 | Attack, decay, sustain, release, 음색 |
| 주파수 성분들의 묶음은 언제 도착하는가 | Group delay | 주파수 성분의 시간 정렬 | 드럼 타격감, 피아노 attack, 말소리 명료도 |
| 무슨 음이 연주되고 있는가 | Short-term auto-correlation | 반복 주기로 pitch 찾기 | 보컬 pitch, 멜로디, 튜닝 |
| 무슨 악기처럼 들리는가 | Spectral envelope | Power spectrum의 부드러운 윤곽 | Timbre, formant, 악기 정체성 |
디지털 오디오 신호는 샘플들의 나열입니다.
x[0], x[1], x[2], x[3], ...
예:
0.0012
0.0031
0.0054
-0.0022
...
Temporal은 시간적인이라는 뜻이고, sequence는 시간 순서대로 이어진 샘플들의 나열입니다. 따라서 temporal nature of sequence는 오디오 신호가 시간에 따라 어떻게 변하는지를 뜻합니다.
Temporal nature of sequence는 소리가 시간 속에서 어떻게 움직이고 변하는가를 뜻합니다.
이 개념은 실제 음악에서 매우 중요합니다. 같은 음높이라도 피아노, 바이올린, 드럼, 사람 목소리는 시간적 변화가 서로 다릅니다.
피아노:
강하게 시작하고 점점 감소
바이올린:
천천히 커지고 오래 유지
드럼:
순간적으로 터지고 빠르게 감소
사람 목소리:
음높이, 크기, 발음, 음색이 계속 변함
일반 envelope는 전체 소리의 크기 변화를 봅니다. 반면 narrow-band envelope는 특정 주파수 대역만 따로 보면서 그 대역의 크기가 시간에 따라 어떻게 변하는지 추적합니다.
전체 envelope:
전체 소리가 어떻게 커지고 작아지는가
Narrow-band envelope:
440 Hz 대역이 어떻게 변하는가
880 Hz 대역이 어떻게 변하는가
2 kHz 대역이 어떻게 변하는가
8 kHz 대역이 어떻게 변하는가
주파수 성분들은 모두 같은 속도로 사라지지 않습니다. 많은 악기에서 고주파 성분은 빨리 사라지고, 저주파 성분은 더 오래 남는 경우가 많습니다.
피아노 예시:
저주파 성분:
상대적으로 오래 지속
고주파 성분:
상대적으로 빠르게 감소
이 주파수별 decay 패턴은 음색을 결정하는 중요한 정보입니다.
Frame-wise spectrum은 음악 파일을 짧은 frame으로 자르고, 각 frame마다 FFT를 계산한 결과입니다.
Frame 1 → FFT → Spectrum 1
Frame 2 → FFT → Spectrum 2
Frame 3 → FFT → Spectrum 3
Frame 4 → FFT → Spectrum 4
이 spectrum들을 시간 순서대로 붙이면 spectrogram이 됩니다.
세로축: 주파수
가로축: 시간
밝기 또는 색: 에너지 크기
따라서 temporal nature of sequence → narrow-band envelope or frame-wise spectra라는 말은 시간에 따른 신호의 성질을 표현하는 대표적 방법으로 특정 주파수 대역의 envelope를 추적하거나, frame별 spectrum을 쌓아서 보는 방법이 있다는 뜻입니다.
FFT는 Fast Fourier Transform의 약자입니다. 시간축의 파형을 주파수축의 성분으로 바꾸는 도구입니다.
시간 파형:
진폭
^
|
| /\ /\ /\ /\ /\
| / V V V V \
+--------------------→ 시간
FFT 이후:
크기
^
|
| █
| █
| █ █
| █ █ █
+--------------------→ 주파수
261 522 783
쉽게 말하면 FFT는 다음 질문에 답합니다.
이 소리는 어떤 주파수들로 이루어져 있고, 각 주파수는 얼마나 강한가?
피아노의 중앙 도(C4)는 약 261.6 Hz 근처의 기본음을 가지지만, 실제 피아노 소리에는 여러 배음이 함께 들어 있습니다.
261.6 Hz 기본음
523.2 Hz 2배음
784.8 Hz 3배음
1046 Hz 4배음
FFT는 이런 성분들의 크기를 보여줍니다.
FFT는 주파수 성분을 찾는 데 매우 강력합니다. 그러나 FFT 한 번만으로는 시간에 따라 변하는 음악의 성격을 충분히 설명하기 어렵습니다.
| 질문 | FFT 한 번으로 가능한가 | 이유 |
|---|---|---|
| 어떤 주파수가 있는가 | 가능 | FFT의 가장 기본적인 역할입니다. |
| 각 주파수가 얼마나 강한가 | 가능 | Magnitude spectrum으로 확인할 수 있습니다. |
| 대략 어떤 음높이인가 | 어느 정도 가능 | 기본음이나 배음 구조로 추정할 수 있습니다. |
| 소리가 언제 시작되었는가 | 어려움 | FFT 한 번은 시간 정보를 자세히 보존하지 못합니다. |
| 각 주파수가 어떻게 사라지는가 | 어려움 | Envelope 추적이나 frame-wise 분석이 필요합니다. |
| 드럼의 타격감이 얼마나 선명한가 | 어려움 | Phase와 group delay 분석이 필요할 수 있습니다. |
WAV 파일이나 MP3를 디코딩한 PCM 데이터는 보통 실수 값의 나열입니다.
실제 오디오 샘플:
0.12
0.08
-0.04
-0.11
...
그러나 FFT 결과는 보통 복소수입니다. 각 주파수 bin에는 real part와 imaginary part가 있습니다.
440 Hz FFT bin:
Real part = cosine 성분에 가까움
Imaginary part = sine 성분에 가까움
같은 440 Hz라도 시작 위치가 다를 수 있습니다. Real과 imaginary는 이 세기와 위치 정보를 함께 담기 위해 필요합니다.
실제 분석에서는 real과 imaginary를 그대로 보기보다, magnitude와 phase로 바꾸어 해석하는 경우가 많습니다.
| FFT 정보 | 쉬운 의미 | 오디오에서의 의미 |
|---|---|---|
| Magnitude | 각 주파수가 얼마나 강한가 | 음높이, 배음, spectrum balance |
| Phase | 각 주파수가 시간적으로 어떻게 배열되어 있는가 | Attack, transient, 공간감, 재합성 |
보통 spectrum display는 magnitude를 중심으로 보여줍니다. Magnitude가 시각적으로 이해하기 쉽고, 사람이 느끼는 loudness와 배음 구조와 관련이 크기 때문입니다.
반면 phase는 직관적이지 않지만, 드럼의 타격감, 피아노 attack, 공간 음향, 스피커 측정, 오디오 재합성에서는 매우 중요합니다.
Causal processing은 과거와 현재 데이터만 사용합니다. Non-causal processing은 미래 데이터까지 사용할 수 있습니다.
| 구분 | 사용 가능한 데이터 | 예시 |
|---|---|---|
| Causal | 과거와 현재만 사용 | 실시간 EQ, 실시간 visualizer, 보청기 |
| Non-causal | 과거, 현재, 미래 모두 사용 가능 | 오프라인 음악 분석, 파일 전체 처리, 편집 프로그램 |
실시간 재생에서는 아직 재생되지 않은 미래 샘플을 볼 수 없습니다. 반면 파일 전체를 열어 놓고 분석하는 경우에는 미래 데이터까지 사용할 수 있습니다.
일반 spectrum은 다음 질문에 답합니다.
어떤 주파수가 있는가?
Power Spectral Density는 조금 다른 질문에 답합니다.
에너지가 어느 주파수 대역에 몰려 있는가?
예시:
Bass 58%
Mid 31%
Treble 11%
이 정보는 tonal balance, mix character, 따뜻함, 밝기, 저음의 무게감 등을 이해하는 데 도움이 됩니다.
Auto-correlation은 신호를 조금씩 시간 방향으로 밀어 보면서, 원래 신호와 얼마나 닮았는지 계산하는 방법입니다.
Auto-correlation은 “몇 ms 뒤에 이 소리가 자기 자신과 다시 비슷해지는가?”를 묻는 방법입니다.
440 Hz 소리의 주기는 약 2.27 ms입니다. 따라서 440 Hz에 가까운 신호는 약 2.27 ms 지점에서 auto-correlation peak가 나타납니다.
주기 = 2.27 ms
주파수 = 1 / 0.00227
주파수 ≈ 440 Hz
음이름 ≈ A4
PSD는 주파수 영역에서 에너지 분포를 봅니다. Auto-correlation은 시간 영역에서 반복성을 봅니다.
PSD:
440 Hz 근처 peak 발견
Auto-correlation:
2.27 ms 근처 반복 발견
둘 다:
A4에 가까운 주기적 소리를 설명
3.1.3은 다음 질문을 던집니다.
모든 magnitude 정보를 평평하게 만들고 phase만 남기면 소리의 구조가 얼마나 남을까?
원래 magnitude:
440 Hz 100
880 Hz 50
1320 Hz 20
Flat magnitude:
440 Hz 1
880 Hz 1
1320 Hz 1
모든 magnitude를 같게 만들면 주파수별 세기 정보는 사라집니다. 남는 것은 주로 phase 정보입니다.
Phase는 주파수 성분들이 시간적으로 어떻게 정렬되어 있는지를 담습니다. 특히 드럼, 피아노 attack, 말소리 자음, 충격음처럼 짧고 선명한 소리에서 중요합니다.
Magnitude:
각 주파수가 얼마나 강한가
Phase:
각 주파수 성분이 시간적으로 어떻게 배열되어 있는가
Phase correlation은 주변 주파수 성분들의 phase 관계가 얼마나 질서 있는지 보는 개념입니다.
질서 있는 phase 관계:
440 Hz 10°
441 Hz 11°
442 Hz 12°
443 Hz 13°
불규칙한 phase 관계:
440 Hz 10°
441 Hz -170°
442 Hz 85°
443 Hz -23°
악기나 사람 목소리는 어느 정도 구조화된 phase 관계를 보일 수 있고, 랜덤 noise는 phase 관계가 약하거나 불규칙한 경우가 많습니다.
10초짜리 음악에 FFT를 한 번만 적용하면 다음과 같은 정보를 얻을 수 있습니다.
피아노 주파수 있음
보컬 주파수 있음
드럼 주파수 있음
기타 주파수 있음
심벌 주파수 있음
그러나 이 정보만으로는 피아노가 언제 나왔는지, 보컬이 언제 들어왔는지, 드럼이 몇 초에 터졌는지 알기 어렵습니다.
전체 FFT는 재료 목록과 같습니다. 어떤 재료가 있는지는 알지만, 조리 순서는 알 수 없습니다.
Frame-wise Fourier Transform은 음악을 짧은 frame으로 나누고, 각 frame마다 FFT를 계산하는 방법입니다.
Frame 1: 0.00–0.02 sec → FFT
Frame 2: 0.02–0.04 sec → FFT
Frame 3: 0.04–0.06 sec → FFT
Frame 4: 0.06–0.08 sec → FFT
이렇게 하면 어떤 주파수가 어느 순간에 나타났는지 알 수 있습니다.
Frame-wise FT는 주파수 정보에 시간 정보를 붙이는 방법입니다.
| 요소 | 의미 | 예시 | 영향 |
|---|---|---|---|
| Frame size | 한 번에 분석할 구간 길이 | 1024, 2048, 4096 samples | 길수록 주파수 해상도는 좋아지지만 시간 해상도는 떨어집니다. |
| Window | Frame에 곱하는 가중 함수 | Hann, Hamming, triangular | 경계 왜곡과 spectral leakage를 줄입니다. |
| Hop size | 다음 frame으로 이동하는 간격 | 256, 512, 1024 samples | 작을수록 시간 변화가 더 부드럽게 추적됩니다. |
Spectrogram은 frame마다 얻은 spectrum을 시간 순서대로 배치한 것입니다.
가로축: 시간
세로축: 주파수
밝기 또는 색: 에너지 크기
이를 통해 드럼 hit, 보컬 진입, 코드 변화, 고주파 decay, 베이스 패턴, 리듬 구조 등을 볼 수 있습니다.
FFT는 많은 frequency bin을 보여줍니다. Sub-band filter는 이 bin들을 음악적으로 이해하기 쉬운 대역으로 묶습니다.
FFT 방식:
440 Hz
441 Hz
442 Hz
443 Hz
...
Sub-band 방식:
Bass
Mid
Treble
이 방식은 사람이 음악을 이해하는 방식과도 더 가깝고, 실제 오디오 도구의 구조와도 잘 맞습니다.
| Band | Frequency range | 음악적 의미 |
|---|---|---|
| Sub-bass | 20–60 Hz | 깊은 저음, club bass, sub kick |
| Bass | 60–250 Hz | 킥, 베이스, warmth, 무게감 |
| Low-mid | 250–500 Hz | 두께감, 탁함, 악기의 body |
| Mid | 500 Hz–2 kHz | 보컬, 멜로디, 악기 정체성 |
| Upper-mid | 2–4 kHz | 명료도, attack, presence |
| Presence | 4–6 kHz | 자음, 보컬 존재감 |
| Brilliance | 6–12 kHz | 심벌, sparkle, brightness |
| Air | 12–20 kHz | 공기감, 공간감, high-end texture |
Sub-band processing은 다음과 같은 실제 시스템에서 널리 사용됩니다.
기본 아이디어는 단순합니다. 소리를 주파수 대역별로 나누고, 각 대역을 분석하거나 처리한 뒤, 표시, 압축, 보정, 재합성에 활용합니다.
소리를 여러 sub-band로 나누었다면, 아무 처리도 하지 않았을 때 다시 합치면 원래 소리가 나와야 합니다. 이것이 perfect reconstruction의 핵심입니다.
Original audio
↓
Analysis filter bank
↓
Sub-band signals
↓
Synthesis filter bank
↓
Reconstructed audio
Perfect reconstruction은 분해와 재합성을 거쳐도 원본이 손상되지 않아야 한다는 조건입니다.
Perfect reconstruction은 실제 오디오를 바꾸는 기능에서 특히 중요합니다.
Reconstruction이 불완전하면, 아무 처리도 하지 않았는데 소리가 달라질 수 있습니다.
사인파는 가장 단순한 주기적 소리 성분입니다.
순수한 440 Hz 사인파:
~~~~~~~
~~~~~~~
~~~~~~~
실제 음악 소리는 순수 사인파 하나가 아닙니다. 여러 주파수 성분이 들어 있고, 각 성분의 크기가 시간에 따라 변합니다.
여기서는 amplitude modulation이 중요합니다. 이는 사인파의 크기가 시간에 따라 변하는 것을 뜻합니다.
변조 전:
~~~~~~~
~~~~~~~
~~~~~~~
변조 후:
~~~
~~~~~~
~~~~~~~~~~
~~~~~~
~~~
안쪽의 빠른 파동은 주파수 성분이고, 바깥쪽의 큰 윤곽선이 envelope입니다.
실제 파형은 매우 빠르게 진동하지만, 사람이 느끼는 크기 변화는 더 느린 바깥 윤곽에 가깝습니다.
Waveform:
/\/\/\/\/\/\/\/\/\/\/\
Envelope:
/\
/ \
____/ \____
Envelope는 소리가 어떻게 커지고, 유지되고, 감소하고, 사라지는지 설명합니다.
피아노와 바이올린이 같은 음높이를 연주해도 서로 다르게 들립니다. 그 중요한 이유 중 하나가 envelope의 차이입니다.
피아노:
빠른 attack, 점진적인 decay
바이올린:
느린 attack, 긴 sustain
드럼:
매우 빠른 attack, 매우 빠른 decay
| 단계 | 의미 | 쉬운 설명 |
|---|---|---|
| Attack | Peak까지 올라가는 시간 | 얼마나 빨리 커지는가 |
| Decay | Peak 이후 줄어드는 구간 | 처음 강한 소리가 얼마나 빨리 약해지는가 |
| Sustain | 유지되는 수준 | 소리가 얼마나 안정적으로 계속되는가 |
| Release | 음이 끝난 뒤 사라지는 구간 | 소리가 어떻게 없어지는가 |
전체 envelope는 전체 음량 변화를 추적합니다. Narrow-band envelope는 특정 주파수 대역의 크기 변화를 추적합니다.
440 Hz envelope:
기본음이 시간에 따라 어떻게 변하는가
880 Hz envelope:
2배음이 시간에 따라 어떻게 변하는가
1320 Hz envelope:
3배음이 시간에 따라 어떻게 변하는가
이 분석은 소리가 시간이 지나면서 어두워지는지, 밝아지는지, 부드러워지는지, 타격감이 강한지 이해하는 데 도움이 됩니다.
Group delay는 처음에는 어렵게 느껴질 수 있습니다. Magnitude가 아니라 phase에서 출발하기 때문입니다. 가장 쉬운 해석은 다음과 같습니다.
Group delay는 주파수 성분들의 묶음이 언제 도착하는지 보여줍니다.
Envelope는 소리 크기가 어떻게 변하는지 설명합니다. Group delay는 주파수 성분들이 시간적으로 얼마나 잘 정렬되어 있는지 설명합니다.
실제 소리는 하나의 주파수만으로 이루어지지 않습니다. 여러 주파수 성분이 하나의 묶음처럼 움직입니다.
드럼 hit:
저주파 body
중주파 punch
고주파 snap
noise 성분
이 성분들이 동시에 도착하면 transient가 선명합니다. 서로 다른 시간에 도착하면 소리가 퍼지고 흐려질 수 있습니다.
| 대상 | Group delay가 설명하는 것 | 실제 의미 |
|---|---|---|
| 드럼 | 저음, 중음, 고음이 함께 도착하는가 | Punch, snap, transient sharpness |
| 피아노 | Hammer attack과 배음 body의 시간 관계 | Attack 명료도 |
| 말소리 자음 | 짧은 고주파 성분의 시간 배열 | Speech clarity |
| 스피커 | 주파수별 delay 차이 | 스피커 튜닝과 응답 품질 |
| 방 음향 | 주파수별 반사와 울림 | Room response와 명료도 |
신호를 frame으로 자르면 frame의 시작과 끝이 갑자기 끊길 수 있습니다. 이 끊김은 분석 결과를 왜곡할 수 있습니다.
원래 신호:
~~~~~~~~~~~~~~~
그냥 자른 frame:
|~~~~~~~|
Windowing은 frame의 양 끝을 부드럽게 줄여 경계 문제를 완화합니다.
Triangular window:
/\
/ \
/ \
___/ \___
Frame 중앙은 가장 신뢰할 수 있는 부분으로 크게 반영하고, 양끝은 경계 영향이 있을 수 있으므로 작게 반영합니다.
음악은 계속 변합니다. 전체 곡에 대해 long-term auto-correlation을 계산하면 여러 음, 악기, 리듬이 섞입니다.
Short-term auto-correlation은 짧은 frame 안에서는 소리가 비교적 안정적이라고 보고, 현재 순간의 반복 주기를 찾습니다.
Frame 1:
현재 pitch 찾기
Frame 2:
다음 pitch 찾기
Frame 3:
그 다음 pitch 찾기
| 방법 | 시간 범위 | 잘하는 것 | 약점 |
|---|---|---|---|
| Short-term auto-correlation | 짧은 frame | 현재 pitch, 보컬 음정, 멜로디 추적 | 매우 낮은 pitch는 더 긴 frame이 필요할 수 있음 |
| Long-term auto-correlation | 긴 구간 또는 전체 곡 | Tempo, beat cycle, 반복 구조 | 현재 pitch는 흐려질 수 있음 |
Auto-correlation은 음수 delay와 양수 delay 양쪽으로 표현할 수 있습니다.
Delay:
-5 -4 -3 -2 -1 0 +1 +2 +3 +4 +5
Auto-correlation은 보통 대칭입니다.
R(-τ) = R(+τ)
따라서 pitch detection에서는 양수 delay 쪽만 보아도 충분한 경우가 많습니다.
One-side auto-correlation:
0 +1 +2 +3 +4 +5 ...
Power spectrum에는 여러 배음 peak가 나타날 수 있습니다. 그 peak들의 바깥 윤곽을 부드럽게 연결한 것이 spectral envelope입니다.
Power spectrum:
440 Hz ██████████
880 Hz ██████
1320 Hz ███
1760 Hz ██
2200 Hz █
Spectral envelope:
이 peak들의 부드러운 바깥 윤곽
Pitch는 무슨 음인지 알려주고, spectral envelope는 무슨 소리처럼 들리는지 설명합니다.
| 분석 | 보는 것 | 음악적 의미 | 예시 출력 |
|---|---|---|---|
| Auto-correlation | 반복 주기 | Pitch | A4, 440 Hz |
| Spectral envelope | 배음 에너지의 전체 윤곽 | Timbre | Piano-like, violin-like, voice-like |
| 기술 | 관련 개념 | 실제 결과 |
|---|---|---|
| 음성 인식 | Frame-wise spectrum, envelope, spectral features | 말소리를 시간에 따라 분석합니다. |
| 자동 자막 | Time-frequency analysis | 음성을 문자로 변환합니다. |
| 음악 인식 | Spectrogram, time-frequency fingerprint | 짧은 샘플로 곡을 찾습니다. |
| Auto-Tune | Short-term auto-correlation, pitch tracking | 보컬 음정을 보정합니다. |
| 노이즈 제거 | Frame-wise spectrum, sub-band processing | 잡음이 있는 시간-주파수 영역을 줄입니다. |
| MP3/AAC 압축 | Sub-band filters, perceptual analysis | 덜 들리는 정보를 줄여 파일 크기를 낮춥니다. |
| 보청기 | Sub-band filters, envelope tracking | 필요한 주파수 대역을 증폭합니다. |
| 인공와우 | Filter banks, envelope extraction | 주파수 대역 정보를 전기 자극으로 바꿉니다. |
| 오디오 믹싱 | PSD, envelope, compression | 음량, punch, balance를 조절합니다. |
| 스피커 튜닝 | Phase, group delay, frequency response | 시간 정렬과 응답 품질을 개선합니다. |
nGeneMediaPlayer의 자연스러운 확장 방향은 단순 FFT viewer에서 time-frequency audio analyzer로 발전하는 것입니다.
기본 버전:
Audio
↓
FFT
↓
Spectrum viewer
확장 버전:
Audio
↓
Frame-wise FFT
↓
Spectrogram
↓
Sub-band energy
↓
Band envelope
↓
Pitch timeline
↓
Spectral envelope and timbre panel
↓
Transient sharpness and group delay
↓
Perfect reconstruction processing
| Phase | 기능 | 난이도 | 사용자 가치 | 목적 |
|---|---|---|---|---|
| Phase 1 | Frame-wise FFT and spectrogram | Medium | High | 시간-주파수 구조를 보여줍니다. |
| Phase 2 | 3-band and 8-band energy view | Low to medium | High | 저음, 중음, 고음의 움직임을 보여줍니다. |
| Phase 3 | Band envelope, attack, decay analysis | Medium | High | 악기적인 성격을 설명합니다. |
| Phase 4 | Pitch detector and pitch timeline | Medium | Very high | 보컬과 멜로디의 pitch를 추적합니다. |
| Phase 5 | Spectral envelope and timbre panel | Medium to high | High | 음색과 배음 윤곽을 설명합니다. |
| Phase 6 | Transient sharpness and group delay view | High | Medium to high | 타격감, 명료도, phase 정렬을 분석합니다. |
| Phase 7 | Perfect reconstruction audio processing | High | Very high | EQ, 노이즈 제거, band processing을 가능하게 합니다. |
Audio file
↓
Decode to PCM samples
↓
Frame-wise segmentation
↓
Apply window
↓
FFT
↓
Magnitude path:
Spectrum
PSD
Sub-band energy
Envelope
Spectral envelope
↓
Phase path:
Phase spectrum
Phase correlation
Group delay
Transient sharpness
↓
Auto-correlation path:
Short-term auto-correlation
Period detection
Pitch estimate
Pitch timeline
↓
nGeneMediaPlayer output:
Spectrogram
Band energy
Band envelope
Pitch timeline
Timbre panel
Transient sharpness
Educational visualization
FFT는 어떤 주파수가 있는지 알려줍니다. Frame-wise FT는 그 주파수가 언제 나타났는지 알려줍니다. Envelope는 그 주파수가 어떻게 커지고 사라지는지 알려줍니다. Auto-correlation은 pitch를 찾는 데 도움이 됩니다. Spectral envelope는 timbre를 설명하는 데 도움이 됩니다. Group delay는 소리의 선명도와 시간 정렬을 설명합니다.
따라서 Chapter 3는 단순한 Fourier transform 수학 설명이 아니라, 실제 음악이 시간 속에서 어떻게 움직이는지를 이해하기 위한 실용적인 기초입니다. nGeneMediaPlayer에서는 이 개념들을 바탕으로 기본 spectrum viewer를 넘어 spectrogram, band envelope, pitch timeline, timbre panel, transient sharpness, perfect reconstruction processing까지 확장할 수 있습니다.
Written on June 12, 2026
Chapter 4 may be understood as a systematic discussion of how a sound source becomes a received signal after passing through a physical path. In ordinary room acoustics, that path is the room between a source and a microphone. In body auscultation, that path is not an air-filled room but a complex transmission route through tissue, chest wall, stethoscope chestpiece, tubing, sensor, and contact mechanics.
The central idea remains similar:
The received waveform is not the source waveform itself. It is the source waveform after it has passed through a sound path. That path changes the waveform in time, frequency, amplitude, envelope, and decay behavior.
This is precisely where Chapter 4 becomes relevant to ICA. ICA tries to recover hidden source signals from observed mixtures. However, in real acoustic situations, the observed signals are rarely simple instantaneous mixtures. They are usually filtered, delayed, attenuated, and reverberant mixtures.
A simple instantaneous ICA model is:
x(t) = A s(t)
A more realistic acoustic model is:
xm(t) = ∑n hmn(t) * sn(t)
Here, sn(t) is source n, xm(t) is receiver signal m, hmn(t) is the sound path from source n to receiver m, and * means convolution.
Chapter 4 is therefore not merely background room acoustics. It gives the physical meaning of the mixing filters hmn(t). Without this path concept, ICA can look like a purely mathematical method. With this path concept, ICA becomes an attempt to undo physical acoustic transmission.
ICA is often introduced with a simple model: several hidden sources are mixed, and several sensors observe different mixtures. The goal is to recover the hidden sources.
Chapter 4 explains what “mixed” means in an actual acoustic path. A sound does not simply appear at the receiver with a different amplitude. It arrives through direct transmission, reflected components, frequency-dependent filtering, distance-dependent attenuation, envelope deformation, and decay.
Therefore, Chapter 4 may be read as a physical description of how the ICA mixing matrix or mixing filter is created.
The impulse response is the time-domain fingerprint of a sound path. If a very short sound is emitted, the received signal shows how the path responds over time.
In ICA terms, the impulse response is not a small detail. It is the mixing filter itself.
For one source and one receiver:
x(t) = h(t) * s(t)
For two sources and two receivers:
x1(t) = h11(t) * s1(t) + h12(t) * s2(t)
x2(t) = h21(t) * s1(t) + h22(t) * s2(t)
This is the essential bridge between Chapter 4 and acoustic ICA.
The same path can be described in the frequency domain. The impulse response h(t) becomes the frequency response H(f).
In frequency-domain ICA:
X(f, k) = H(f) S(f, k)
Here, f is frequency and k is time frame. This expression means that the mixing relationship can be different at each frequency. A source may be strong in one channel at low frequency but less dominant at another frequency. This is especially important for heart and lung sounds because their useful frequency regions overlap but are not identical.
In a simple ICA model, the current observation is a mixture of current source values. In a reverberant acoustic model, the current observation also contains delayed traces of previous source values.
This means:
current microphone signal = current sources + delayed past sources
This delayed memory makes acoustic ICA more difficult than ordinary instantaneous ICA. The algorithm must not only unmix sources; it must also deal with filtering and temporal smearing.
Auto-correlation compares a signal with delayed versions of itself. Chapter 4 uses auto-correlation because reflections, periodic source events, and path-induced delay structures leave traces in the received waveform.
In ICA, auto-correlation is useful but should not be confused with independence. Auto-correlation is a second-order time-structure measure. ICA usually seeks stronger statistical separation between sources. Nevertheless, auto-correlation can help reveal delay, periodicity, and room or path memory.
A source can be dominant in a receiver not only because its waveform amplitude is larger, but because its envelope energy, spectral energy, and narrow-band energy are stronger at that receiver.
In practical source separation, this dominance is valuable. A receiver where source A is dominant and another receiver where source B is dominant create a favorable observation structure. The two sensors provide different mixtures rather than nearly identical copies.
Reverberation decay means that acoustic energy does not stop immediately. It remains for a while and gradually dies away. In body auscultation, the analogous issue is not a large room reverberation tail, but lingering mechanical vibration, tissue transmission, sensor resonance, and damping.
Longer decay causes overlap between successive events. For example, a previous heart sound component may still be decaying while a lung sound component is present. This creates temporal smearing and makes separation harder.
| Chapter 4 concept | Acoustic meaning | ICA interpretation | Why it matters |
|---|---|---|---|
| Impulse response | How a path responds to a short sound | Convolutive mixing filter hmn(t) |
Defines how each source reaches each receiver |
| Frequency characteristics | How the path changes each frequency | Frequency-dependent mixing Hmn(f) |
Separation may differ by frequency band |
| Direct sound | Shortest and earliest arrival | Strong source-specific component | Improves source dominance and separation stability |
| Early reflection | Delayed early copies | Short-delay convolutive mixing | Can create spectral coloration and short-term interference |
| Auto-correlation | Similarity with delayed self | Second-order clue about periodicity or delay | Helps distinguish path memory from source rhythm, if interpreted carefully |
| Frame-wise analysis | Short-time local analysis | Local stationarity assumption for ICA, IVA, or time-frequency methods | Required because acoustic signals change over time |
| Envelope energy | Time-varying amplitude strength | Source activity cue or soft mask cue | Helps identify when one source dominates |
| Spectral energy | Energy distribution over frequency | Frequency-band separation cue | Heart and lung sounds have different spectral tendencies |
| Narrow-band envelope | Envelope inside a specific frequency band | Band-specific source activity cue | Useful when sources overlap in full-band waveform |
| Reverberation decay | Energy tail after excitation | Temporal smearing of source activity | Longer decay usually makes separation more difficult |
It may be tempting to say that ICA separates source signals. More precisely, ICA separates sources from observations that have already been shaped by transmission paths.
The observed signal is not a neutral recording of the source. The observation includes the source, the path, the receiver, and any surrounding noise or interference.
Therefore, an ICA result is strongly affected by sensor placement, path difference, frequency response, and reverberation-like decay.
ICA works best when each sensor observes a sufficiently different mixture of the sources. If two receivers observe nearly the same mixture, there is little information available for separation.
In linear algebra terms, the mixing matrix should not be nearly singular. In acoustic terms, the two receivers should have different source dominance patterns.
This point becomes central in the dual-stethoscope case. One stethoscope at a heart-dominant position and one stethoscope at a lung-dominant position create a more favorable pair of observations than two stethoscopes placed at nearly identical locations.
Chapter 4 repeatedly discusses distance because distance changes the relative strength of direct and reflected components. In body auscultation, “distance” should be interpreted broadly. It includes anatomical distance, tissue path, contact location, stethoscope coupling, orientation, and source-to-receiver mechanical transmission.
A receiver close to the heart region tends to capture stronger cardiac components. A receiver positioned over a lung-dominant region tends to capture stronger respiratory components. These different dominance patterns are exactly the kind of diversity that source separation benefits from.
Chapter 4 describes frequency characteristics because sound paths are frequency-dependent. This means the mixing relationship may differ across frequency.
For heart and lung sounds, this is important because cardiac sounds are often more pulse-like and lower-frequency dominant, while lung sounds are often more noise-like and broadly distributed across breathing-related frequency regions. Their spectra overlap, but their spectral envelopes and temporal envelopes often differ.
Frequency-domain ICA, independent vector analysis, time-frequency masking, or model-based separation methods can exploit these differences better than a purely time-domain amplitude comparison.
Auto-correlation can reveal repeated structure, but repeated structure may have several causes. A peak may come from cardiac periodicity, respiratory modulation, mechanical resonance, a delayed transmission path, or a combination of these.
Therefore, auto-correlation is useful as a diagnostic feature for signal structure, but not sufficient alone to prove source separation.
Raw heart and lung waveforms can overlap in time. Their envelopes, however, often show different activity patterns. Heart sounds appear as beat-synchronous transient energy. Lung sounds often appear as breath-phase-dependent, more continuous energy.
Narrow-band envelopes are especially useful because one source may dominate in one frequency region while another dominates elsewhere.
Chapter 4 mainly discusses sound paths in rooms. Body auscultation has a different physical medium. Sound travels through biological tissue, chest wall, airways, fluids, bones, and the mechanical structure of the stethoscope.
Therefore, the analogy should be used carefully. The body is not a room, and a stethoscope is not a free-field microphone. However, the system-theoretic idea is still highly useful:
source → path → receiver
This model remains valid as a conceptual foundation.
In room acoustics, the path is often the air and room boundaries. In auscultation, the path includes:
Thus, the impulse response is not only “inside the body.” It is the complete source-to-sensor path.
In room acoustics, direct sound means the shortest air path. In body auscultation, an analogous concept is the most strongly coupled anatomical path from source to receiver.
At a heart-dominant auscultation position, the cardiac source has a stronger direct-like coupling to the stethoscope. At a lung-dominant position, the respiratory source has a stronger direct-like coupling to the stethoscope.
Biological tissue and stethoscope hardware can create delayed, filtered, and decaying components. These should not necessarily be described as room reverberation in the strict sense. A more careful description is path memory: delayed transmission, mechanical resonance, damping, and energy decay.
For ICA, the exact physical label is less important than the signal consequence: the observed waveform contains filtered and delayed versions of source activity.
Consider two simultaneous electronic stethoscope recordings:
This is a very meaningful setup for ICA because it provides two different observations of two partially overlapping physiological sources.
Let:
sH(t) = heart sound source
sL(t) = lung sound source
xC(t) = signal from the cardiac-dominant stethoscope
xP(t) = signal from the pulmonary-dominant stethoscope
A realistic simplified model is:
xC(t) = hCH(t) * sH(t) + hCL(t) * sL(t) + nC(t)
xP(t) = hPH(t) * sH(t) + hPL(t) * sL(t) + nP(t)
Here, hCH(t) is the path from heart source to cardiac-dominant stethoscope, hCL(t) is the path from lung source to cardiac-dominant stethoscope, hPH(t) is the path from heart source to pulmonary-dominant stethoscope, and hPL(t) is the path from lung source to pulmonary-dominant stethoscope.
The setup is favorable because the two receivers are expected to have different dominance patterns:
At the cardiac-dominant stethoscope:
|hCH| > |hCL|
At the pulmonary-dominant stethoscope:
|hPL| > |hPH|
This creates a useful contrast between the two observation channels. In practical source separation, this is similar to having one microphone close to speaker A and another microphone close to speaker B.
The two stethoscopes should record simultaneously because heart and lung sounds are time-varying physiological signals. If recordings are taken at different times, the source activity changes, and the mixture model becomes much weaker.
Simultaneous acquisition allows the two channels to observe the same hidden source events through different paths. This is the basis for meaningful two-channel separation.
| Chapter 4 idea | Dual-stethoscope interpretation | Separation implication |
|---|---|---|
| Impulse response | Each organ-to-stethoscope route has its own transfer path | The heart and lung sources are mixed through four path filters |
| Frequency characteristics | Heart and lung sounds are filtered differently by body position and stethoscope mechanics | Frequency-domain separation or band-wise analysis becomes useful |
| Direct sound | Heart-dominant site has stronger cardiac coupling; lung-dominant site has stronger pulmonary coupling | Different dominance patterns improve identifiability |
| Early reflection | Tissue transmission, mechanical coupling, and local resonance create delayed or smeared components | The mixture is closer to convolutive ICA than simple instantaneous ICA |
| Auto-correlation | Heart rhythm, breath modulation, and path memory all create delayed self-similarity | Useful but ambiguous; peaks must be interpreted carefully |
| Frame-wise analysis | Heart and lung dominance changes over cardiac and respiratory cycles | Short-time processing is more appropriate than one whole-recording analysis |
| Envelope energy | Heart has beat-synchronous transient envelopes; lung has breath-phase envelopes | Envelope-based masks can assist separation |
| Narrow-band envelope | Different bands may favor cardiac or pulmonary information | Band-specific separation can reduce full-band confusion |
| Decay curve | Body and stethoscope path may create lingering energy after source events | Longer decay causes smearing and cross-contamination |
Heart sounds are often transient, rhythmical, and beat-synchronous. They tend to have strong temporal landmarks, such as the main heart sound events. Their envelope often appears as short bursts repeating with the cardiac cycle.
From a signal-processing perspective, heart sound is not continuous stationary noise. It is event-like, structured, and quasi-periodic.
Lung sounds are often more continuous over inspiration and expiration. They may be noise-like, breath-phase-dependent, and strongly amplitude-modulated by respiratory flow.
From a signal-processing perspective, lung sound is often more broadband and envelope-driven over longer respiratory intervals.
Heart and lung sounds differ in several useful ways:
These differences support separation. ICA can use statistical independence, while additional methods can use envelope, spectral, and temporal structure.
Separation is still difficult for several reasons:
Therefore, pure blind ICA may not be sufficient by itself. A more reliable system may combine ICA with physiological priors, time-frequency masking, envelope tracking, or supervised models.
In the ideal two-source case, a good observation pair may look like this:
xC(t): strong heart + weak lung
xP(t): weak heart + strong lung
This is favorable because the two rows of the mixing system are different. The two channels are not redundant.
A heart-dominant channel can act as a natural anchor for the cardiac component. A lung-dominant channel can act as a natural anchor for the pulmonary component.
This does not guarantee perfect separation, but it gives the algorithm a physically meaningful structure. The desired output is not arbitrary; one separated component should resemble the heart-dominant channel in beat-related regions, while another should resemble the lung-dominant channel in breath-related regions.
Pure ICA outputs often have scale and order ambiguity. The algorithm may return separated components without clear labels. With a heart-dominant and lung-dominant sensor, labeling becomes more interpretable.
The component with stronger beat-synchronous transient structure and stronger relation to the cardiac-dominant channel can be interpreted as the cardiac component. The component with stronger breath-phase envelope and stronger relation to the lung-dominant channel can be interpreted as the pulmonary component.
Chapter 4 repeatedly shows that distance and path affect received sound. The proposed setup intentionally uses distance and path difference as useful information.
Rather than treating path differences as an inconvenience, this design uses them as source-separation cues.
In the dual-stethoscope case, there are four important impulse responses:
hCH(t): heart to cardiac-dominant stethoscopehCL(t): lung to cardiac-dominant stethoscopehPH(t): heart to pulmonary-dominant stethoscopehPL(t): lung to pulmonary-dominant stethoscope
The goal of separation is easier when hCH(t) and hPL(t) are relatively strong, while hCL(t) and hPH(t) are relatively weaker.
Frequency characteristics are equally important. A stethoscope position may not simply make heart sound louder. It may also emphasize certain cardiac frequency components. Likewise, a lung-dominant position may emphasize respiratory spectral regions. Thus, separation should not rely only on full-band amplitude.
In room acoustics, direct sound is followed by early reflections. In body auscultation, the analogous idea is that a dominant anatomical transmission path is followed by weaker delayed or filtered components through surrounding tissues and instrument mechanics.
At the cardiac-dominant site, heart sound has a stronger direct-like component. Lung sound may arrive as a weaker, more filtered, more diffuse component. At the lung-dominant site, the reverse is expected.
This is beneficial for ICA because the two channels contain different mixtures.
In heart-lung auscultation, auto-correlation can reveal several structures:
The main caution is that auto-correlation peaks are not automatically “reflections.” In a heart recording, a peak may simply represent the repeated cardiac cycle. In a lung recording, slower envelope correlation may represent respiratory phase. Therefore, auto-correlation should be interpreted together with time-frequency and envelope information.
Heart and lung mixture signals should be examined both temporally and spectrally.
In the time domain, cardiac events appear as transient peaks, while lung sound appears as broader breath-phase activity. In the frequency domain, the relative energy distribution may show regions where heart is more dominant, regions where lung is more dominant, and regions where the two overlap.
This directly supports time-frequency separation. A mask can be designed or learned so that time-frequency regions dominated by heart activity are assigned to the cardiac component, while regions dominated by lung activity are assigned to the pulmonary component.
Heart-lung recordings are nonstationary. A long recording contains cardiac cycles, inspiration, expiration, pauses, motion noise, and changing contact conditions. Therefore, whole-recording analysis is usually too crude.
Frame-wise analysis asks what is happening in each short segment. A short frame around a heart sound may show strong transient and beat-related structure. A short frame during inspiration may show lung-dominant noise-like structure. A short frame during silence may mainly contain background or contact noise.
This is highly relevant to ICA because the mixture statistics may change from frame to frame. A separation method that respects local time structure can perform better than one global model.
This subsection is central for the proposed setup. The cardiac-dominant stethoscope and the pulmonary-dominant stethoscope are intentionally placed at different effective distances from the two sources.
The cardiac-dominant receiver has a shorter or stronger effective path from the heart source. The pulmonary-dominant receiver has a shorter or stronger effective path from the lung source. The word “distance” should be understood physiologically and mechanically, not only geometrically.
The result is a useful asymmetry:
cardiac site: heart-dominant mixture
pulmonary site: lung-dominant mixture
In the dual-stethoscope model, each source-to-stethoscope path has its own impulse response. Changing stethoscope position changes these impulse responses.
The auto-correlation of an impulse response can indicate how concentrated or spread out the path is. A strong, concentrated path suggests a clearer direct-like component. A more spread-out path suggests greater smearing, diffusion, or resonance.
For separation, a concentrated heart-to-cardiac path and a concentrated lung-to-pulmonary path are helpful. Highly smeared cross-paths may increase leakage between separated components.
Envelope energy may be one of the most practically useful concepts for heart-lung separation.
The cardiac-dominant signal should show strong beat-synchronous envelope peaks. The pulmonary-dominant signal should show stronger respiratory-phase envelope energy. These envelope differences can be used to estimate which source dominates each time region.
Narrow-band envelope is even more useful. A band where cardiac events dominate can provide a cardiac activity cue. A band where respiratory energy dominates can provide a lung activity cue. The full-band waveform may look confusing, but band-wise envelopes can reveal clearer structure.
In body auscultation, “reverberation” should be interpreted carefully. The chest is not a room. Still, the received signal may show decay after an acoustic event because of tissue damping, mechanical resonance, and stethoscope response.
For a heart sound transient, a short decay is desirable because it preserves temporal clarity. A longer decay can smear into the following lung sound or into the next part of the cardiac cycle.
From an ICA perspective, decay means memory. If the path has long memory, the current observation includes past source activity. This makes separation more difficult.
Distance and coupling affect the observed decay curve. A source close to a receiver may show a strong initial component and a relatively clearer decay. A source farther away may appear weaker, more diffuse, and more dominated by transmitted or resonant tail components.
In the proposed setup, the heart-dominant stethoscope should ideally show a clearer cardiac onset and decay, while the lung-dominant stethoscope should ideally show clearer respiratory envelope behavior. These differences help both separation and interpretation.
If the path delays and filter effects are small enough within the frequency region of interest, the two-channel stethoscope signals may be approximated as:
xC(t) = aCHsH(t) + aCLsL(t)
xP(t) = aPHsH(t) + aPLsL(t)
This is the simplest ICA setting. It may be useful as a baseline.
In reality, each path has frequency response, delay, damping, and resonance. Thus, a more realistic model is:
xC(t) = hCH(t) * sH(t) + hCL(t) * sL(t)
xP(t) = hPH(t) * sH(t) + hPL(t) * sL(t)
This is closer to the Chapter 4 viewpoint. Separation then becomes a convolutive blind source separation problem.
By moving to the frequency domain:
XC(f, k) = HCH(f)SH(f, k) + HCL(f)SL(f, k)
XP(f, k) = HPH(f)SH(f, k) + HPL(f)SL(f, k)
This makes it possible to separate sources differently across frequency bands. However, it also introduces practical issues such as frequency-wise permutation ambiguity and scale ambiguity.
A reasonable practical strategy is often hierarchical:
| Condition | Why it helps | Chapter 4 connection |
|---|---|---|
| Strong heart dominance in one channel | Provides an anchor for cardiac source activity | Direct sound and distance effect |
| Strong lung dominance in the other channel | Provides an anchor for pulmonary source activity | Direct-to-reverberant or direct-to-diffuse balance |
| Synchronized recordings | Ensures both channels observe the same source events | Transmission sound analysis |
| Stable contact pressure | Keeps path impulse responses more stable | Impulse response stability |
| Distinct envelope patterns | Helps identify heart-active and lung-active regions | Envelope energy and frame-wise analysis |
| Distinct spectral tendencies | Helps time-frequency separation | Frequency characteristics and spectral energy |
| Short path decay | Reduces smearing of past events | Reverberation decay |
| Low movement artifact | Prevents non-source noise from dominating ICA | Observed transmission sound quality |
| Problem | Signal-processing consequence | Practical result |
|---|---|---|
| Two channels have similar heart/lung ratios | Mixing matrix becomes poorly conditioned | ICA becomes unstable or ineffective |
| One source is much weaker than the other in both channels | Low source observability | The weak source may not be recoverable |
| Strong contact noise | Additional source violates two-source model | Separated components may contain artifacts |
| Long mechanical decay | Past activity overlaps with current activity | Convolutive separation becomes harder |
| Changing stethoscope pressure | Time-varying impulse response | Fixed mixing model becomes invalid |
| Heart and lung sounds overlap heavily in time-frequency regions | Low separability in those regions | Residual leakage remains after separation |
| Unsynchronized devices | Phase and timing relationship becomes unreliable | Two-channel separation assumptions weaken |
The two stethoscopes should be synchronized as closely as possible. Sampling rate, device delay, gain, and filtering should be controlled or estimated. Without synchronization, time-domain and frequency-domain relationships between channels become unreliable.
Before applying ICA, it is useful to confirm that the cardiac-dominant channel actually has stronger cardiac envelope features and that the pulmonary-dominant channel actually has stronger respiratory envelope features.
This step corresponds directly to Chapter 4 distance and envelope-energy logic.
Short-time Fourier transform, narrow-band envelopes, and frame-wise auto-correlation can be used to inspect local signal behavior.
The purpose is to determine where heart dominates, where lung dominates, where both overlap, and where artifacts dominate.
Possible methods include instantaneous ICA, frequency-domain ICA, independent vector analysis, nonnegative matrix factorization, time-frequency masking, or supervised neural separation. The best choice depends on data amount, noise level, synchronization quality, and validation target.
Pure ICA is conceptually elegant but may not be sufficient when the path is strongly convolutive or when additional sources are present.
A separated cardiac component should show beat-synchronous structure and reduced respiratory contamination. A separated pulmonary component should show breath-phase structure and reduced cardiac contamination.
Validation should include waveform inspection, spectrogram inspection, envelope analysis, cross-channel leakage analysis, and domain-specific review. For clinical use, further formal validation is necessary.
A heart-dominant stethoscope and a lung-dominant stethoscope create two different acoustic mixtures of the same hidden physiological sources. Chapter 4 explains why those mixtures are different: each source reaches each receiver through a different path with its own impulse response, frequency response, envelope-energy pattern, and decay behavior. ICA becomes meaningful precisely because these two receivers observe different path-shaped versions of the heart and lung sources.
In other words, the proposed setup is not merely “two recordings.” It is a physically structured two-channel mixture system. The cardiac-dominant receiver provides a heart-biased observation, and the pulmonary-dominant receiver provides a lung-biased observation. This creates the contrast required for source separation.
Chapter 4 also explains the limitations. If the body and stethoscope paths introduce strong filtering, resonance, delay, and decay, the mixture is convolutive rather than instantaneous. In that case, simple ICA may be an incomplete model. Frequency-domain ICA, IVA, band-wise envelope analysis, or hybrid model-based separation may be more appropriate.
The following graphs are conceptual illustrations. They are not clinical measurements and should not be interpreted as diagnostic thresholds. Their purpose is to visualize how Chapter 4 concepts connect with dual-stethoscope heart-lung separation.
A useful dual-channel setup gives different mixtures. The cardiac-dominant stethoscope has stronger heart contribution, while the pulmonary-dominant stethoscope has stronger lung contribution.
Heart and lung sounds may overlap in frequency, but their spectral energy tendencies can differ. This is why narrow-band and frequency-domain analysis can be helpful.
Heart activity often appears as short repeated envelope peaks. Lung activity often appears as broader breath-phase envelope energy. These differences can support source separation or time-frequency masking.
A source with a strong direct-like path may show a sharper initial response. A more distant or more diffuse path may show weaker initial energy and more persistent tail behavior.
Chapter 4 gives the physical acoustic foundation for understanding ICA in real sound environments. It explains that the receiver does not capture pure sources, but path-shaped mixtures. Impulse response, frequency characteristics, direct sound, early reflection, auto-correlation, envelope energy, spectral energy, narrow-band envelope, and reverberation decay all describe how the path modifies the source.
For the dual-stethoscope heart-lung case, this framework is particularly useful. The heart-dominant stethoscope and lung-dominant stethoscope create two different observations of the same hidden sources. This difference is not a nuisance; it is the essential information that makes separation possible.
The most important practical insight is that sensor placement is part of the separation algorithm. A good placement creates a favorable mixing structure before any computation begins. A poor placement gives two nearly redundant mixtures, and even a sophisticated ICA method may struggle.
Therefore, Chapter 4 suggests the following interpretation:
Successful heart-lung separation is not only a matter of choosing an ICA algorithm. It is also a matter of designing the sound paths: where the stethoscopes are placed, how stable the contact is, how different the mixtures are, how frequency responses behave, and how much path memory or decay is present.
Written on June 18, 2026
Sections 4.1.1 to 4.1.4 may be understood as an explanation of how a room changes a sound waveform before the sound reaches a listener or a microphone. The central point is simple but important: a room is not an empty passage. A room behaves like an acoustic filter.
Core idea: the original source sound is transformed by the sound path. In the time domain, this transformation appears as direct sound, delay, reflection, and reverberation. In the frequency domain, the same transformation appears as amplification, attenuation, phase shift, and spectral coloration.
In relation to ICA, this part is highly relevant because real acoustic mixing is usually not a simple instantaneous mixture. In a room, each source reaches each microphone through a path with delay, reflection, and filtering. Therefore, the sound path becomes a convolutive mixing filter.
A simplified expression is:
x(t) = s(t) * h(t)
Here, s(t) is the original source sound, h(t) is the impulse response of the sound path, * means convolution, and x(t) is the sound observed at the microphone.
| Section | Main question | Main idea | Practical meaning |
|---|---|---|---|
| 4.1.1 Impulse response and frequency characteristics | What does the sound path do to a sound? | The room can be described by its time response and frequency response. | A clap, speech signal, or music signal is reshaped by the room before reaching the microphone. |
| 4.1.2 Direct and early reflected sounds | What reaches the microphone first? | The direct sound arrives first, followed by early reflections from walls, ceiling, floor, or nearby objects. | Early reflections affect clarity, loudness, localization, and timbre. |
| 4.1.3 Auto-correlation of direct sound followed by a single reflection | How can the delay structure of reflection be detected? | Auto-correlation compares a signal with delayed versions of itself. Reflections can appear as additional peaks. | Echo delay, reflection timing, and repeated waveform structure can be estimated. |
| 4.1.4 Temporal and spectral representation of transmission sound | How can the same reflected sound be represented? | In time, reflection appears as delay. In frequency, reflection appears as spectral ripples or comb filtering. | The same room effect can be analyzed either as time-domain echo or frequency-domain coloration. |
This section explains how a sound path can be characterized. A sound path means the route from a source to a receiver. In a room, that route includes the direct path, wall reflections, ceiling reflections, floor reflections, and later reverberation.
The important point is that the room has a repeatable acoustic behavior when the source position, receiver position, and room condition remain fixed. That repeatable behavior can be described by an impulse response.
An impulse response is the output obtained when a very short sound is emitted. A hand clap, balloon pop, or short pulse can be used as an intuitive example.
In a perfectly non-reflective space, the microphone would receive only one short event. In a normal room, however, the microphone receives the direct sound first and then receives delayed and weakened copies caused by reflection.
Therefore, impulse response is related because it shows the sound path directly in the time domain. It reveals when sound energy arrives, how strong each arrival is, and how long the room continues to respond after the original sound has stopped.
The situation is a fixed acoustic setting: one source position, one receiver or microphone position, and one room condition. For example, a person speaks in a hospital room, and a microphone records the speech near the bed. The microphone does not receive only the clean voice. It receives the voice after the room has delayed, attenuated, reflected, and filtered it.
The impulse response is not only about claps or artificial test sounds. A clap is merely a convenient way to reveal the room response. Once the room response is known, the same response helps explain how speech, music, coughing sounds, breathing sounds, or medical acoustic signals are changed by that room.
Frequency characteristics are mentioned because the same sound path can be described in the frequency domain. The impulse response h(t) describes the path over time. Its Fourier transform H(f) describes how the path treats each frequency.
Some frequencies may be strengthened, some may be weakened, and some may be phase-shifted. This is why the same voice can sound clear in one room, muffled in another room, and hollow in a bathroom.
In other words, impulse response and frequency characteristics are not separate topics. They are two views of the same acoustic system.
h(t) describes the sound path in time.
H(f) describes the sound path in frequency.
Direct sound is the sound that travels from the source to the receiver along the shortest path, without reflection. It arrives first because it travels the shortest distance.
In a room recording, direct sound is usually the most important component for intelligibility and localization. It gives the clearest information about where the sound source is and what the sound source produced.
Early reflected sound is the sound that reaches the receiver shortly after the direct sound, after reflecting once or a few times from nearby surfaces. Common reflection surfaces include walls, ceiling, floor, table, window, monitor, bed rail, or medical equipment.
Early reflections are not yet dense reverberation. They are still individual delayed copies that may be understood as distinct sound arrivals.
Early reflections can be helpful or harmful depending on timing and strength. A small amount of early reflection can make sound feel fuller and louder. Strong or delayed early reflections can blur speech, disturb localization, and create coloration.
For microphone recordings, early reflections are especially important. The microphone records them as part of the signal, even if the listener does not consciously notice each reflection.
In a small hospital room, a patient voice may reach a bedside microphone directly. A few milliseconds later, the same voice may arrive again after bouncing from a wall, a window, or a medical cart. The microphone signal is therefore not just the patient voice. It is the patient voice plus early reflected copies of that same voice.
This is one reason why automatic speech recognition, sound event detection, and medical sound analysis can behave differently depending on room layout and microphone placement.
Auto-correlation means comparing a signal with a delayed version of itself. It measures how similar the signal is to itself after a certain time shift.
A common continuous-time expression is:
Rxx(τ) = ∫ x(t)x(t + τ) dt
Here, τ is the delay. If the signal looks similar to itself after delay τ, the auto-correlation value becomes large at that delay.
Auto-correlation is not the comparison of two separately measured signals. That would be cross-correlation.
Auto-correlation uses one signal only. It compares the observed signal with delayed copies of the same observed signal.
Therefore, when direct sound and reflected sound are both contained in one microphone signal, auto-correlation can reveal the internal delay structure of that signal.
Suppose the microphone receives a direct sound and one reflected sound:
x(t) = s(t) + αs(t - τ0)
Here, s(t) is the original sound, α is the reflection strength, and τ0 is the reflection delay.
In this case, auto-correlation usually has a large peak near zero delay and additional structure near +τ0 and -τ0. These additional peaks appear because the reflected sound is a delayed copy of the direct sound.
This section is examining the relationship between direct sound and reflected sound, but not by separately comparing a clean original signal and a reflection signal. Instead, it studies the observed transmission sound itself.
The question is not merely, “What is the original sound?” The deeper question is, “Does the observed waveform contain a delayed copy of itself, and what delay does that copy suggest?”
Auto-correlation can help detect echo delay, periodicity, pitch-related repetition, and reflection structure. However, interpretation must be careful. Speech and musical sounds also have their own internal periodicity, so an auto-correlation peak may come from the source itself, from the room reflection, or from both.
In acoustic ICA and blind source separation, this distinction matters because the algorithm must separate source structure from room-induced structure.
Transmission sound means the sound after it has traveled through the sound path. It is not the pure source sound anymore. It is the source sound after room transmission, reflection, delay, attenuation, and filtering.
In practical terms, transmission sound is the sound actually received by the ear or microphone.
Temporal representation means viewing the transmitted sound on the time axis. From this perspective, reflection appears as delayed arrivals.
For a short sound, the time-domain pattern may look like this:
direct sound → early reflection → later reflection → reverberant tail
This explains why a clap in a room may not end immediately. The room continues to return delayed sound energy after the original clap.
Spectral representation means viewing the transmitted sound by frequency. From this perspective, reflection does not merely appear as delay. It appears as frequency-dependent reinforcement and cancellation.
When direct sound and reflected sound meet, some frequencies add constructively and become stronger. Other frequencies cancel partially and become weaker. This creates a ripple-like frequency response known as comb filtering.
It is correct to say that section 4.1.4 discusses how sound becomes changed by spatial reflection. More precisely, it explains that the same phenomenon has two equivalent representations.
In the time domain, reflection appears as delayed copies.
In the frequency domain, reflection appears as spectral coloration.
Therefore, 4.1.4 is not only saying that the sound becomes “strange.” It is explaining how that change can be represented and analyzed systematically.
These sections are closely connected to ICA because they describe the physical reason why acoustic source separation is difficult. In a simple ICA model, observed signals are mixtures of independent sources. In a real room, however, each source arrives at each microphone through direct sound, early reflections, and reverberation.
Therefore, the microphone signal contains not only other sources but also delayed and filtered copies of the same source. This is why acoustic ICA is usually treated as a convolutive blind source separation problem rather than a simple instantaneous mixing problem.
| Acoustic concept | Meaning in room acoustics | Meaning in ICA or BSS |
|---|---|---|
| Impulse response | The time-domain fingerprint of the sound path | The mixing filter between each source and microphone |
| Frequency characteristics | The frequency-domain behavior of the room | The frequency-dependent mixing matrix in frequency-domain ICA |
| Direct sound | The first and shortest-path arrival | The cleanest component for localization and separation |
| Early reflection | A delayed and attenuated copy of the source | A cause of convolutive mixing and spectral coloration |
| Auto-correlation | A way to detect repetition and delay structure | A useful second-order clue, but not the same as statistical independence |
| Temporal and spectral representation | Two ways to view the same room effect | Basis for time-domain and frequency-domain separation methods |
The following graphs are simplified illustrations. They are not measurements from the book. They are intended to make the concepts visually easier to understand.
A short input sound produces several arrivals at the microphone. The first large peak is direct sound. Later smaller peaks are early reflections.
If the received waveform contains a delayed copy of itself, auto-correlation can show additional peaks near the reflection delay.
The same reflection that appears as a delay in time can appear as alternating reinforcement and cancellation in frequency. This creates a comb-filter-like frequency response.
Section 4.1.1 explains that a room can be described by impulse response in time and frequency characteristics in frequency.
Section 4.1.2 explains that the microphone receives direct sound first and early reflections shortly afterward.
Section 4.1.3 explains that auto-correlation can reveal delayed copies inside the received waveform.
Section 4.1.4 explains that the same transmission sound can be understood temporally as delay and spectrally as coloration.
The overall message is that a room changes the waveform before analysis begins. For ICA, this means that the observed microphone signal is not merely a mixture of sources. It is a mixture of sources after each source has passed through its own sound path.
Written on June 18, 2026
Sections 4.2.1 to 4.2.4 and 4.3.1 to 4.3.2 may be understood as a continuation of the room transmission model. The main subject is not that the sound physically changes the sound path. In ordinary room acoustics, the sound path is usually treated as fixed when the source position, receiver position, and room condition remain fixed.
A more natural reading is:
Core idea: the sound path leaves measurable effects on the transmitted sound. These effects appear in short-term auto-correlation, distance-dependent energy, envelope shape, spectral energy, narrow-band envelope, and reverberation decay.
Therefore, this part is not merely about loudness. It is about how the received waveform changes in time, frequency, and energy distribution as sound travels through a room.
| Section | Main question | Main concept | Practical meaning |
|---|---|---|---|
| 4.2.1 Frame-wise short-term auto-correlation of transmission sound | How does the received sound structure change moment by moment? | Short frames and auto-correlation | Pitch, delay, reflection, and repeated structure can be observed locally in time. |
| 4.2.2 Sound effect and distance to receiver | How does distance change the received sound? | Direct sound, reflected sound, and distance-dependent balance | Close microphones receive stronger direct sound; distant microphones receive relatively more reverberant sound. |
| 4.2.3 Auto-correlation of impulse response and distance from source | How does the sound path itself change with distance? | Auto-correlation of the impulse response | The time structure of direct sound, early reflection, and reverberation can vary with source-receiver distance. |
| 4.2.4 Envelope energy and distance from sound source | How does the energy contour change with distance? | Envelope, energy, spectral energy, and narrow-band envelope | Distance changes not only volume but also the time envelope and frequency-band energy distribution. |
| 4.3.1 Reverberation decay curve of sound waves in rooms | How does sound energy die away in a room? | Reverberation decay curve | The room response after a sound stops can be described by an energy decay curve. |
| 4.3.2 Decay curves and distance from sound source | How does distance affect the observed decay curve? | Direct-to-reverberant balance | The physical room may remain the same, but the observed decay curve can change with receiver position. |
The phrase “sound effects on sound path” can be slightly confusing. It should not be read as if the sound itself changes the wall, air, or room path in an ordinary acoustic situation.
A room sound path is generally modeled as an acoustic system. For a fixed source, fixed receiver, and fixed room, the path has a relatively stable impulse response.
The more useful interpretation is that the sound path leaves effects on the transmitted sound.
The received sound is shaped by distance, reflection, absorption, scattering, and reverberation. These effects can be observed through auto-correlation, envelope energy, spectral energy, and decay curves.
This distinction is important for ICA and blind source separation. The observed microphone signal is not only a mixture of source signals. It is a mixture after each source has passed through its own sound path.
A simple representation is:
x(t) = s(t) * h(t)
Here, s(t) is the source sound, h(t) is the impulse response of the sound path, and x(t) is the transmitted sound received by the microphone.
Frame-wise analysis means dividing a long signal into short time segments and analyzing each segment separately.
For example, a long speech signal may be divided into short frames such as:
0-20 ms, 10-30 ms, 20-40 ms, 30-50 ms, ...
The frames often overlap. This is useful because speech and room transmission effects change over time, but a very short segment can often be treated as approximately stable.
A whole recording may contain vowels, consonants, silence, loud parts, weak parts, reflections, and background noise. If auto-correlation is calculated over the whole signal at once, too many effects are mixed together.
Short-term auto-correlation avoids this problem by asking a more local question:
In this short moment, how similar is the signal to a delayed version of itself?
Auto-correlation compares a signal with delayed versions of itself. If the waveform repeats after a certain delay, the auto-correlation value becomes large at that delay.
A simple expression is:
Rxx(τ) = ∫ x(t)x(t + τ) dt
Here, τ is delay. A peak at a certain delay means that the signal has some repeated or delayed structure at that time shift.
This section studies the transmitted sound, not a perfectly clean original sound. The transmitted sound already includes the sound path effect.
Frame-wise short-term auto-correlation may reveal:
However, interpretation must be careful. A peak may come from the source itself, from a room reflection, or from both.
This section is not saying that sound changes the receiver physically. It is saying that the received sound changes when the distance between source and receiver changes.
Distance affects the balance among direct sound, early reflected sound, and reverberant sound.
The direct sound generally becomes weaker as distance increases. In an ideal free field, sound pressure is roughly proportional to 1/r, and sound energy is roughly proportional to 1/r2.
In a room, the situation is more complex because reflected and reverberant sound also reach the receiver. As the receiver moves farther from the source, the direct sound tends to weaken more clearly, while the reverberant field may become relatively more important.
A useful concept is the direct-to-reverberant ratio. This means the relative strength of direct sound compared with reverberant sound.
Close to the source:
direct sound > reverberant sound
Far from the source:
direct sound ≈ reverberant sound
or sometimes:
direct sound < reverberant sound
A microphone close to a speaker's mouth captures a clearer and more direct signal. A microphone farther away captures more room effect. The same voice can therefore sound clear, distant, hollow, blurred, or reverberant depending on receiver position.
This is important in speech recognition, acoustic monitoring, hospital-room sound analysis, hearing aids, smart speakers, and source separation.
The auto-correlation in 4.2.1 concerns the transmitted sound x(t). The auto-correlation in 4.2.3 concerns the impulse response h(t).
This distinction is important:
| Section | Signal being analyzed | Main question |
|---|---|---|
| 4.2.1 | x(t), the transmitted sound |
What repeated structure is present in the received sound? |
| 4.2.3 | h(t), the impulse response |
What repeated or delayed structure is present in the sound path itself? |
The impulse response contains direct arrival, early reflections, later reflections, and reverberation. Auto-correlation of the impulse response examines how this path structure relates to delayed versions of itself.
A simple expression is:
Rhh(τ) = ∫ h(t)h(t + τ) dt
Peaks or broad structures in Rhh(τ) can indicate strong arrivals, repeated reflection patterns, or a long reverberant tail.
When the source-receiver distance changes, the direct path length changes. The relative timing and strength of reflections also change.
Close to the source, the impulse response may show a strong direct arrival followed by weaker reflections. Farther from the source, the direct arrival may be weaker relative to the reflected and reverberant components.
This section uses auto-correlation as a tool to examine the structure of the sound path itself. The point is not merely that sound becomes smaller with distance. The point is that the impulse response shape and its internal time structure can change with distance.
In acoustic ICA, this matters because the impulse response is the mixing filter. If the source or receiver position changes, the mixing filter changes as well.
The envelope is the smooth outer contour of a waveform. The waveform itself oscillates rapidly, but the envelope describes how the amplitude rises and falls over time.
A rough intuitive distinction is:
waveform = fast vibration
envelope = slow amplitude shape around the vibration
For example, a spoken syllable has a beginning, growth, peak, and decay. This slow shape is closer to the envelope than to the individual pressure oscillations.
The envelope is strongly related to perceived loudness change, rhythm, attack, decay, syllable strength, and sound-event timing.
Human hearing does not consciously track every rapid oscillation of the acoustic waveform. Many perceptual cues are instead related to amplitude modulation and envelope shape.
Energy is introduced because envelope shape alone is qualitative. Energy gives a quantitative description of signal strength.
In simple terms:
larger envelope = larger energy
smaller envelope = smaller energy
More technically, acoustic signal energy is related to squared amplitude. Envelope energy therefore describes how the strength of the amplitude contour is distributed over time.
Close to the source, the envelope often has a strong initial peak because the direct sound is dominant. The sound onset is clear, and the energy is concentrated near the beginning.
Farther from the source, the direct component weakens. Reflected and reverberant components become relatively more important. As a result, the envelope may become smoother, more spread out, and less sharply defined.
This explains why a distant voice may be audible but less clear. The energy may still exist, but it is spread across time by reflection and reverberation. Speech syllables may overlap, consonants may be weakened, and the temporal boundary of sound events may become less distinct.
Spectral energy means energy distribution across frequency. A sound is not defined only by total loudness. It is also defined by where its energy lies in frequency.
For example, the same total energy can sound very different depending on whether the energy is concentrated in low frequencies, middle frequencies, or high frequencies.
The sound path usually does not transmit all frequencies equally. Surfaces, air, obstacles, and room geometry can make some frequency bands weaker than others.
With greater distance, high-frequency details may often become less prominent. Low-frequency components may remain more noticeable. This can change the perceived clarity and timbre of the received sound.
A narrow-band envelope is obtained by first isolating a limited frequency band and then examining the envelope inside that band.
The process may be understood as:
full sound → band-pass filtering → envelope extraction → band-specific energy analysis
This is useful because the full-band envelope can hide important differences among frequency bands.
In speech, vowels often carry strong low- and mid-frequency energy, while consonant clarity may depend heavily on higher-frequency components. If the high-frequency narrow-band envelope weakens with distance, speech may still be heard, but exact words may become harder to understand.
Therefore, narrow-band envelope analysis helps explain not only whether a sound is loud, but also which part of the sound remains clear after transmission through the room.
Reverberation is the persistence of sound in a room after the original sound has stopped. It is caused by many reflections arriving so densely that they are not heard as separate echoes.
Echo and reverberation are related but not identical.
| Concept | Meaning | Perceptual impression |
|---|---|---|
| Echo | A delayed reflection that can be heard separately | A repeated sound, such as “hello ... hello” |
| Reverberation | Many dense reflections that merge together | A lingering tail, such as “hello~~~~” |
Decay means that sound energy decreases over time. After a source stops producing sound, the remaining acoustic energy continues to reflect in the room, but each reflection loses energy through absorption, scattering, leakage, and air loss.
The room therefore does not stop sounding immediately. The remaining sound gradually becomes weaker.
A reverberation decay curve shows how the sound energy decreases after the sound source stops or after an impulse excitation.
In linear amplitude, this decay may look curved. In decibels, a simple reverberant decay often appears approximately as a downward slope.
A common practical measure is reverberation time, often represented as the time required for the sound level to decay by 60 dB.
Yes. This section is essentially exploring how sound waves decay in a room. More precisely, it studies how the energy of room sound decreases after excitation.
The focus is not only the microscopic wave oscillation. The main focus is the decay of acoustic energy caused by repeated reflection and absorption in the room.
When receiver distance from the source changes, the observed decay curve can change. This happens because the direct sound and reverberant sound do not have the same distance dependence.
Near the source, the direct sound is strong. Farther from the source, the direct sound becomes weaker, and the reverberant component becomes relatively more important.
The physical reverberation time of the room does not necessarily change just because the receiver moves. The room is still the same room.
However, the observed decay curve at the receiver can change because the receiver captures a different balance of direct sound, early reflection, and reverberant sound.
Close to the source, the received signal often begins with a strong direct component. The decay curve may show a large initial energy peak followed by a reverberant tail.
The sound tends to be clear, localized, and temporally sharp.
Farther from the source, the direct component is weaker. The reverberant field may occupy a larger portion of the received energy.
The sound may seem more distant, less localized, less clear, and more blended with the room.
This section studies how distance changes the appearance of reverberation decay. The purpose is not merely to say that far sounds are quieter. The more important point is that distance changes the time distribution of received energy.
| Feature | Close to source | Far from source |
|---|---|---|
| Direct sound | Strong | Weak |
| Early reflection | Present but often secondary | Relatively more important |
| Reverberant sound | Lower relative contribution | Higher relative contribution |
| Envelope | Sharper onset and stronger initial peak | Smoother and more spread over time |
| Spectral energy | More source-like | More affected by room and distance |
| Perceptual impression | Clear, close, localized | Distant, blurred, reverberant |
| ICA implication | Easier separation due to stronger direct sound | Harder separation due to stronger convolutive room effect |
These sections are highly relevant to acoustic ICA because they explain why the observed microphone signal is not a simple mixture.
In a room, each source reaches each microphone through an impulse response. That impulse response contains direct sound, early reflections, and reverberant decay. Therefore, the mixture is not only spatial but also temporal.
A more realistic acoustic mixture is:
x_m(t) = ∑n hmn(t) * s_n(t)
Here, hmn(t) is the sound path from source n to microphone m. Distance, room reflection, envelope energy, spectral energy, and reverberation decay all affect this mixing filter.
The practical implication is clear: as reverberation becomes stronger and decay becomes longer, source separation generally becomes more difficult. Past sound energy remains in the present signal, so the current microphone sample contains not only current source activity but also delayed traces of previous activity.
Auto-correlation is useful in this context because it can reveal repeated and delayed structures. However, auto-correlation is not the same as statistical independence. It provides second-order information, while ICA usually seeks stronger statistical separation among sources.
The following graphs are simplified illustrations. They are not measured data from the book. Their purpose is to make the main acoustic ideas easier to see.
Different frames can show different auto-correlation shapes. A peak at zero delay is normal. Additional peaks may suggest periodicity, reflection delay, or repeated structure.
Direct sound typically decreases strongly with distance. The reverberant component may decrease more slowly in comparison, so the relative room effect becomes larger at greater distance.
Different frequency bands can lose energy differently with distance. A full-band envelope may hide these band-specific changes.
A close receiver may show a stronger initial direct component. A distant receiver may show a decay curve more dominated by the reverberant field.
Section 4.2.1 explains that transmitted sound can be analyzed frame by frame with short-term auto-correlation to observe local repetition, delay, and reflection structure.
Section 4.2.2 explains that receiver distance changes the balance between direct sound and room sound.
Section 4.2.3 explains that auto-correlation of the impulse response examines the time structure of the sound path itself, not merely the received sound content.
Section 4.2.4 explains that envelope energy changes with distance because the direct peak, reverberant tail, and frequency-band energy distribution change.
Section 4.3.1 explains that reverberation is the dense persistence of reflected sound and that a reverberation decay curve describes how room sound energy dies away.
Section 4.3.2 explains that distance from the sound source changes the observed decay curve by changing the balance between direct and reverberant sound.
The overall message is that room transmission affects much more than loudness. It changes time structure, frequency structure, energy distribution, and decay behavior. For ICA and blind source separation, these effects define the acoustic mixing filter and strongly influence the difficulty of separating sources.
Written on June 18, 2026
Scope. This article presents an independent interpretation of Chapter 5, integrating Sections 5.1, 5.2, and 5.3 into one practical framework. It also proposes concrete development directions for nGeneMediaPlayer. The recommendations are intentionally implementation-oriented and remain independent of a particular programming language or application framework.
Chapter 5 argues that the meaning of sound is not contained only in its acoustic frequencies. Important information is also carried by the way energy rises, falls, repeats, aligns across frequency bands, and survives transmission through a room or device.
A sound waveform contains rapid oscillations and slower changes at the same time.
A 1,000 Hz tone modulated at 4 Hz illustrates the distinction. The acoustic carrier completes 1,000 cycles per second, while the envelope rises and falls four times per second.
The sound therefore contains at least two meaningful frequencies:
Conventional spectral analysis primarily describes the first quantity. Chapter 5 establishes the importance of the second.
A waveform display often shows an envelope only as a convenient visual boundary around the signal. Chapter 5 gives the envelope a much more important role.
The envelope can be treated as an independent signal with its own:
This shift in viewpoint is central. The envelope is not only something placed over a waveform. It is a measurable representation of temporal organization.
| Section | Primary question | Main analytical concept | Practical meaning |
|---|---|---|---|
| 5.1 | How does the envelope fluctuate? | Modulation spectrum, phase, correlation, and transfer | Measurement of temporal contrast and distortion |
| 5.2 | How much perceptual information does the envelope carry? | Narrow-band envelopes, intelligibility, phase, and time reversal | Speech understanding with reduced waveform detail |
| 5.3 | How does the envelope repeat? | Autocorrelation, missing fundamental, and period estimation | Pitch, rhythm, event rate, and recurring patterns |
Chapter 5 explains how the temporal organization of sound can be measured, perceived, transmitted, and converted into useful information.
The waveform represents instantaneous acoustic amplitude. It is indispensable for observing clipping, polarity, sharp transients, phase relationships, and detailed oscillation.
Its limitation is scale. A waveform may contain thousands of cycles within a short interval, making slower organization difficult to observe directly.
The acoustic spectrum identifies the frequencies that form the sound. It supports analysis of harmonics, resonances, formants, noise bands, and tonal components.
Its limitation is temporal abstraction. A long-term spectrum may indicate which frequencies are present without showing when they occur or how their amplitudes change.
The envelope displays the slower variation of amplitude. It reveals events such as:
The modulation spectrum describes how rapidly the envelope fluctuates. Autocorrelation describes how long the envelope must be shifted before a similar pattern appears again.
These views convert a complicated temporal pattern into interpretable quantities such as:
| Representation | Question answered | Typical unit | Example |
|---|---|---|---|
| Waveform | What is the instantaneous signal amplitude? | Normalized amplitude or pressure | Transient shape |
| Acoustic spectrum | Which rapid frequencies form the sound? | Hz or kHz | Harmonics and formants |
| Envelope | When does energy rise and fall? | Amplitude over time | Syllable or event boundary |
| Modulation spectrum | At which rates does the envelope fluctuate? | Hz | Four fluctuations per second |
| Autocorrelation | After which delay does the pattern repeat? | Seconds or samples | 800 ms cycle period |
Section 5.1 begins by treating the envelope as a signal and applying spectral analysis to it.
If e(t) is an envelope, its Fourier transform can be written as:
E(fm) = F{e(t)}
The magnitude |E(fm)| indicates the strength of each modulation frequency.
A strong component at 4 Hz means that a substantial part of the envelope rises and falls approximately four times per second. A strong component at 1 Hz indicates a slower pattern recurring approximately once per second.
This is different from an acoustic component at 4 Hz. The modulation frequency describes amplitude change, not necessarily an audible sinusoidal tone at that frequency.
Modulation index quantifies the depth of amplitude fluctuation relative to the average level.
For ideal sinusoidal amplitude modulation:
e(t) = E0[1 + m cos(2πfmt + φ)]
The variable m is the modulation index.
m = 0 represents a constant envelope.m represents shallow fluctuation.m represents pronounced contrast between peaks and valleys.In practical speech, music, and biological signals, modulation is not a single sinusoid. A frequency-dependent modulation depth or normalized modulation spectrum is therefore more useful.
Magnitude indicates how much modulation exists. Phase indicates when the modulation occurs relative to a chosen time origin.
A modulation component may be expressed as:
E(fm) = |E(fm)|ejφ(fm)
Two envelopes can have identical magnitude spectra but different temporal alignments. This distinction is important in:
Cross-correlation compares two envelopes while shifting one relative to the other.
A representative expression is:
Rxy(τ) = ∫ x(t)y(t + τ)dt
The lag producing the largest normalized correlation can estimate relative delay. The peak height can indicate similarity after alignment.
Cross-correlation is especially useful when two recordings contain the same event but begin at different times.
A room, codec, loudspeaker, hearing device, or signal processor can change both the magnitude and phase of envelope modulation.
A complex modulation transfer function may be represented as:
Hm(fm) = Ym(fm) / Xm(fm)
Its magnitude describes preservation or attenuation of modulation. Its phase describes delay and temporal displacement.
A system may preserve slow changes while smoothing rapid ones. Such a system behaves approximately like a low-pass filter in the modulation domain.
Direct sound reaches a receiver through the shortest path. Reflections arrive later and can modify the envelope through interference and temporal smearing.
Section 5.1 therefore asks:
These questions connect envelope analysis to room acoustics, microphone placement, public-address coverage, spatial audio, and sensor positioning.
Section 5.1 provides the instruments required to measure the strength, timing, transmission, and spatial stability of an envelope.
Speech can be divided into several acoustic-frequency bands. An envelope can then be extracted from each band.
A simplified model is:
xk(t) = ek(t)ck(t)
Here:
xk(t) is the signal in frequency band k.ek(t) is the band-specific envelope.ck(t) is the carrier or fine structure.The complete set of envelopes forms a simplified time-frequency representation.
A single wide-band envelope shows only when the total signal becomes stronger or weaker. It does not identify the frequency region responsible for the change.
Narrow-band envelopes preserve both:
This distinction helps retain information about vowels, consonants, syllables, onsets, offsets, stress, and pauses.
A reconstructed signal may differ greatly from the original waveform yet remain understandable.
| Objective | Meaning | Possible result |
|---|---|---|
| Waveform fidelity | Accurate reproduction of the original pressure waveform | Natural and physically faithful audio |
| Speech intelligibility | Preservation of information required to understand words | Understandable but artificial audio |
| Sound quality | Naturalness, comfort, timbre, and spatial impression | May remain poor despite good word recognition |
This explains why envelope-based speech can remain intelligible even when pitch, voice identity, music quality, and spatial realism are degraded.
Envelope recovery refers to extraction or reconstruction of a meaningful amplitude pattern after the original carrier has been altered or removed.
It can also refer to envelope fluctuations created after several nearby components interact inside a narrow auditory filter.
The recovered envelope depends on:
Time reversal preserves the overall magnitude spectrum of an ideal finite signal while reversing its temporal sequence and changing spectral phase.
The original progression:
Closure → release → transition → vowel
becomes approximately:
Reversed vowel → reversed transition → reversed release → closure
The acoustic ingredients remain present, but their meaningful temporal organization is lost.
| Information type | Strong contribution | Typical result when degraded |
|---|---|---|
| Narrow-band envelope | Syllabic rhythm, boundaries, stress, and basic intelligibility | Speech becomes smeared or difficult to segment |
| Temporal fine structure | Pitch, harmonicity, localization, and source separation | Reduced naturalness and difficulty in competing sound |
| Relative phase | Waveform shape, onset alignment, and recovered envelope | Temporal distortion or cancellation |
| Temporal order | Phonetic and linguistic progression | Severe loss of meaning under extensive reversal |
Section 5.2 identifies which portions of sound structure are especially efficient for perception and which temporal relationships must remain intact.
Autocorrelation compares a signal with delayed versions of itself.
For a discrete sequence:
Rxx[k] = Σnx[n]x[n + k]
If a pattern repeats every k0 samples, autocorrelation tends to produce peaks near:
k0, 2k0, 3k0, ...
At sample rate fs:
T̂0 = k0 / fs
F̂0 = fs / k0
A signal containing 200, 300, 400, and 500 Hz has no physical component at 100 Hz. Nevertheless, all components are integer multiples of 100 Hz.
The combined temporal pattern repeats every 10 milliseconds:
1 / 100 Hz = 0.01 seconds
The auditory system can therefore infer a pitch related to 100 Hz even though the 100 Hz spectral line is absent.
This demonstrates that fundamental frequency is not always equivalent to the lowest physically present frequency.
An envelope may have a repetition period that is different from the period of the carrier waveform.
For a 1,000 Hz carrier modulated at 5 Hz:
The relationship is:
fm = 1 / Te
Te = 1 / fm
The phrase envelope F0 can be useful, but it can also cause confusion with acoustic F0.
A clearer software label would be:
Fundamental modulation frequency
This label indicates that the quantity belongs to the envelope or modulation domain rather than the acoustic carrier domain.
Real signals rarely contain one perfectly stable repetition rate.
Software should therefore present several candidate periods when appropriate rather than forcing every signal into a single number.
Section 5.3 provides methods for detecting repeated organization even when the corresponding fundamental component is weak, absent, or hidden inside an envelope.
| Question | Relevant tool | Typical answer |
|---|---|---|
| How strongly does the envelope change? | Magnitude spectrum and modulation index | A strong 4 Hz fluctuation |
| When does the change occur? | Phase and correlation | A 25 ms delay between channels |
| How does a system alter the change? | Complex modulation transfer function | Rapid envelope changes are attenuated |
| How often does the pattern repeat? | Autocorrelation and period estimation | A recurring event every 800 ms |
Acoustic frequency and modulation frequency must not be displayed as though they were the same quantity.
| Quantity | Meaning | Example |
|---|---|---|
| Acoustic frequency | Rate of waveform oscillation | 1,000 Hz carrier |
| Modulation frequency | Rate of envelope fluctuation | 4 Hz amplitude change |
| Period | Time between repeated patterns | 250 ms |
| Rate per minute | Number of repeated events in one minute | 75 events per minute |
Chapter 5 supplies a common vocabulary for several applications that may initially appear unrelated.
All of these tasks examine how energy changes and repeats over time.
Envelope analysis can help determine whether a telephone, codec, conference system, or noise-reduction process preserves meaningful speech timing.
A frequency response can appear acceptable while speech remains unclear because:
Envelope analysis is useful for:
Hearing aids and cochlear implants rely heavily on channel-specific temporal information.
Relevant engineering questions include:
Reflections can preserve average spectral energy while reducing temporal clarity.
Envelope-based comparisons can reveal:
The chapter's methods can also be applied to non-speech biological sounds.
| Signal | Envelope information | Periodicity information | Possible analytical purpose |
|---|---|---|---|
| Heart sound | S1 and S2 bursts, event duration, amplitude variation | Cardiac-cycle interval | Timing and rhythm visualization |
| Respiratory sound | Inspiratory and expiratory intensity contour | Respiratory-cycle interval | Cycle segmentation and comparison |
| Wheeze | Sustained band-specific amplitude | Quasi-periodic tonal structure | Duration and frequency tracking |
| Crackle | Short localized transient | Usually irregular event spacing | Event detection and annotation |
| Mixed cardiopulmonary recording | Overlapping fast and slow envelope structures | Cardiac and respiratory candidate periods | Source-separation validation |
Such measurements should be presented as signal-analysis results rather than independent medical diagnoses.
Repeated impacts can excite high-frequency vibration while the fault repetition itself occurs at a much lower rate.
Demodulating the vibration and analyzing its envelope can reveal:
The strongest development direction would not be to turn nGeneMediaPlayer into a general-purpose numerical laboratory.
Its advantage should come from connecting analysis directly to playback.
Every analytical result should answer what is happening at the current playback position, how it sounds, and how it changes when a parameter is modified.
A useful interaction sequence would be:
Select → inspect → listen → compare → annotate → export
A graph without audition can become abstract. Audio without synchronized measurement can become subjective.
nGeneMediaPlayer should therefore make every major analysis audible whenever possible.
Black-box classification should not be the first development priority.
Reliable low-level tools should be established first:
These primitives can later support machine learning, but they remain independently useful and verifiable.
Every processing operation should leave the original media unchanged.
An analysis result should be reproducible from:
The first essential feature should be an envelope overlay directly on the existing waveform timeline.
The display should support:
Three envelope methods would cover most practical use cases:
| Method | Strength | Recommended role |
|---|---|---|
| Short-time RMS | Stable and intuitive energy representation | Default visual envelope |
| Full-wave rectification with low-pass filtering | Efficient and suitable for real-time preview | Interactive playback path |
| Hilbert analytic magnitude | Precise envelope for a band-limited signal | Offline narrow-band analysis |
The interface should label the selected method explicitly. Different extraction methods should not silently produce different results under the same generic label.
A modulation-spectrum panel should calculate the spectrum of the selected envelope rather than the acoustic waveform.
The panel should include:
A peak row should show:
| Field | Example |
|---|---|
| Modulation frequency | 1.25 Hz |
| Equivalent period | 0.80 s |
| Equivalent rate | 75 events per minute |
| Relative magnitude | 0.82 |
| Resolution | 0.10 Hz per bin |
Clicking a peak should set an optional timeline grid with interval 1 / fm.
A dedicated periodicity panel should display normalized autocorrelation and identify several candidate periods.
The panel should not show only one final number. It should display:
This design helps expose octave and subharmonic errors rather than hiding them.
A narrow-band envelope matrix would be one of the most valuable additions after the basic envelope overlay.
The display would use:
This view resembles a simplified auditory spectrogram, but its values represent smoothed band envelopes rather than raw short-time spectral magnitude.
Useful interactions would include:
This feature would be directly useful for speech, music, cardiopulmonary sounds, machinery, and source-separation review.
Analysis should support synchronized A/B playback.
Initial comparison modes should include:
Level matching should be available because a louder condition can be mistaken for a clearer condition.
Switching should occur without losing playback position.
The envelope can provide candidate event markers.
Marker-generation modes may include:
Automatic markers should be presented as candidates rather than unquestionable labels.
Every useful analysis should be saveable as a recipe.
Export formats should include:
A numerical result without its parameters should not be treated as a complete result.
A harmonic inspector could identify spectral peaks and estimate a common underlying F0.
The panel should distinguish:
The result should show:
This feature would be useful for music, voice, small-speaker evaluation, codec analysis, and hearing demonstrations.
A reconstruction laboratory could demonstrate how much information remains when carriers are replaced.
Possible modes include:
This would provide a direct, audible explanation of Section 5.2 and would also serve as a practical test environment for speech-processing algorithms.
Time reversal should support both:
Adjustable local segment duration would allow examination of the transition between preserved broad rhythm and destroyed phonetic organization.
The visual display should show original and reversed envelopes aligned around the same selection.
A paired-file mode could compare an original source with a received or processed recording.
A practical sequence would be:
This mode would be useful for:
A later extension could compare recordings captured at several positions.
Each recording would include metadata such as:
The software could then display spatial variation of:
This feature should follow the paired-file mode rather than precede it.
A practical analysis workspace could contain four persistent regions.
| Region | Content | Primary interaction |
|---|---|---|
| Transport bar | Play, pause, loop, speed, A/B source | Control audition without changing analysis selection |
| Main timeline | Waveform, envelope, markers, repeated-event grid | Select and inspect time regions |
| Analysis panel | Modulation, autocorrelation, bands, spectrum, comparison | Inspect synchronized measurements |
| Parameter inspector | Method, filter, window, range, normalization | Modify and save analysis recipe |
Every heavy analysis should operate on:
The selected mode should always be visible.
Selection-based processing provides several advantages:
A linked-view design would make the application substantially more useful.
A single interface cannot remain understandable if every parameter is displayed at once.
Two levels would be appropriate:
Simple mode should not hide the units or the meaning of the result. It should hide only implementation detail.
Each numerical result should provide a short interpretation.
A useful result card could display:
Dominant envelope repetition: 1.25 Hz
Equivalent period: 0.80 s
Equivalent rate: 75 events per minute
Periodicity strength: 0.82
Alternative candidate: 2.50 Hz
Such a presentation is easier to use than a graph with unlabeled peaks.
Real-time playback and high-precision analysis have different requirements.
| Path | Priority | Recommended operations |
|---|---|---|
| Real-time preview | Low latency and uninterrupted playback | Simple filtering, rectification, low-pass envelope, preview rendering |
| Offline analysis | Accuracy and reproducibility | Hilbert envelope, long FFT, normalized correlation, harmonic inference, export |
Heavy processing should not execute on the user-interface thread.
Hilbert-envelope analysis is most meaningful for a band-limited signal.
A recommended processing sequence is:
Applying an analytic envelope to an unrestricted full-band signal can produce a result that is difficult to interpret.
Two implementations may be useful.
Frequency spacing options should include:
A robust default procedure would be:
Zero padding may produce a smoother-looking curve, but it does not improve true frequency resolution. The interface should report the actual resolution determined by selection duration.
Direct autocorrelation is suitable for short selections. FFT-based autocorrelation is more efficient for long selections.
The implementation should include:
A reliable estimator should combine several forms of evidence rather than depend on one method.
The interface should never label an inferred fundamental as a measured spectral component.
A direct point-by-point division of output by input can become unstable where input energy is very small.
A more robust estimate can use cross-spectral quantities:
Ĥm(f) = Syx(f) / Sxx(f)
Reliability can be supported by magnitude-squared coherence:
γ2(f) = |Sxy(f)|2 / [Sxx(f)Syy(f)]
Results with low coherence should be visually marked as unreliable.
A modulation frequency cannot be estimated reliably from a selection that contains only a small fraction of one cycle.
A practical rule is to include at least three to five cycles of the lowest target frequency. Four cycles provide a useful starting point:
Minimum duration ≈ 4 / target modulation frequency
For example:
Presets should provide useful starting points without implying that one parameter set is universally correct.
Every preset should remain editable and should display its actual values.
| Preset | Acoustic analysis | Envelope setting | Periodicity range | Suggested selection |
|---|---|---|---|---|
| General audio envelope | Full band or selected band | RMS, 10 to 20 ms window | User-defined | Visible region |
| Speech modulation | 8 or 16 logarithmic bands | Envelope low-pass near 20 Hz | Approximately 0.5 to 20 Hz | At least several seconds |
| Voice pitch | Waveform or suitable voice band | Minimal envelope smoothing | Approximately 50 to 500 Hz | Several voiced cycles |
| Music tempo | Full-band or onset-weighted bands | Onset or energy envelope | Approximately 0.5 to 5 Hz | 10 to 30 seconds |
| Cardiac sound research | Configurable low-frequency band | RMS or rectified envelope | Approximately 0.5 to 3 Hz | At least 10 seconds |
| Respiratory sound research | Configurable respiratory-audio band | Slow energy envelope | Approximately 0.08 to 1 Hz | Approximately 30 seconds or longer |
| Mechanical envelope | User-selected resonance band | Hilbert or rectified envelope | Fault-rate dependent | Several machine cycles |
Cardiac and respiratory presets should be identified as research and visualization presets rather than diagnostic modes.
| Component | Responsibility |
|---|---|
| Media decoder | Decode audio and expose stable sample blocks |
| Sample provider | Serve channels, selections, and resampled data |
| Analysis kernel | Filtering, envelope, FFT, correlation, and feature extraction |
| Job scheduler | Run analysis outside the interface thread and support cancellation |
| Feature cache | Store reusable results keyed by media and parameters |
| Timeline model | Synchronize playback, selection, markers, and analytical results |
| Visualization layer | Render waveform, envelopes, spectra, matrices, and peaks |
| Experiment renderer | Generate envelope-only, filtered, reversed, or comparison audio |
| Export service | Write numerical data, audio, figures, and recipes |
A saved analysis should include enough information to reproduce the result.
{
"schemaVersion": 1,
"analysisVersion": "5.3.0",
"sourceHash": "sha256:...",
"channelMode": "mono-mix",
"selection": {
"startSeconds": 12.4,
"endSeconds": 28.4
},
"acousticBand": {
"lowHz": 100,
"highHz": 2000
},
"envelope": {
"method": "hilbert",
"lowPassHz": 20,
"removeMean": true
},
"modulation": {
"window": "hann",
"minimumHz": 0.25,
"maximumHz": 20
},
"autocorrelation": {
"minimumPeriodSeconds": 0.2,
"maximumPeriodSeconds": 5,
"normalization": "local"
}
}
Cached results should depend on:
A parameter change should invalidate only the affected result rather than all analysis data.
Long media files should not be rendered or analyzed at full resolution for every zoom level.
Precomputed pyramids can contain:
High-resolution analysis should be calculated only for the selected or visible region.
Heavy calculations should run in background workers or native processing threads.
For a browser-based implementation, suitable technologies may include:
For a desktop implementation, the same conceptual separation can use native worker threads and a shared analysis library.
Local analysis should be the default for private recordings, research audio, and physiological signals.
Uploading should require an explicit operation rather than occur automatically.
Exported reports should permit removal of:
Domain-specific functions should be implemented as plugins or modules built on the same core primitives.
Possible modules include:
The core application should provide playback, selection, envelope, bands, periodicity, annotation, and export. Domain modules should add terminology and task-specific workflows.
Completion criterion: a selected region can be analyzed repeatedly without blocking playback, and identical parameters reproduce identical results.
Completion criterion: an operator can select a sound event, see its envelope, identify a modulation or period, audition the selection, and export a reproducible result.
Completion criterion: frequency-specific temporal events can be located visually and confirmed by listening.
Completion criterion: envelope, carrier, channel count, and temporal-order effects can be tested audibly without external software.
Completion criterion: measured and inferred fundamentals are clearly distinguished, and ambiguous candidates remain visible.
Completion criterion: a source and received recording can be aligned, compared, and evaluated for envelope loss and delay.
| Priority | Feature group | User value | Relative complexity |
|---|---|---|---|
| P0 | Envelope overlay, selection, recipes, export | Very high | Low to moderate |
| P0 | Modulation spectrum and autocorrelation | Very high | Moderate |
| P1 | Narrow-band envelope matrix | Very high | Moderate to high |
| P1 | Linked A/B and envelope reconstruction | High | Moderate to high |
| P2 | Missing-fundamental inspector | High for specialist use | High |
| P2 | Paired modulation-transfer analysis | High for engineering use | High |
| P3 | Spatial mapping and domain-specific classification | Specialized | Very high |
Known synthetic inputs provide exact expected results and are essential for validating signal-analysis software.
| Test | Input | Expected result |
|---|---|---|
| Envelope frequency | 1,000 Hz carrier modulated at 4 Hz | Dominant modulation peak near 4 Hz |
| Modulation index | Sinusoidal modulation with m = 0.5 |
Estimated depth near 0.5 under the selected convention |
| Period estimation | Pulse repeated every 0.8 seconds | Autocorrelation peak near 0.8 seconds and rate near 75 per minute |
| Missing fundamental | Components at 200, 300, 400, and 500 Hz | Inferred F0 near 100 Hz while physical 100 Hz amplitude remains absent |
| Delay estimation | Identical envelopes separated by 25 ms | Cross-correlation lag near 25 ms |
| Time reversal | Finite waveform and its reversed copy | Matching magnitude spectra within numerical tolerance |
| Band localization | Burst inserted into one known frequency band | Event appears primarily in the expected matrix row |
| Recipe reproducibility | Same source and same parameters | Equivalent numerical result and cache key |
A peak estimate should not be judged against a tolerance finer than the available resolution.
For a selection of duration T, basic modulation-frequency spacing is approximately:
Δf = 1 / T
A 10-second selection therefore has basic bin spacing near 0.1 Hz.
Acceptance tests should use tolerances based on:
Numerical verification alone cannot establish perceptual usefulness.
Auditory evaluation should include:
Intelligibility, naturalness, listening effort, and preference should be recorded separately.
A single score combining intelligibility, naturalness, pitch, periodicity, noise, and spatial quality would be difficult to interpret and easy to misuse.
Separate, inspectable measurements should come first.
Automatic diagnosis would require validated datasets, clinical labeling, governance, and task-specific evaluation.
The initial product should support visualization, measurement, segmentation, annotation, and research comparison.
Not every calculation needs to update at audio rate.
Real-time preview should remain lightweight. High-resolution correlation, modulation transfer, and harmonic inference can run after a selection is made.
Raw phase curves can be difficult to interpret and are sensitive to time origin and low-amplitude regions.
Phase should initially be presented through:
Numerous disconnected panels would make the software look powerful while reducing practical usability.
A smaller number of synchronized views would provide greater value.
Labels such as S1, S2, wheeze, crackle, phoneme, or bearing fault should be layered over a verified signal-analysis foundation.
The underlying envelope, band, event, and periodicity measurements should remain accessible even when an automatic label is available.
The highest-value first release would contain:
This release would already support meaningful work in:
This release would transform nGeneMediaPlayer from an analytical player into an auditory experiment environment.
This release would support specialized research and engineering workflows without weakening the clarity of the core player.
Sound should be understood not only as a collection of frequencies, but also as an organized pattern of amplitude changes distributed across frequency bands and repeated over time.
Section 5.1 explains how to measure that organization.
Section 5.2 explains why that organization matters for perception.
Section 5.3 explains how repetition within that organization produces period, rate, rhythm, and inferred fundamental frequency.
The most valuable product direction would be a playback-centered temporal-analysis system rather than a collection of unrelated charts.
Its defining workflow should be:
See the event, hear the event, measure the event, compare the event, and preserve the analytical recipe.
Envelope overlay, modulation spectrum, autocorrelation, narrow-band envelope visualization, and synchronized audition form the strongest practical foundation.
Missing-fundamental analysis, modulation transfer, spatial comparison, and domain-specific intelligence should be built on top of that verified foundation.
The software should not merely display sound. It should reveal how sound changes through time, make that structure audible, and convert it into reproducible measurements.
Written on June 28, 2026
Scope. The following explanation presents a conceptual interpretation of Section 5.1 based on its subsection structure and the standard framework of envelope analysis. The exact notation and experimental procedures used in the book may differ.
Section 5.1 treats the temporal envelope as an independent signal. It asks how rapidly the envelope fluctuates, when those fluctuations occur, how an acoustic system alters them, and over what temporal and spatial ranges the original envelope remains observable.
An ordinary acoustic spectrum describes the rapid oscillations of a sound waveform. These oscillations are associated with acoustic frequency, pitch, resonance, and timbre.
The envelope describes a different phenomenon: the comparatively slow rise and fall of sound amplitude. Since the envelope is itself a time-varying signal, a Fourier transform can also be applied to it. The resulting spectrum is called the modulation spectrum.
The distinction can be illustrated by a 1,000 Hz tone whose amplitude rises and falls four times per second. Its acoustic carrier frequency is 1,000 Hz, while its modulation frequency is 4 Hz.
| Domain | Primary question | Typical unit | Main perceptual meaning |
|---|---|---|---|
| Acoustic spectrum | Which rapid oscillations form the sound? | Hz or kHz | Pitch, formants, resonance, and timbre |
| Modulation spectrum | How rapidly does the sound level rise and fall? | Hz | Rhythm, syllabic timing, articulation, and temporal organization |
The principal analytical sequence of Section 5.1 may be represented as follows:
The section therefore moves beyond the question of whether an envelope exists. Its concern is the complete structure of the envelope: its strength, timing, transmission, and spatial persistence.
Low modulation frequencies represent relatively slow changes, such as phrase-level intensity variation or broad rhythmic organization. Intermediate modulation frequencies often represent syllabic and articulatory timing. Faster modulation frequencies represent more rapid acoustic transitions.
These divisions are not rigid. Their boundaries depend on speaking rate, language, acoustic band, envelope-extraction method, and analysis window. The modulation spectrum is therefore best interpreted as a distribution of temporal activity rather than as a collection of fixed linguistic categories.
At which modulation frequencies does the speech envelope fluctuate, and how strong is each fluctuation?
This subsection begins with the magnitude of the envelope spectrum. Magnitude indicates the amount of envelope fluctuation associated with each modulation frequency, without yet specifying the temporal position of that fluctuation.
Let e(t) denote a temporal envelope and let E(fm) denote its Fourier transform. The quantity |E(fm)| is the modulation magnitude spectrum.
The zero-frequency component represents the mean envelope level. Components above zero represent periodic or quasi-periodic variation around that mean. A strong component at 4 Hz, for example, indicates that the envelope contains a substantial pattern of rise and fall occurring approximately four times per second.
In speech, modulation energy is usually concentrated at relatively low rates compared with the acoustic carrier frequencies. Such low-rate activity reflects the temporal organization of syllables, phonetic transitions, stress, and pauses.
The modulation index expresses the depth of amplitude fluctuation relative to the average level. For a simple sinusoidally modulated envelope,
e(t) = E0[1 + m cos(2πfmt + φ)]
where E0 is the mean envelope level, fm is the modulation frequency, φ is the modulation phase, and m is the modulation index.
For this simple case, the index may also be written as:
m = (emax − emin) / (emax + emin)
m = 0: the envelope is constant and contains no amplitude modulation.m: the difference between strong and weak portions becomes more pronounced.m = 1 in ideal sinusoidal modulation: the envelope reaches zero at its minimum.Speech is not governed by a single sinusoidal modulation. A frequency-dependent modulation index may therefore be obtained by normalizing each modulation component to the mean or zero-frequency component. The numerical factor depends on whether a one-sided or two-sided spectral convention is used.
The subsection is not merely identifying a dominant frequency. Its deeper purpose is to show that speech possesses an organized hierarchy of temporal fluctuations and that the strength of those fluctuations can be measured.
Two signals may have similar acoustic spectra but different modulation spectra. One may contain clear syllabic rises and falls, while the other may be temporally flattened or smeared. The latter can be less intelligible even when its conventional frequency response appears adequate.
Magnitude alone does not indicate when a fluctuation occurs. A time shift can leave the magnitude spectrum unchanged while altering the temporal alignment of the signal. This limitation leads directly to Section 5.1.2.
When do the envelope fluctuations occur, and how closely are two envelopes aligned with one another?
Section 5.1.1 describes how much modulation is present. Section 5.1.2 adds the missing temporal information by examining phase and cross-correlation.
The modulation spectrum is complex-valued and may be written as:
E(fm) = |E(fm)|ejφ(fm)
The magnitude |E(fm)| describes the strength of a modulation component. The phase φ(fm) describes its temporal alignment relative to the selected time origin.
A pure delay τ introduces a phase change proportional to modulation frequency:
Δφ(fm) = −2πfmτ
Absolute phase depends on the chosen time origin. Phase differences between signals, channels, or measurement positions are usually more informative than an isolated absolute phase value.
Cross-correlation compares the similarity of two envelopes while one is shifted relative to the other. For envelopes x(t) and y(t), a representative form is:
Rxy(τ) = ∫ x(t)y(t + τ)dt
In the frequency domain, cross-correlation is associated with the cross-spectrum. The cross-spectrum contains both relative magnitude and relative phase information.
The measured modulation depth of a combined signal depends not only on the magnitudes of its modulation components but also on their relative phases.
Two envelopes with equal modulation magnitudes can reinforce one another when their phases are aligned. The same envelopes can partially cancel when their phases are opposed. Consequently, modulation index cannot always be interpreted independently of phase when multiple bands, sources, channels, or propagation paths are combined.
A high cross-correlation indicates similarity, not causation. Correlation can also be affected by common trends, repeated cycles, filtering, and window length. Mean removal, normalization, lag limits, and statistical confidence therefore require explicit definition.
How does a room, transmission path, or signal-processing system change both the strength and timing of envelope modulation?
Let Xm(fm) be the modulation spectrum of the input envelope and let Ym(fm) be the modulation spectrum of the output envelope. A complex modulation transfer function may be written as:
Hm(fm) = Ym(fm) / Xm(fm)
It may also be expressed as:
Hm(fm) = |Hm(fm)|ejφH(fm)
A conventional modulation transfer function often reports only the ratio of output modulation depth to input modulation depth. This is useful for describing loss of modulation contrast but cannot fully describe temporal displacement.
The complex form retains phase. It can therefore distinguish between two systems that preserve the same modulation magnitude but introduce different delays or phase distortions.
Reverberation, temporal averaging, filtering, dynamic compression, packet processing, and other system operations can smooth or displace an envelope.
Many reverberant or averaging processes behave approximately like low-pass filters in the modulation domain: slow envelope variations are preserved more effectively than rapid variations. This behavior is not universal, but it provides a useful conceptual model.
A phase that changes approximately linearly with modulation frequency is associated with delay. A nonlinear phase pattern indicates that different modulation rates experience different delays, producing temporal deformation rather than a simple uniform shift.
Measurement generally requires a known input modulation and an observed output envelope. Modulated tones, modulated noise, speech-like signals, or measured source envelopes may serve as test inputs.
Numerical instability can occur when the input modulation spectrum is very small. Practical estimation may therefore require averaging, regularization, coherence testing, or restriction to modulation frequencies with adequate input energy.
The acoustic system may be linear in sound pressure while envelope extraction is nonlinear. The complex modulation transfer function should consequently be regarded as an operational input-output descriptor of envelope behavior rather than an unconditional linear-system identity.
For how long, and over what region of space, does the measured envelope remain representative of the direct sound rather than reflections or diffuse sound?
Direct sound reaches the receiver through the shortest propagation path. Reflections arrive later after interacting with walls, objects, body surfaces, or other boundaries.
The directly arriving waveform carries an envelope determined primarily by the source and the direct path. Once reflected components become significant, constructive and destructive interference can reshape that envelope.
The temporal range concerns the interval during which the direct component dominates sufficiently for its envelope to remain identifiable.
This interval is not a universal number of milliseconds. It depends on source-receiver distance, room dimensions, nearby reflecting surfaces, acoustic band, source directivity, temporal window, and the criterion used to define dominance.
A narrow temporal window may isolate the first arrival but reduce modulation-frequency resolution. A long window improves spectral resolution but includes more reflected energy. Section 5.1.4 therefore involves an inherent time-resolution and modulation-resolution trade-off.
The spatial range concerns the region over which the direct-sound envelope remains sufficiently stable, coherent, or similar between measurement positions.
In a free field, distance primarily changes level and propagation delay while the envelope shape may remain comparatively stable. In an enclosed or scattering environment, small changes in position can alter the balance of direct and reflected components, producing different envelope magnitudes and phases.
The relevant spatial range depends on acoustic wavelength, signal bandwidth, source size, source directivity, receiver orientation, environmental geometry, and the selected similarity criterion.
A practical boundary between direct-envelope dominance and reflected-field influence may be defined through one or more measurable criteria:
No single criterion is universally sufficient. The appropriate definition depends on the practical purpose of the measurement.
| Subsection | Core question | Principal quantity | What becomes observable | Representative application |
|---|---|---|---|---|
| 5.1.1 | How strong is each rate of envelope fluctuation? | Magnitude spectrum and modulation index | Temporal contrast and dominant modulation ranges | Speech coding and intelligibility preservation |
| 5.1.2 | When does each fluctuation occur, and how are two envelopes aligned? | Phase spectrum and cross-correlation | Delay, synchrony, similarity, and relative timing | Microphone alignment and multichannel analysis |
| 5.1.3 | How does a system transform envelope fluctuations? | Complex modulation transfer function | Modulation attenuation and phase distortion | Room, codec, device, and transmission evaluation |
| 5.1.4 | Where and for how long does direct-envelope information remain valid? | Temporal and spatial envelope range | Region of direct-sound dominance and coherence | Room coverage and sensor placement |
The logical progression is therefore:
Magnitude → timing → transmission → temporal and spatial validity.
The four subsections should not be regarded as isolated topics. Together, they establish a complete description of envelope behavior.
Section 5.1 argues that an acoustic system should not be evaluated only by the frequencies it passes. It should also be evaluated by whether it preserves the strength, timing, relational structure, and spatial stability of the sound envelope.
Section 5.1.1 measures how much modulation exists. Section 5.1.2 determines when it occurs and how two envelopes relate. Section 5.1.3 determines how a system transforms the modulation. Section 5.1.4 determines where and for how long the direct-envelope information remains meaningful.
Its practical message is that temporal organization must be preserved, not merely acoustic bandwidth. Clear speech, reliable sensing, effective hearing support, and stable spatial reproduction all depend on the envelope retaining an appropriate pattern of magnitude and phase.
설명의 범위. 다음 내용은 5.1절의 세부 목차와 일반적인 포락선 분석 체계를 바탕으로 구성한 개념적 해석이다. 책에서 사용하는 정확한 기호와 실험 절차는 다를 수 있다.
5.1절은 시간 포락선(Temporal Envelope)을 하나의 독립적인 신호로 다룬다. 포락선이 얼마나 빠르게 변하는지, 그 변화가 언제 발생하는지, 음향 시스템이 그 변화를 어떻게 바꾸는지, 그리고 원래의 포락선이 시간과 공간에서 어느 범위까지 관찰되는지를 분석한다.
일반적인 음향 스펙트럼(Acoustic Spectrum)은 소리 파형의 빠른 진동을 나타낸다. 이러한 진동은 음향 주파수, 음높이(Pitch), 공명, 음색과 관련된다.
포락선은 이와 다른 현상을 나타낸다. 포락선은 소리 진폭이 비교적 느리게 증가하고 감소하는 형태이다. 포락선도 시간에 따라 변하는 신호이므로 푸리에 변환을 적용할 수 있으며, 그 결과를 변조 스펙트럼(Modulation Spectrum)이라고 한다.
예를 들어 진폭이 초당 네 번 커졌다가 작아지는 1,000 Hz 순음을 생각할 수 있다. 이 신호의 음향 반송 주파수(Carrier Frequency)는 1,000 Hz이지만, 변조 주파수(Modulation Frequency)는 4 Hz이다.
| 분석 영역 | 핵심 질문 | 대표 단위 | 주요 지각적 의미 |
|---|---|---|---|
| 음향 스펙트럼 | 어떤 빠른 진동 성분이 소리를 구성하는가? | Hz 또는 kHz | 음높이, 포먼트, 공명 및 음색 |
| 변조 스펙트럼 | 소리의 세기가 얼마나 빠르게 증가하고 감소하는가? | Hz | 리듬, 음절 시점, 조음 및 시간적 구성 |
5.1절의 주요 분석 과정은 다음과 같이 정리할 수 있다.
따라서 이 절은 단순히 포락선의 존재를 확인하는 데 그치지 않는다. 포락선의 강도, 시점, 전달 특성 및 공간적 지속 범위를 종합적으로 다룬다.
낮은 변조 주파수는 구절 단위의 음량 변화나 전체적인 리듬과 같은 느린 변화를 나타낸다. 중간 범위의 변조 주파수는 음절과 조음의 시간 구조를 나타내는 경우가 많다. 더 높은 변조 주파수는 빠른 음향 전이와 관련될 수 있다.
이러한 구분은 절대적인 경계가 아니다. 발화 속도, 언어, 음향 대역, 포락선 추출 방식 및 분석 구간에 따라 달라진다. 따라서 변조 스펙트럼은 고정된 언어학적 범주의 집합보다는 시간적 활동이 분포하는 형태로 해석하는 것이 적절하다.
음성 포락선은 어떤 변조 주파수로 흔들리며, 각 흔들림의 강도는 어느 정도인가?
이 소절은 포락선 스펙트럼의 크기(Magnitude)에서 출발한다. 크기는 각 변조 주파수에 해당하는 포락선 변화량을 나타낸다. 다만 그 변화가 시간상 어느 위치에서 발생했는지는 아직 나타내지 않는다.
시간 포락선을 e(t), 그 푸리에 변환을 E(fm)이라고 할 때, |E(fm)|가 변조 크기 스펙트럼이다.
0 Hz 성분은 포락선의 평균 크기를 나타낸다. 0 Hz보다 높은 성분은 평균값을 중심으로 발생하는 주기적 또는 준주기적 변화를 나타낸다. 예를 들어 4 Hz 성분이 강하다면 포락선이 초당 약 네 번 증가하고 감소하는 패턴을 상당히 포함한다는 의미이다.
음성의 변조 에너지는 일반적으로 음향 반송 주파수보다 훨씬 낮은 범위에 집중된다. 이러한 저주파 변조는 음절, 음성 전이, 강세 및 휴지의 시간적 배열을 반영한다.
변조 지수(Modulation Index)는 평균 크기에 비해 진폭 변화가 얼마나 깊은지를 나타낸다. 단순한 정현파 변조 포락선은 다음과 같이 표현할 수 있다.
e(t) = E0[1 + m cos(2πfmt + φ)]
여기서 E0는 평균 포락선 크기, fm은 변조 주파수, φ는 변조 위상, m은 변조 지수이다.
이와 같은 단순한 경우에는 다음 식으로도 나타낼 수 있다.
m = (emax − emin) / (emax + emin)
m = 0: 포락선이 일정하며 진폭 변조가 없는 상태이다.
m이 커지는 경우: 강한 구간과 약한 구간의 차이가 더욱 뚜렷해진다.
m = 1: 포락선의 최소값이 0에 도달한다.
실제 음성은 하나의 정현파 변조로 이루어지지 않는다. 따라서 각 변조 주파수 성분을 평균값 또는 0 Hz 성분으로 정규화하여 주파수별 변조 지수를 정의할 수 있다. 단측 스펙트럼과 양측 스펙트럼 중 어떤 규약을 사용하는지에 따라 수치 계수가 달라질 수 있다.
이 소절의 목적은 하나의 우세 주파수를 찾는 데만 있지 않다. 음성에는 여러 시간 규모의 포락선 변화가 체계적으로 존재하며, 각 변화의 강도를 정량화할 수 있다는 점을 밝히는 데 있다.
두 신호가 비슷한 음향 스펙트럼을 가지더라도 변조 스펙트럼은 다를 수 있다. 한 신호에는 음절의 증가와 감소가 선명하게 남아 있는 반면, 다른 신호에서는 시간적 변화가 평탄화되거나 퍼질 수 있다. 후자의 경우 일반적인 주파수 응답이 충분해 보이더라도 명료도가 낮아질 수 있다.
크기만으로는 포락선 변화가 언제 발생했는지 알 수 없다. 신호가 시간상 이동하더라도 크기 스펙트럼은 변하지 않을 수 있다. 이 한계를 보완하는 내용이 5.1.2절의 위상과 상호상관 분석이다.
포락선의 변화는 언제 발생하며, 두 포락선은 시간상 얼마나 잘 정렬되어 있는가?
5.1.1절이 변조가 얼마나 존재하는지를 설명한다면, 5.1.2절은 위상과 상호상관을 이용하여 시간 정보를 추가한다.
변조 스펙트럼은 복소수이며 다음과 같이 표현할 수 있다.
E(fm) = |E(fm)|ejφ(fm)
크기 |E(fm)|는 변조 성분의 강도를 나타내고, 위상 φ(fm)는 선택한 시간 원점을 기준으로 해당 성분이 정렬된 위치를 나타낸다.
순수한 시간 지연 τ는 변조 주파수에 비례하는 위상 변화를 만든다.
Δφ(fm) = −2πfmτ
절대 위상은 시간 원점의 선택에 따라 달라진다. 따라서 고립된 절대 위상값보다는 신호, 채널 또는 측정 위치 사이의 위상차가 일반적으로 더 의미 있다.
상호상관(Cross-Correlation)은 한 포락선을 다른 포락선에 대해 시간 이동시키면서 두 신호의 유사도를 비교한다. 포락선 x(t)와 y(t)에 대한 대표적인 식은 다음과 같다.
Rxy(τ) = ∫ x(t)y(t + τ)dt
주파수 영역에서 상호상관은 교차 스펙트럼(Cross-Spectrum)과 관련된다. 교차 스펙트럼은 상대적인 크기와 상대적인 위상 정보를 함께 포함한다.
여러 성분이 결합된 신호의 변조 깊이는 각 성분의 크기뿐 아니라 상대 위상에도 영향을 받는다.
변조 크기가 같은 두 포락선이 동일한 위상으로 정렬되면 변화가 강화될 수 있다. 반대 위상으로 정렬되면 변화가 부분적으로 상쇄될 수 있다. 따라서 여러 대역, 음원, 채널 또는 전달 경로가 결합되는 상황에서는 위상을 고려하지 않고 변조 지수만 해석하기 어렵다.
높은 상호상관은 유사성을 나타낼 뿐 인과관계를 증명하지 않는다. 공통 추세, 반복 주기, 필터링 및 분석 구간의 길이도 상관값에 영향을 줄 수 있다. 따라서 평균 제거, 정규화, 허용 지연 범위 및 통계적 신뢰도를 명확히 정의할 필요가 있다.
공간, 전달 경로 또는 신호처리 시스템은 포락선 변조의 강도와 시점을 어떻게 변화시키는가?
입력 포락선의 변조 스펙트럼을 Xm(fm), 출력 포락선의 변조 스펙트럼을 Ym(fm)이라고 하면 복소 변조 전달 함수(Complex Modulation Transfer Function)는 다음과 같이 나타낼 수 있다.
Hm(fm) = Ym(fm) / Xm(fm)
이를 크기와 위상으로 나누면 다음과 같다.
Hm(fm) = |Hm(fm)|ejφH(fm)
일반적인 변조 전달 함수(Modulation Transfer Function)는 입력 변조 깊이에 대한 출력 변조 깊이의 비율만을 나타내는 경우가 많다. 이는 변조 대비의 손실을 설명하는 데 유용하지만 시간적 이동까지 완전하게 표현하지는 못한다.
복소 형태는 위상을 보존한다. 따라서 변조 크기는 동일하게 보존하지만 서로 다른 지연이나 위상 왜곡을 발생시키는 두 시스템을 구별할 수 있다.
잔향, 시간 평균, 필터링, 동적 압축, 패킷 처리 및 기타 시스템 동작은 포락선을 평활화하거나 시간상 이동시킬 수 있다.
잔향이나 평균화가 강한 시스템은 변조 영역에서 저역통과 필터와 유사한 특성을 보이는 경우가 많다. 느린 포락선 변화는 비교적 잘 보존되지만 빠른 변화는 더 크게 감쇠된다. 이는 모든 시스템에 적용되는 보편 법칙은 아니지만 유용한 개념적 모델이다.
위상이 변조 주파수에 대해 거의 선형적으로 변하면 일정한 시간 지연과 관련될 수 있다. 위상 변화가 비선형적이면 변조 속도마다 서로 다른 지연이 발생하여 단순 이동이 아닌 시간적 변형이 생길 수 있다.
측정을 위해서는 일반적으로 알려진 입력 변조와 관찰된 출력 포락선이 필요하다. 변조 순음, 변조 잡음, 음성과 유사한 시험 신호 또는 실제 음원의 측정 포락선을 입력으로 사용할 수 있다.
입력 변조 스펙트럼이 매우 작은 주파수에서는 나눗셈이 수치적으로 불안정해질 수 있다. 따라서 실제 추정에는 평균화, 정규화, 규제화(Regularization), 결맞음도(Coherence) 검사 또는 충분한 입력 에너지가 존재하는 변조 주파수만 사용하는 절차가 필요할 수 있다.
음압 영역의 음향 시스템은 선형일 수 있지만 포락선 추출 연산은 비선형이다. 따라서 복소 변조 전달 함수는 모든 조건에서 성립하는 절대적인 선형 시스템 항등식이라기보다 포락선의 입력과 출력 관계를 나타내는 실용적 기술량으로 이해하는 것이 적절하다.
측정된 포락선이 반사음이나 확산음보다 직접음을 대표한다고 볼 수 있는 시간과 공간의 범위는 어디까지인가?
직접음은 가장 짧은 전달 경로를 통해 수신기에 도달한다. 반사음은 벽, 물체, 신체 표면 또는 기타 경계면과 상호작용한 뒤 더 늦게 도달한다.
최초 도달 파형은 주로 음원과 직접 경로에 의해 결정되는 포락선을 전달한다. 반사 성분이 커지기 시작하면 보강 및 상쇄 간섭으로 인해 포락선 형태가 달라질 수 있다.
시간적 범위(Temporal Range)는 직접 성분이 충분히 우세하여 그 포락선을 식별할 수 있는 시간 구간을 의미한다.
이 범위는 모든 환경에 적용되는 고정된 밀리초 값이 아니다. 음원과 수신기의 거리, 실내 크기, 가까운 반사면, 음향 주파수 대역, 음원의 지향성, 분석 창 및 직접음 우세를 판단하는 기준에 따라 달라진다.
짧은 시간 창은 최초 도달음을 분리하는 데 유리하지만 변조 주파수 분해능이 낮아진다. 긴 시간 창은 스펙트럼 분해능을 높이지만 더 많은 반사 에너지를 포함한다. 따라서 5.1.4절에는 시간 분해능과 변조 주파수 분해능 사이의 절충 관계가 포함된다.
공간적 범위(Spatial Range)는 여러 측정 위치에서 직접음 포락선이 충분히 안정적이거나 일관되며 서로 유사하게 유지되는 공간 영역을 의미한다.
자유 음장에서는 거리가 주로 음압 크기와 전달 지연을 변화시키며 포락선 형태는 비교적 안정적으로 유지될 수 있다. 밀폐되거나 산란이 많은 환경에서는 작은 위치 변화도 직접음과 반사음의 비율을 바꾸어 서로 다른 포락선 크기와 위상을 만들 수 있다.
유효한 공간 범위는 음향 파장, 신호 대역폭, 음원 크기, 음원 지향성, 수신기 방향, 환경의 기하학적 구조 및 선택한 유사도 기준에 따라 달라진다.
직접음 포락선이 우세한 영역과 반사음의 영향이 커지는 영역 사이의 경계는 다음과 같은 측정 기준을 이용하여 정의할 수 있다.
하나의 기준만으로 모든 상황을 설명하기는 어렵다. 측정의 실제 목적에 따라 적절한 정의를 선택해야 한다.
| 소절 | 핵심 질문 | 주요 분석량 | 확인할 수 있는 내용 | 대표 적용 |
|---|---|---|---|---|
| 5.1.1 | 각 포락선 변화 속도의 강도는 어느 정도인가? | 크기 스펙트럼과 변조 지수 | 시간적 대비와 주요 변조 범위 | 음성 부호화와 명료도 보존 |
| 5.1.2 | 각 변화는 언제 발생하며 두 포락선은 어떻게 정렬되는가? | 위상 스펙트럼과 상호상관 | 지연, 동기성, 유사도 및 상대 시점 | 마이크 정렬과 다채널 분석 |
| 5.1.3 | 시스템은 포락선 변조를 어떻게 바꾸는가? | 복소 변조 전달 함수 | 변조 감쇠와 위상 왜곡 | 공간, 코덱, 장치 및 전달 시스템 평가 |
| 5.1.4 | 직접음 포락선 정보는 언제까지, 어디까지 유효한가? | 시간적·공간적 포락선 범위 | 직접음이 우세하고 일관성이 유지되는 영역 | 실내 음향 범위와 센서 배치 |
네 소절의 논리적 흐름은 다음과 같다.
크기 → 시점 → 전달 → 시간적·공간적 유효 범위
따라서 각 소절은 서로 분리된 주제가 아니다. 네 소절을 함께 보아야 포락선의 거동을 완전하게 설명할 수 있다.
5.1절은 음향 시스템을 통과하는 주파수만으로 평가해서는 충분하지 않다는 점을 말한다. 소리 포락선의 강도, 시점, 상호 관계 및 공간적 안정성이 얼마나 보존되는지도 함께 평가해야 한다.
5.1.1절은 변조가 얼마나 존재하는지를 측정한다. 5.1.2절은 그 변조가 언제 발생하며 두 포락선이 어떻게 관계되는지 분석한다. 5.1.3절은 시스템이 변조를 어떻게 변화시키는지 설명한다. 5.1.4절은 직접음 포락선 정보가 시간과 공간에서 어디까지 유효한지 다룬다.
이 절의 실용적 메시지는 음향 대역폭뿐 아니라 시간적 조직도 보존해야 한다는 것이다. 명료한 음성, 신뢰할 수 있는 음향 센싱, 효과적인 청각 보조 및 안정적인 공간 재생은 모두 포락선의 적절한 크기와 위상 구조가 유지되는지에 좌우된다.
Written on June 28, 2026
Scope. The following discussion presents a conceptual interpretation of Section 5.2 based on its subsection structure and the established framework of narrow-band envelope processing. The exact notation, signal conditions, and experimental procedures used in the book may differ.
Section 5.2 examines how much speech information remains available when the original waveform is divided into narrow frequency bands and represented primarily by the temporal envelope of each band. It also examines the limit of this envelope-based explanation by considering phase changes and time-reversed speech.
The principal question of Section 5.2 is not whether a speech waveform can be reproduced perfectly. It is whether speech can remain understandable after much of its detailed waveform structure has been removed.
This question separates two different engineering objectives:
Section 5.2 suggests that these objectives are not identical. A signal may differ substantially from the original waveform and still retain useful speech intelligibility.
Speech intelligibility can remain surprisingly robust when the temporal envelopes of several frequency bands are preserved, even if much of the original fine waveform structure is absent.
This does not mean that envelope information is the only information required for hearing. Fine structure and phase remain important for pitch, sound quality, localization, speaker separation, and certain difficult listening conditions.
The more precise conclusion is that multiple narrow-band envelopes provide a highly efficient representation of the temporal and spectral organization of speech.
A single wide-band envelope indicates only when the entire speech signal becomes stronger or weaker. It does not indicate which frequency region produced the change.
A set of narrow-band envelopes retains both temporal and spectral organization:
This representation can preserve syllabic rhythm, vowel-related energy patterns, consonant onsets, pauses, stress, and transitions between phonetic units.
Section 5.1 explains how envelope modulation can be measured through magnitude, phase, correlation, and transfer functions. Section 5.2 asks why those measurements matter perceptually.
| Section | Primary concern | Principal question |
|---|---|---|
| 5.1 | Analysis of envelope modulation | How can envelope fluctuation be measured and described? |
| 5.2 | Perceptual importance of narrow-band envelopes | How much speech understanding depends on those envelope patterns? |
Let x(t) denote a speech waveform. A filter bank separates the waveform into several acoustic-frequency channels:
xk(t) = hk(t) * x(t)
Here, hk(t) is the impulse response of the k-th band-pass filter, * denotes convolution, and xk(t) is the signal in that frequency band.
A typical processing sequence is:
A narrow-band signal can be represented conceptually as:
xk(t) = ek(t) cos[φk(t)]
In this expression:
ek(t) is the slowly varying envelope.
cos[φk(t)] represents the faster temporal fine structure.
The envelope may be obtained from the magnitude of an analytic signal:
ek(t) = |xk(t) + jH{xk(t)}|
Here, H{·} denotes the Hilbert transform. Rectification followed by low-pass filtering, short-time energy, and root-mean-square analysis are alternative envelope-extraction methods.
An envelope-based reconstruction may be expressed as:
y(t) = Σk ek(t)ck(t)
In this expression, ck(t) is a replacement carrier in the k-th band. The carrier may be a tone, narrow-band noise, or another signal with an appropriate spectral location.
The original fine structure need not be retained. The reconstructed signal can therefore sound artificial while remaining partly or substantially understandable.
| Concept | Meaning | Typical contribution |
|---|---|---|
| Acoustic frequency | Rate of rapid waveform oscillation | Pitch region, formants, resonance, and timbre |
| Modulation frequency | Rate at which an envelope rises and falls | Rhythm, syllabic timing, and temporal transitions |
| Narrow-band envelope | Energy variation within a limited acoustic-frequency channel | Speech timing combined with spectral-place information |
| Temporal fine structure | Rapid oscillation and instantaneous phase within a band | Pitch, harmonicity, localization, and source segregation |
| Audibility | Whether a sound can be detected | Detection of acoustic energy |
| Intelligibility | Whether the linguistic message can be understood | Recognition of words, sentences, and meaning |
When the original waveform detail is reduced or replaced, can the recovered envelopes of narrow frequency bands still support speech understanding?
Envelope recovery may be understood in two related ways.
The second meaning is important because phase relationships and interactions among nearby frequency components can produce beating. After narrow-band filtering, such beating can create a new or recovered envelope.
Envelope recovery is therefore not always a simple process of reading an unchanged envelope from the original waveform. The recovered result depends on filter bandwidth, center frequency, component spacing, phase, and the method used to calculate the envelope.
Speech is produced through a sequence of articulatory events. These events distribute energy differently across frequency bands and across time.
Narrow-band envelopes preserve several important forms of information:
A listener does not receive only a sequence of total energy peaks. The listener receives a pattern of peaks distributed across auditory frequency channels. That distributed pattern helps distinguish one phonetic sequence from another.
A wide-band envelope combines energy from many acoustic-frequency regions. Different frequency components can reinforce or cancel one another, and distinct speech events can become merged into one overall amplitude contour.
For example, two speech sounds may have similar total amplitude over time while placing their energy in different spectral regions. A single wide-band envelope can treat them as similar even though they represent different phonetic information.
Narrow-band analysis reduces this ambiguity by preserving the frequency location of each envelope event.
Increasing the number of frequency channels generally provides a more detailed representation of where envelope changes occur. A very small number of channels preserves broad temporal rhythm but provides limited spectral-place information.
As more channels are added, distinctions among vowels, consonants, and transitions may become clearer. The improvement eventually shows diminishing returns because additional channels can become narrower than necessary for the available speech information or the listener's effective spectral resolution.
There is no universal channel number that guarantees a particular intelligibility score. Performance depends on:
The extracted envelope is normally low-pass filtered. This operation determines how rapidly the retained envelope is allowed to change.
The selected cutoff should therefore match the analytical purpose. Speech intelligibility depends not only on whether an envelope is retained, but also on which modulation frequencies remain in that envelope.
Envelope-based speech can remain understandable without sounding natural.
| Outcome | Possible result with envelope-based speech |
|---|---|
| Word recognition | May remain relatively strong when sufficient band-specific envelopes are preserved |
| Naturalness | May be reduced because the carrier and fine structure are artificial |
| Voice identity | May become less distinct |
| Pitch perception | May be weak or ambiguous |
| Music perception | May be substantially degraded |
| Localization | May be reduced when interaural fine-structure cues are absent |
A system designed only to maximize word recognition may therefore differ from a system designed for natural, spatially accurate, and emotionally expressive sound.
The statement that envelopes support intelligibility should not be interpreted as a claim that any envelope representation is sufficient.
If a signal retains essentially the same long-term magnitude spectrum, why can a change in phase and temporal order make the speech much more difficult to understand?
For a speech segment of duration T, the time-reversed waveform can be written as:
xr(t) = x(T − t)
Time reversal does not merely reverse the order of written syllables. It reverses every waveform event, including attacks, decays, closures, releases, transitions, and local oscillations.
For a real-valued signal, the Fourier transform of the reversed waveform may be expressed as:
Xr(f) = e−j2πfTX*(f)
Consequently:
|Xr(f)| = |X(f)|
The overall magnitude spectrum remains the same under ideal full time reversal, while the spectral phase and temporal sequence are changed.
Original and time-reversed speech can contain the same amount of energy at each acoustic frequency. Nevertheless, the reversed signal generally becomes difficult to understand.
This demonstrates that speech is not defined only by the inventory of frequency components. The temporal arrangement of those components is essential.
Magnitude answers the question:
Which frequency components are present, and how strong are they?
Phase and temporal order answer a different question:
How are those components aligned to form meaningful acoustic events?
The broad envelope pattern is also reversed in time. An event that originally increased rapidly and decayed slowly will increase slowly and terminate abruptly after reversal.
Consider an original phonetic sequence:
Closure → release burst → transition → vowel
After time reversal, the corresponding progression becomes approximately:
Reversed vowel → reversed transition → reversed burst → closure
The spectral ingredients remain present, but their causal and articulatory progression no longer resembles ordinary speech production.
Phase does not always affect intelligibility in the same manner. A uniform time delay changes phase linearly with frequency but does not destroy the internal organization of speech.
More disruptive phase changes can alter the relative alignment of components. When several nearby components enter the same auditory filter, their relative phases determine constructive and destructive interference. This interference affects the local narrow-band waveform and can alter its recovered envelope.
The following distinction is therefore important:
It is the disruption of meaningful relative timing, rather than phase change in the abstract, that is most relevant to speech intelligibility.
Full reversal changes the order of the entire utterance. Local reversal divides speech into short segments and reverses the waveform only within each segment.
These conditions affect speech differently:
The relevant boundary depends on speaking rate, language, segment duration, filtering, listener experience, and the linguistic material used in the test.
Several forms of temporal organization are altered simultaneously:
Time reversal therefore changes both low-level acoustics and high-level linguistic organization.
Envelope and temporal fine structure are useful analytical concepts, but their separation depends on the selected filter band.
A pattern classified as fine structure in a wide channel may appear as a slower beat envelope after narrower filtering. Conversely, an envelope calculated from an excessively wide band may include rapid interference that would not be treated as an envelope in a narrower auditory channel.
Phase can therefore influence speech understanding indirectly by changing the envelope that emerges after auditory filtering.
| Information type | What it describes | Strong contributions | Typical consequence of degradation |
|---|---|---|---|
| Narrow-band envelope | Slow amplitude variation within each frequency channel | Syllabic rhythm, phonetic boundaries, stress, and basic intelligibility | Speech becomes flattened, smeared, or difficult to segment |
| Temporal fine structure | Rapid waveform oscillation within a channel | Pitch, harmonicity, voice quality, localization, and source separation | Speech may remain understandable but sound unnatural or become difficult in competing sound |
| Relative phase | Temporal alignment among components or channels | Waveform shape, onset alignment, recovered envelope, and interchannel timing | Temporal distortion, cancellation, or unnatural transitions |
| Temporal order | Sequence in which acoustic events occur | Phonetic progression, lexical structure, and linguistic interpretation | Severe loss of meaning under extensive reversal |
Section 5.2.1 establishes the power of band-specific envelope information. Section 5.2.2 establishes the boundary of that conclusion.
The combined interpretation is:
Narrow-band envelopes can carry a substantial portion of the information required for speech understanding, but they must retain meaningful temporal order and cross-channel organization. Fine structure and phase provide additional information and can also influence the envelopes recovered by the auditory system.
| Subsection | Question | Main finding represented conceptually | Design implication |
|---|---|---|---|
| 5.2.1 | How much speech information can narrow-band envelopes carry? | Substantial intelligibility can remain when several band-specific envelopes are preserved. | Preserve envelope contrast and spectral-channel structure. |
| 5.2.2 | What happens when phase and temporal order are altered? | Identical long-term spectral magnitude does not guarantee intelligibility. | Preserve relative timing, direction of transitions, and cross-band coordination. |
Cochlear implant processing commonly divides speech into frequency channels and extracts the envelope from each channel. The envelopes control patterns of electrical stimulation delivered at different cochlear locations.
Section 5.2 helps explain why such a representation can support speech understanding despite limited transmission of natural acoustic fine structure.
It also explains why the following design details remain important:
Multichannel hearing aids apply amplification, compression, noise reduction, and feedback control separately in different frequency regions.
Excessively fast or strong compression can modify the original envelope. Different processing delays across channels can also disturb temporal alignment.
A technically louder signal may therefore fail to provide a corresponding improvement in intelligibility if important envelope contrasts have been reduced.
Low-bit-rate systems cannot preserve every detail of the original waveform. Narrow-band envelope analysis provides a principled method for identifying temporal information that deserves protection.
Effective coding should preserve:
Noise can introduce false envelope fluctuations or mask genuine speech-envelope peaks. Reverberation can fill the valleys between speech events and reduce modulation depth.
A successful enhancement system should not merely reduce average noise power. It should restore or preserve the temporal contrast of speech without producing unnatural phase discontinuities.
Automatic recognition systems benefit from representations that retain the changing distribution of energy across frequency bands.
Long-term spectral magnitude alone is insufficient because different words can contain similar frequency components arranged in different temporal orders.
The principles of Section 5.2 support the use of:
Reverberant rooms, public-address systems, and conferencing devices can preserve average frequency response while smearing temporal envelopes.
Section 5.2 indicates that speech transmission should be evaluated through temporal modulation, envelope contrast, and cross-band timing in addition to conventional frequency response.
The direct subject of Section 5.2 is speech, but the envelope and fine-structure distinction can also assist analysis of physiological sounds.
| Signal | Envelope-related information | Fine-structure-related information |
|---|---|---|
| Heart sound | S1 and S2 timing, cardiac rhythm, event duration, and amplitude variation | Valve clicks, spectral texture, murmurs, and transient detail |
| Respiratory sound | Inspiratory and expiratory timing, respiratory cycle, and intensity pattern | Wheeze frequency, crackle waveform, and turbulent texture |
| Mixed cardiopulmonary recording | Separation of slow respiratory modulation from repeated cardiac bursts | Identification of residual source-specific spectral detail |
In source-separation work, narrow-band envelopes may help determine whether a separated component follows a plausible cardiac or respiratory time pattern. This is an analytical extension rather than a direct claim about speech intelligibility.
| Measure | What it evaluates |
|---|---|
| Word or phoneme score | Recognition of local speech units |
| Sentence score | Recognition supported by acoustic and linguistic context |
| Envelope correlation | Similarity between original and reconstructed band envelopes |
| Modulation-spectrum error | Loss or distortion of envelope fluctuation rates |
| Cross-channel delay | Temporal misalignment among frequency bands |
| Subjective quality rating | Naturalness, clarity, effort, and listening comfort |
| Listening effort | Cognitive demand required to understand the signal |
Section 5.2 presents speech as a coordinated pattern of energy changes distributed across frequency bands and organized in time. Narrow-band envelopes can preserve much of this pattern, but their usefulness depends on appropriate spectral separation, modulation content, phase relationships, and temporal order.
Section 5.2.1 demonstrates the perceptual value of recovering and preserving band-specific envelopes. Section 5.2.2 demonstrates that long-term spectral magnitude is not sufficient when phase and temporal order have been altered.
The practical message may be summarized as follows:
Preserve where speech energy occurs, preserve when it changes, and preserve the temporal relationship among frequency channels.
This principle is directly relevant to cochlear implants, hearing aids, speech coding, noise reduction, automatic recognition, room acoustics, and other systems in which perfect waveform reproduction is unavailable or unnecessary.
Written on June 28, 2026
Scope. The following discussion presents a conceptual interpretation of Section 5.3 based on its subsection structure and the general principles of periodicity, autocorrelation, missing-fundamental perception, and envelope analysis. The exact notation and experimental procedures used in the book may differ.
Section 5.3 explains that sound can possess meaningful periodicity even when its fundamental-frequency component is absent. Periodicity may be detected from waveform repetition, harmonic relationships, autocorrelation peaks, or the recurring pattern of a temporal envelope.
Section 5.3 asks how a periodic pattern can be identified and interpreted when the relevant repetition is not represented by one obvious spectral component.
The section addresses three connected questions:
Fundamental frequency is not merely the lowest visible line in a frequency spectrum. It may also represent the reciprocal of a common temporal repetition period inferred from the combined structure of several components.
This distinction is essential. A physical spectrum, a repeating waveform, a repeating envelope, and a perceived pitch are related, but they are not identical.
A sound can contain more than one relevant periodicity at the same time.
These periodicities may coincide in a simple tone, but they often differ in speech, music, modulated signals, physiological sounds, and complex harmonic tones.
| Section | Primary concern | Main question |
|---|---|---|
| 5.1 | Modulation spectrum of the envelope | At which rates does the envelope fluctuate? |
| 5.2 | Narrow-band envelopes and speech intelligibility | How much speech information is conveyed by band-specific envelopes? |
| 5.3 | Fundamental frequency and envelope period | How can repetition, pitch, and envelope periodicity be estimated and interpreted? |
If a pattern repeats every T seconds, its repetition frequency is:
f = 1 / T
Conversely:
T = 1 / f
The same reciprocal relationship applies to acoustic oscillation, waveform repetition, envelope modulation, musical rhythm, cardiac cycles, and respiratory cycles. The physical interpretation depends on the signal being measured.
For a periodic waveform, the fundamental frequency F0 is the reciprocal of the smallest positive period T0 that reproduces the complete waveform:
F0 = 1 / T0
In a harmonic spectrum, frequency components commonly occur at integer multiples of this fundamental:
F0, 2F0, 3F0, 4F0, ...
The physical component at F0 may be weak or absent even though the remaining components still imply the same underlying periodicity.
If the temporal envelope repeats every Te seconds, its fundamental modulation frequency is:
Fe = 1 / Te
The expression envelope F0 may be used informally for this lowest envelope-repetition frequency. More precisely, it is the fundamental modulation frequency of the envelope.
Envelope F0 should not automatically be equated with the acoustic F0 of a voiced sound. A speech signal may have an acoustic F0 near 100 Hz while its syllabic envelope fluctuates near only a few hertz.
Pitch is a perceptual attribute. Fundamental frequency is a physical or mathematical property of a signal model.
In simple periodic tones, pitch and F0 correspond closely. In complex sounds, missing-fundamental tones, inharmonic tones, noisy signals, and modulated signals, the relationship can become more complicated.
| Quantity | Meaning | Representative example |
|---|---|---|
| Acoustic carrier frequency | Rapid oscillation rate of a carrier | 1,000 Hz tone |
| Waveform F0 | Reciprocal of the complete waveform repetition period | 100 Hz harmonic complex |
| Envelope fundamental modulation frequency | Reciprocal of the envelope repetition period | 4 Hz amplitude fluctuation |
| Perceived pitch | Auditory estimate of tonal height | Pitch corresponding to a missing 100 Hz fundamental |
| Rhythmic rate | Rate of recurring macroscopic events | Heart rate, respiratory rate, or musical beat |
How can the repetition interval of a sequence be estimated by comparing the sequence with delayed copies of itself?
Autocorrelation measures the similarity between a signal and a time-shifted version of the same signal.
For a continuous-time signal x(t), a representative autocorrelation expression is:
Rxx(τ) = ∫ x(t)x(t + τ)dt
For a discrete sequence x[n], a corresponding expression is:
Rxx[k] = Σn x[n]x[n + k]
Here, τ and k represent temporal lag. A large positive autocorrelation indicates that the original and delayed patterns align well at that lag.
If a signal repeats every T0 seconds, shifting the signal by T0 causes one cycle to align with the next.
Autocorrelation therefore tends to produce peaks near:
τ = T0, 2T0, 3T0, ...
The peak at zero lag is normally the largest because the signal is perfectly aligned with itself. Period estimation therefore searches for an appropriate nonzero-lag peak.
Raw autocorrelation depends on signal energy. Normalization can make comparisons across signals or time frames more meaningful.
A simple normalized form is:
ρxx[k] = Rxx[k] / Rxx[0]
Under this convention, the zero-lag value is 1. Other peaks indicate the strength of repeated structure relative to the total energy.
Other biased, unbiased, or locally normalized definitions may also be used. The selected definition should be stated because different normalizations can produce different peak heights.
For a discrete signal sampled at fs samples per second, if the selected peak occurs at lag k0, then:
T̂0 = k0 / fs
F̂0 = fs / k0
Autocorrelation can detect repeated patterns even when individual cycles are not identical. This makes it useful for quasi-periodic signals such as speech, music, heartbeat sounds, breathing, footsteps, and rotating machinery.
A strong, narrow peak indicates stable repetition. A broad peak can indicate variable cycle duration, modulation, or uncertainty. Weak peaks can indicate irregularity, noise, insufficient observation time, or the absence of a dominant period.
Why can a pitch corresponding to a fundamental frequency be perceived when no physical spectral component exists at that frequency?
Consider a complex tone containing:
200 Hz, 300 Hz, 400 Hz, and 500 Hz
A physical component at 100 Hz is absent. Nevertheless, each existing component is an integer multiple of 100 Hz:
200 = 2 × 100
300 = 3 × 100
400 = 4 × 100
500 = 5 × 100
The combined pattern therefore supports a pitch associated with 100 Hz. This perceived but physically absent fundamental is called the missing fundamental.
A set of components at integer multiples of F0 can form a waveform that repeats every:
T0 = 1 / F0
For an inferred fundamental of 100 Hz:
T0 = 1 / 100 = 0.01 seconds = 10 milliseconds
The auditory system can use this common temporal repetition even when the 100 Hz sinusoidal component itself is absent.
The missing-fundamental phenomenon therefore demonstrates that pitch perception is not determined only by selecting the lowest physical spectral line.
The auditory system can also examine the spacing and arrangement of resolved harmonics across frequency channels.
In the example:
300 − 200 = 100 Hz
400 − 300 = 100 Hz
500 − 400 = 100 Hz
The regular 100 Hz spacing supports an underlying harmonic template with a 100 Hz fundamental.
Missing-fundamental perception is therefore commonly understood through a combination of temporal periodicity and spectral harmonic-pattern analysis rather than through a single mechanism.
The contribution of envelope periodicity depends partly on auditory-filter resolution.
For unresolved harmonics, the narrow-band envelope can fluctuate at the missing F0. In this case, envelope periodicity becomes a direct cue to pitch.
For well-resolved harmonics, the envelope in each individual channel may be nearly steady. Pitch can then depend more strongly on harmonic pattern and phase-locked fine-structure information.
Changing the relative phases of harmonics alters the instantaneous waveform shape. It can also alter the envelope produced after components interact within an auditory filter.
A steady harmonic complex may retain a broadly similar pitch after certain phase changes, while its timbre and local envelope shape change substantially. Phase sensitivity therefore depends on harmonic resolution, signal duration, onset structure, and the auditory channel being considered.
The important conclusion is not that phase is irrelevant. Rather, pitch can remain associated with a common periodicity even when waveform shape changes.
When the amplitude contour of a sound repeats, how should its period be defined, measured, and distinguished from the period of the carrier waveform?
A sinusoidally amplitude-modulated signal may be represented as:
x(t) = A[1 + m cos(2πfmt + φm)] cos(2πfct + φc)
In this expression:
fc is the acoustic carrier frequency.fm is the envelope modulation frequency.m is the modulation index.1 / fc is the carrier period.1 / fm is the envelope period.Consider a 1,000 Hz carrier whose amplitude fluctuates at 5 Hz.
The carrier period is:
Tc = 1 / 1000 = 0.001 seconds = 1 millisecond
The envelope period is:
Te = 1 / 5 = 0.2 seconds = 200 milliseconds
The waveform therefore completes 200 rapid carrier cycles during one envelope cycle.
The relationship is reciprocal:
fm = 1 / Te
Te = 1 / fm
| Envelope period | Modulation frequency | Illustrative interpretation |
|---|---|---|
| 10 ms | 100 Hz | Pitch-rate envelope fluctuation in an unresolved harmonic band |
| 100 ms | 10 Hz | Rapid articulatory or transient amplitude change |
| 250 ms | 4 Hz | Syllabic-scale speech modulation |
| 800 ms | 1.25 Hz | Approximately 75 recurring events per minute |
| 4 s | 0.25 Hz | Approximately 15 recurring events per minute |
The examples are illustrative. Actual speech, cardiac, respiratory, and musical signals are usually nonstationary and rarely repeat with perfect regularity.
A single envelope period can be assigned when the complete envelope pattern repeats after a consistent interval.
If the envelope contains harmonic modulation components at:
Fe, 2Fe, 3Fe, ...
then Fe may be interpreted as the fundamental modulation frequency.
This is mathematically analogous to the harmonic structure of an acoustic waveform, but it occurs in the much slower modulation-frequency domain.
Natural envelopes often contain several overlapping rates or time-varying repetition intervals.
In such cases, it may be more appropriate to report a modulation spectrum, a time-varying period, several autocorrelation peaks, or a range of plausible repetition rates rather than one fixed envelope F0.
| Method | Domain | Principal result | Strength |
|---|---|---|---|
| Envelope autocorrelation | Lag or time domain | Candidate repetition periods | Direct interpretation of cycle duration |
| Envelope modulation spectrum | Modulation-frequency domain | Strength of each modulation rate | Separation of multiple periodic components |
| Time-frequency modulation analysis | Joint time and modulation-frequency domain | Changing modulation rates | Analysis of nonstationary envelopes |
For an ideal periodic envelope, a spectral component at fm corresponds to an autocorrelation peak at approximately 1 / fm. In practical signals, the two representations may emphasize different aspects of the data.
| Subsection | Core question | Principal concept | Result |
|---|---|---|---|
| 5.3.1 | How can repetition be detected? | Autocorrelation and lag peaks | Estimated period and periodicity strength |
| 5.3.2 | Why can pitch remain when the physical F0 is absent? | Common harmonic and temporal periodicity | Perception of a missing fundamental |
| 5.3.3 | How does periodicity apply to an amplitude envelope? | Envelope period and fundamental modulation frequency | Connection between modulation rate, rhythm, and repeated events |
The three subsections form the following argument:
The progression may be summarized as:
Repetition detection → inferred fundamental → envelope periodicity
| Signal situation | Observed feature | Estimated period | Corresponding frequency |
|---|---|---|---|
| Harmonics at 200, 300, 400, and 500 Hz | Common 100 Hz harmonic spacing | 10 ms | Missing fundamental of 100 Hz |
| Speech envelope with four broad peaks per second | Syllabic-scale recurrence | 250 ms | Envelope modulation near 4 Hz |
| Repeated cardiac event at 75 events per minute | Recurring heart-sound envelope | 800 ms | Cycle frequency of 1.25 Hz |
| Repeated respiratory cycle at 15 cycles per minute | Slow breathing envelope | 4 s | Cycle frequency of 0.25 Hz |
Autocorrelation and periodicity analysis support estimation of vocal F0, voicing probability, intonation, prosody, and voice stability.
Missing-fundamental principles explain why perceived vocal pitch can survive band limitation. Envelope-period analysis supports estimation of speech rhythm and syllabic rate.
Period estimation is used in instrument tuning, pitch correction, automatic transcription, tempo estimation, beat tracking, and synchronization.
Missing-fundamental synthesis allows small loudspeakers to create a perceptual impression of low bass through selected upper harmonics. Envelope periodicity also defines tremolo rate, rhythmic emphasis, and note-onset repetition.
Pitch perception can depend on both fine-structure periodicity and envelope periodicity. Processing strategies should therefore consider:
A representation that preserves speech intelligibility may still provide limited pitch or musical perception if relevant periodicity cues are weak.
Communication channels often remove very low frequencies. Harmonic and temporal periodicity can nevertheless preserve the perceived pitch of speech.
Loudspeaker enhancement systems can exploit missing-fundamental perception when direct reproduction of low-frequency energy is restricted by size, power, or excursion limits.
Cardiac and respiratory sounds contain recurring amplitude patterns that can be studied as envelope periodicities.
| Signal | Relevant repeating structure | Possible envelope measure | Practical purpose |
|---|---|---|---|
| Heart sound | S1-S2 cardiac cycle | Autocorrelation peak and cycle interval | Heart-rate and rhythm estimation |
| Respiratory sound | Inspiration-expiration cycle | Slow envelope period | Respiratory-rate estimation |
| Wheeze | Quasi-periodic tonal oscillation | Waveform and narrow-band envelope periodicity | Characterization of sustained adventitious sound |
| Mixed cardiopulmonary recording | Fast cardiac and slow respiratory recurrences | Multiple autocorrelation or modulation peaks | Source characterization and separation validation |
Periodicity estimates in physiological recordings should be interpreted as signal features rather than as independent clinical diagnoses.
A separated component can be evaluated according to whether its envelope contains a plausible source-specific period.
Periodicity alone does not prove correct source separation, but it can provide a useful physiological consistency test.
High-frequency vibration caused by repeated bearing impacts can be demodulated to obtain a slower envelope. The period of that envelope can correspond to a mechanical fault rate.
Autocorrelation and envelope-spectrum analysis can therefore reveal repetitive impacts that are difficult to observe directly in the raw waveform.
The lowest physical component is not necessarily the fundamental periodicity. A missing fundamental may be inferred from higher harmonics, while an isolated low-frequency component may not define the perceived pitch of a more complex sound.
The acoustic waveform may repeat at one rate while its broad amplitude envelope repeats at a much slower rate. These frequencies should be labeled separately.
A small early peak may arise from waveform shape, noise, formant structure, or a partial cycle. Candidate peaks should be evaluated against the expected range and the pattern of later peaks.
Speech pitch, heart interval, respiratory period, and mechanical speed can change over time. A single long-window estimate may conceal meaningful variation.
Slow envelope periodicity is usually perceived as rhythm, fluctuation, or repeated events rather than tonal pitch. The perceptual result depends strongly on modulation rate and signal context.
Relative harmonic phase can change waveform shape and the envelope recovered within an auditory channel. Its effect depends on harmonic resolution, onset structure, and the analysis filter.
Different sources can share similar repetition rates. Periodicity should therefore be combined with spectral, spatial, morphological, and contextual evidence.
The fundamental organization of a sound may be encoded in repetition rather than in one explicit spectral component. Autocorrelation reveals that repetition, the missing-fundamental phenomenon demonstrates its perceptual importance, and envelope-period analysis extends the same principle to slower amplitude patterns.
Section 5.3.1 explains how repeated structure can be detected and converted into a period estimate.
Section 5.3.2 explains why a fundamental pitch may be perceived even when the corresponding spectral component is absent.
Section 5.3.3 explains how the amplitude envelope can possess its own period and fundamental modulation frequency.
The practical message may be summarized as follows:
Search not only for frequencies that are physically present, but also for the temporal pattern that repeatedly organizes them.
This principle supports pitch estimation, speech analysis, music processing, virtual bass, hearing technology, physiological monitoring, source-separation validation, and machine diagnostics.
Written on June 28, 2026
Section 6.1 may be understood as a systematic journey through several representations of the same linear time-invariant system. It begins with the impulse response, converts that response into a transfer function, identifies its zeros, and then examines how those zeros appear in the magnitude response, power spectral density, autocorrelation, and logarithmic spectrum.
These subsections are therefore not separate discussions placed next to one another. They describe the same system from different viewpoints:
Impulse response → z-transform → zeros → magnitude response → power spectrum → autocorrelation → logarithmic spectrum
Central message: A zero is not merely a root of a polynomial. It is a structural mechanism by which a system attenuates or cancels selected frequency components. Section 6.1 explains how this mechanism becomes visible in several forms of signal analysis.
The principal question is not simply, “What is a zero?” The deeper question is:
How does the internal structure of a linear system leave recognizable traces in the waveform, spectrum, power distribution, and correlation structure of its output?
A zero provides one of the clearest answers. When a zero lies at or near a particular point associated with a frequency, the system suppresses energy around that frequency. A pattern of zeros can therefore produce a notch, a high-pass characteristic, a low-pass characteristic, or the repeated notches of a comb filter.
A transfer-function zero is a value z = z0 for which H(z0) = 0, after common pole-zero factors have been removed. In a rational transfer function, zeros are ordinarily obtained from the roots of the numerator polynomial.
H(z) = B(z) / A(z)
The roots of B(z) are the zeros, while the roots of A(z) are the poles. Section 6.1 concentrates on the numerator and asks how its roots influence observable sound and signal characteristics.
| Subsection | Central question | Main result | Practical interpretation |
|---|---|---|---|
| 6.1.1 | How is a system represented mathematically? | The impulse response becomes the transfer function through the z-transform. | A measured system response can be converted into a pole-zero model. |
| 6.1.2 | How does a zero affect frequency components? | A zero on or near the unit circle produces attenuation near its angle. | Specific frequencies can be rejected or weakened. |
| 6.1.3 | How does the same effect appear in power? | Output power is scaled by the squared magnitude response. | Zeros reshape the distribution of energy across frequency. |
| 6.1.4 | What happens when a delayed copy is added? | A single echo creates regularly spaced zeros and autocorrelation peaks. | Echo delay and strength can be estimated from measurable patterns. |
| 6.1.5 | Why take the logarithm of the power spectrum? | Multiplication becomes addition, exposing zero-related structure. | Source, filter, echo, and spectral-envelope effects become easier to analyze. |
For a discrete-time linear time-invariant system, the impulse response h[n] is a complete description of the system. Once h[n] is known, the output produced by any input x[n] can be determined through convolution:
y[n] = x[n] * h[n]
The impulse response may therefore be regarded as the system’s time-domain fingerprint. It records whether the system responds immediately, whether delayed copies appear, whether the response oscillates, and how rapidly the response decays.
Convolution is often difficult to interpret directly. The z-transform converts convolution into multiplication:
H(z) = Σn h[n]z−n
Y(z) = H(z)X(z)
Under zero initial conditions, the transfer function may also be written as:
H(z) = Y(z) / X(z)
This conversion is important because delays, additions, feedback terms, and echoes become algebraic factors. The roots of those factors can then be studied geometrically in the z-plane.
Consider a two-tap impulse response:
h[n] = δ[n] − aδ[n − 1]
Its transfer function is:
H(z) = 1 − az−1
The numerator becomes zero when z = a. Thus, the relative amplitude and delay between the two impulse-response samples directly determine the zero location.
This small example carries a general lesson: zeros are produced by cancellation among delayed signal components. A zero is therefore closely related to interference, subtraction, averaging, reflection, and multipath propagation.
| Impulse response | Transfer function | Zero | Signal effect |
|---|---|---|---|
| h[n] = δ[n] − δ[n − 1] | H(z) = 1 − z−1 | z = +1 | Constant and slowly varying components are suppressed. |
| h[n] = δ[n] + δ[n − 1] | H(z) = 1 + z−1 | z = −1 | The highest alternating discrete-time frequency is suppressed. |
The first system is a first-difference filter. A constant input produces almost no output after the initial transition because adjacent samples cancel. The second system is a two-sample averager. Rapid sample-to-sample alternation is cancelled because adjacent samples have opposite signs.
In practical measurement, an impulse response may be obtained from a loudspeaker, room, microphone, communication channel, mechanical structure, or acoustic propagation path. A short impulse, a swept sine wave, or another calibrated excitation is applied, and the response is recorded.
Once the impulse response has been estimated, the following quantities become available:
The frequency response is obtained by evaluating the transfer function on the unit circle:
z = ejω
H(ejω) = H(z)|z=ejω
The magnitude response |H(ejω)| states how strongly the system passes each normalized angular frequency ω.
A zero contributes a factor of the form:
|ejω − zk|
This expression is the geometric distance between the point ejω on the unit circle and the zero zk in the z-plane.
As the frequency point moves around the unit circle, the magnitude response becomes small whenever it passes close to a zero. If the frequency point reaches a zero located exactly on the unit circle, the distance becomes zero and exact cancellation occurs.
A zero on the unit circle produces a complete spectral null under ideal mathematical conditions. A zero close to the unit circle produces a deep but nonzero attenuation. A zero far from the unit circle generally produces a weaker local effect.
A real-valued impulse response requires nonreal zeros to occur in complex-conjugate pairs. A zero at:
z = rejθ
is therefore accompanied by a zero at:
z = re−jθ
This pair produces symmetric attenuation at positive and negative frequencies. In practical real-valued digital filters, a notch at a nonzero physical frequency is normally created by such a conjugate pair.
The following graph compares two elementary systems. A zero at z = +1 rejects direct current, while a zero at z = −1 rejects the Nyquist frequency.
The frequency-selective behavior of zeros is used in many practical systems:
The magnitude response describes the factor by which sinusoidal amplitude is changed. Power, however, is proportional to squared amplitude. Consequently, the power gain of the system is:
|H(ejω)|2
For a wide-sense stationary input passing through a stable linear time-invariant system, the input and output power spectral densities are related by:
Sy(ω) = |H(ejω)|2Sx(ω)
If a zero produces strong attenuation at a certain frequency, the output power spectral density also decreases at that frequency. A zero located exactly on the unit circle creates an ideal power null, provided the input spectrum is finite at that point.
This is a stronger statement than saying that the waveform looks different. It states that the system has redistributed the signal’s energy across frequency.
An ideal white-noise input has a flat power spectral density:
Sx(ω) = constant
The output power spectrum then becomes proportional to the system power response:
Sy(ω) ∝ |H(ejω)|2
A broadband test signal is therefore useful for identifying a system. When the input excites the entire frequency range, notches and resonances of the system become visible in the output spectrum.
If the input spectrum is unknown, however, an observed spectral valley cannot automatically be attributed to a system zero. The source itself may simply contain little energy at that frequency. Reliable identification requires a known input, repeated observations, or an appropriate source model.
| Quantity | Linear expression | Decibel expression | Meaning |
|---|---|---|---|
| Amplitude gain | |H(ejω)| | 20 log10|H(ejω)| | Change in sinusoidal amplitude |
| Power gain | |H(ejω)|2 | 10 log10|H(ejω)|2 | Change in spectral power |
These two decibel expressions produce the same numerical value because:
10 log10|H|2 = 20 log10|H|
The power spectral density retains the magnitude-squared information of the transfer function, but it does not retain phase. Two systems may have the same magnitude response and the same power response while possessing different phase responses and different impulse responses.
This limitation prepares the ground for the later sections on minimum phase and all-pass systems. Power alone describes where energy is distributed, but not exactly when each frequency component arrives.
Power spectral density analysis is used when the principal concern is the distribution of energy rather than the exact waveform. Typical uses include:
A single echo is modeled by adding a delayed and scaled copy of the original signal:
y[n] = x[n] + αx[n − D]
Here, D is the echo delay in samples and α is the echo amplitude. When the sampling frequency is fs, the physical delay is:
τ = D / fs
Its impulse response and transfer function are:
h[n] = δ[n] + αδ[n − D]
H(z) = 1 + αz−D
The zeros satisfy:
zD = −α
For a positive real α, the zeros are equally spaced in angle. Their common radius is:
|zk| = α1/D
Their angles are:
∠zk = (2k + 1)π / D
A single delayed copy therefore creates an entire ring of regularly spaced zeros. This is why even one echo can produce a complicated frequency response.
The squared magnitude response is:
|H(ejω)|2 = 1 + α2 + 2α cos(ωD)
The cosine term causes periodic peaks and valleys. For positive α, the deepest valleys occur near:
ω = (2m + 1)π / D
Adjacent notches are separated by:
Δf = fs / D = 1 / τ
A longer echo delay produces more closely spaced spectral notches. A shorter echo delay produces more widely spaced notches.
For a real-valued stationary input, the output autocorrelation is:
ry[k] = (1 + α2)rx[k] + αrx[k − D] + αrx[k + D]
The output autocorrelation is therefore composed of three copies of the input autocorrelation:
For a white-noise input with variance σ2:
rx[k] = σ2δ[k]
the output autocorrelation becomes:
ry[k] = σ2 [ (1 + α2)δ[k] + αδ[k − D] + αδ[k + D] ]
Peaks at lags ±D reveal the delay of the echo. Their amplitude contains information about the echo strength.
| Echo property | Frequency-domain evidence | Autocorrelation evidence |
|---|---|---|
| Delay D | Determines the spacing between comb-filter notches | Determines the location of side peaks at ±D |
| Amplitude α | Determines the depth of spectral ripple | Determines the relative height of the side peaks |
| Sign or phase of the echo | Shifts the locations of peaks and notches | Changes the sign or phase of cross-correlation terms |
| Multiple echoes | Creates overlapping comb patterns | Creates several groups of delayed correlation peaks |
The single-echo model is intentionally simple, but it provides the foundation for several practical technologies:
A side peak in autocorrelation does not prove that an echo exists. Periodic source signals, repeated events, mechanical cycles, and pitched sounds may also create strong correlation at nonzero lags.
Echo interpretation is most reliable when the excitation is broadband, when the source autocorrelation is known, or when the observation is supported by a physical propagation model.
When a source passes through a system, the output power spectrum is a product:
Sy(ω) = |H(ejω)|2 Sx(ω)
Products are difficult to separate when only the final output is available. The measured spectrum contains both the source characteristics and the system characteristics at the same time.
Taking the logarithm converts multiplication into addition:
log Sy(ω) = log Sx(ω) + log |H(ejω)|2
The source contribution and transfer-function contribution are still superimposed, but they are now added rather than multiplied. Additive components are generally easier to compare, smooth, filter, model, and transform.
Consider a zero located at:
z0 = rejθ
For a zero inside the unit circle, with 0 ≤ r < 1, its logarithmic power contribution can be expanded as:
log |1 − rejθe−jω|2 = −2 Σm=1∞ [ rm / m ] cos(m(ω − θ))
This expression gives a direct interpretation of the zero:
The logarithmic spectrum is the direct starting point of cepstral analysis. Applying an inverse Fourier transform to a logarithmic magnitude or power spectrum produces a cepstral sequence.
Log spectrum → inverse Fourier transform → cepstrum
In the cepstral domain, slowly varying spectral envelopes and rapidly varying spectral ripples may occupy different quefrency regions. Echoes can also produce peaks near the echo delay and its multiples.
The logarithmic expression in Section 6.1.5 therefore prepares the mathematical foundation for the later discussion of minimum-phase systems and cepstral decomposition.
The logarithm also compresses dynamic range. A spectrum may contain values differing by several orders of magnitude. On a linear scale, weak components may become nearly invisible. A logarithmic scale makes both strong peaks and weaker details easier to inspect.
This is one reason why audio spectra, filter responses, and power measurements are commonly presented in decibels.
At an exact spectral zero:
log 0 = −∞
Real numerical systems cannot represent this value directly. Practical implementations therefore apply a small positive floor:
log(max(S(ω), ε))
The floor ε prevents numerical overflow and excessive sensitivity to measurement noise. Its value must be selected carefully because an excessively large floor can conceal genuine spectral nulls.
Logarithmic spectral analysis supports several practical operations:
The principal value of Section 6.1 lies in recognizing that the following observations are not independent phenomena. They are different manifestations of the same transfer function.
| Representation | How a zero appears | What can be learned |
|---|---|---|
| Impulse response h[n] | Cancellation among weighted and delayed samples | Timing and strength of system components |
| Transfer function H(z) | A root of the numerator | Structural location of cancellation |
| Magnitude response |H(ejω)| | A notch or attenuation region | Which frequencies are weakened |
| Power response |H(ejω)|2 | A reduction or null in spectral power | How energy is redistributed |
| Autocorrelation ry[k] | Shifted peaks or repeated lag structure | Possible delays and repeated signal paths |
| Logarithmic power spectrum | An additive cosine-series contribution | Zero position and source-filter structure |
| Cepstrum | Quefrency-domain coefficients or echo peaks | Separation of spectral envelope and periodic ripple |
A narrowband interference at 50 Hz or 60 Hz can be suppressed by placing a complex-conjugate zero pair near the corresponding angular frequency:
θ = 2πf0 / fs
Placing the pair directly on the unit circle produces an ideal notch. In practical systems, pole placement, bandwidth, numerical precision, and frequency drift must also be considered.
A measured impulse response reveals direct sound, reflections, resonances, and cancellations. Its z-transform and frequency response show where the acoustic path reinforces or suppresses energy.
This information supports loudspeaker placement, room treatment, crossover design, and equalization. Deep room nulls should not normally be corrected by extreme gain because the cancellation may vary strongly with listening position.
Repeated spectral notches suggest a delayed signal path. Autocorrelation or cepstral peaks can provide an estimate of the delay. An adaptive filter can then model and subtract the echo path.
Modern acoustic echo cancellation is more complicated than the single-echo model because a real room contains many reflections. Nevertheless, the single-echo case explains the essential mechanism.
Radio and wired channels often contain multiple propagation paths. Their delayed copies create frequency-selective attenuation similar to an acoustic comb filter. Channel equalizers attempt to compensate for this transfer function.
A very deep or exact channel zero cannot be safely inverted without substantial noise amplification. Practical equalization therefore uses regularization, coding, diversity, or alternative frequency channels.
A microphone, accelerometer, stethoscope, or measurement probe has its own transfer function. Apparent spectral peaks and valleys may arise from the instrument rather than from the original source.
Calibration estimates the instrument response so that source characteristics can be distinguished from measurement-chain characteristics.
Recorded heart and lung sounds are shaped by tissue propagation, body geometry, sensor coupling, transducer response, and environmental noise. These elements may be regarded as parts of a composite transfer function.
Zero-related notches, echoes, and spectral coloration may provide descriptive features of the recording path. Such features require cautious interpretation, however. A transfer- function feature alone does not establish a clinical diagnosis and should be evaluated with validated physiological and measurement models.
A transfer-function zero suppresses a particular complex mode or frequency condition. It does not mean that the system produces zero output for every input.
Stability is primarily governed by pole locations and the region of convergence. A system may contain zeros outside the unit circle and still be stable. Such zeros become important for phase, invertibility, and minimum-phase classification.
A weak output frequency may arise because the input contains little energy there. System identification requires knowledge or estimation of both the input and the output.
The power spectrum contains squared-magnitude information. Different systems can share the same power response while producing different waveforms and temporal delays.
Inversion would require infinite gain at the cancelled frequency. A deep near-zero also causes severe amplification of noise and modeling error. Practical inverse filters therefore limit gain or use regularized solutions.
Echoes, periodic sources, harmonic tones, repeated events, and mechanical cycles can all produce nonzero-lag peaks. Delay estimates should be supported by spectral, temporal, and physical evidence.
Section 6.1 shows how cancellation among delayed signal components becomes a zero in the z-plane, a notch in the magnitude response, a loss of spectral power, a lag pattern in autocorrelation, and an additive structure in the logarithmic spectrum.
Written on June 28, 2026
Section 6.2 completes the description of a linear system that began with magnitude response. Magnitude indicates how strongly each frequency is transmitted, whereas phase indicates how each frequency component is shifted in time and angle.
A broadband waveform is formed by combining many frequency components. Even when their magnitudes remain unchanged, different phase shifts can alter their alignment and therefore change the resulting waveform, transient shape, arrival time, and spatial summation.
Poles and zeros → phase contributions → total phase response → accumulated phase → group delay and waveform timing
Central message: Magnitude describes how much of each frequency remains, while phase describes how the surviving frequency components are aligned in time. Accumulated phase reveals this alignment without the artificial discontinuities caused by wrapping phase into a limited angular range.
Section 6.1 primarily examined the question:
Which frequencies are strengthened or weakened by the transfer function?
Section 6.2 adds a different question:
How are those frequency components shifted relative to one another, and what does that shifting reveal about the poles, zeros, and delays of the system?
This distinction is important because two systems may have the same magnitude response but different phase responses. Their output spectra may contain the same amount of energy at every frequency, yet their impulse responses and transient waveforms may be substantially different.
The frequency response of a linear time-invariant system is complex:
H(ejω) = |H(ejω)| ejφ(ω)
It contains two complementary quantities:
| Quantity | Meaning | Typical observation |
|---|---|---|
| Magnitude |H(ejω)| | Amplitude gain or attenuation at each frequency | Peaks, notches, passbands, and stopbands |
| Phase φ(ω) | Angular displacement of each frequency component | Delay, phase rotation, and waveform alignment |
| Accumulated phase | Continuously unwrapped phase across frequency | Total phase progression without artificial ±π jumps |
| Group delay | Negative slope of accumulated phase | Frequency-dependent arrival delay |
| Subsection | Principal question | Main conclusion | Practical significance |
|---|---|---|---|
| 6.2.1 | How does a zero affect phase? | Every zero contributes a frequency-dependent angle. | A spectral notch is normally accompanied by phase rotation. |
| 6.2.2 | How is phase calculated analytically? | Total phase is obtained by adding zero and delay terms and subtracting pole terms. | Phase, delay, and distortion can be calculated from a transfer function. |
| 6.2.3 | How can phase be understood geometrically? | Phase is related to vector angles from poles and zeros to the unit-circle frequency point. | A pole-zero diagram becomes a visual predictor of phase behavior. |
| 6.2.4 | Why is accumulated phase required? | Unwrapping reveals the continuous phase progression and its relation to pole-zero count and delay. | Group delay, phase winding, and temporal behavior become observable. |
Consider a zero located at:
z0 = rejθ
Its transfer-function factor may be written as:
H0(z) = 1 − z0z−1
On the unit circle:
H0(ejω) = 1 − rej(θ−ω)
The magnitude and phase are therefore:
|H0(ejω)| = √[1 + r2 − 2r cos(ω − θ)]
φ0(ω) = atan2 ( r sin(ω − θ), 1 − r cos(ω − θ) )
The same zero that creates attenuation also creates a phase contribution. Magnitude and phase are therefore two manifestations of the same pole-zero geometry.
A zero close to the unit circle usually produces a pronounced magnitude valley and a rapid phase transition. A zero farther from the unit circle generally produces a smoother and less localized effect.
When a zero lies exactly on the unit circle, the magnitude becomes zero at the corresponding frequency. Phase is mathematically undefined at that exact point because a complex number with zero magnitude has no unique angle.
| Zero location | Transfer-function factor | Magnitude effect | Phase on 0 < ω < π | Typical use |
|---|---|---|---|---|
| z = +1 | 1 − z−1 | Zero at direct current | π/2 − ω/2 | Difference filter and offset suppression |
| z = −1 | 1 + z−1 | Zero at the Nyquist frequency | −ω/2 | Two-sample averaging and high-frequency suppression |
| z = re±jθ | 1 − 2r cos(θ)z−1 + r2z−2 | Attenuation near ±θ | Rapid phase variation near θ | Notch and spectral-shaping filters |
A zero outside the unit circle can be reflected to its reciprocal-conjugate position inside the unit circle. After an appropriate gain adjustment, the two factors have the same magnitude response but different phase responses.
For an outside zero a, the corresponding inside location is:
ainside = 1 / a*
Their magnitude relationship on the unit circle is:
|1 − ae−jω| = |a| |1 − (1 / a*)e−jω|
The magnitude responses differ only by a constant gain factor, but the phase responses are not the same. This distinction leads directly to the later concepts of minimum-phase and all-pass decomposition.
A notch filter does more than remove a narrow frequency band. It also rotates phase near the notch. The effect may be minor for a stationary tone, but it can become important for a broadband transient containing energy on both sides of the notch.
Common examples include:
A rational transfer function may be expressed in pole-zero form as:
H(z) = g z−D [ ∏k=1M (1 − zkz−1) ] / [ ∏ℓ=1N (1 − pℓz−1) ]
In this expression:
Multiplication of complex factors becomes addition of their angles. Division becomes subtraction. The total phase response is therefore:
φ(ω) = arg(g) − Dω + Σk=1M ψ(zk, ω) − Σℓ=1N ψ(pℓ, ω)
For a root a = rejθ:
ψ(a, ω) = atan2 ( r sin(ω − θ), 1 − r cos(ω − θ) )
This formula expresses the central analytic principle of Section 6.2:
Total phase equals the gain phase and delay phase, plus all zero contributions, minus all pole contributions.
A simple inverse tangent of the ratio between imaginary and real parts cannot determine the correct quadrant. It may confuse angles that differ by π.
The two-argument function atan2(imaginary, real) retains the signs of both components and returns the correct principal angle. This is particularly important near notches, resonances, and negative real-axis crossings.
The complex angle is normally reported within a principal interval such as:
−π < φw(ω) ≤ π
This is called wrapped phase. Whenever the continuous phase crosses an interval boundary, the displayed value jumps by 2π.
Such a jump normally represents a change in angle notation rather than an instantaneous physical change in the system.
Accumulated phase is formed by adding or subtracting integer multiples of 2π so that adjacent phase samples follow a continuous progression:
φu(ω) = φw(ω) + 2πm(ω)
Here, m(ω) is an integer selected to remove artificial wrap discontinuities. The resulting unwrapped phase makes delay slopes and total phase rotation visible.
Phase unwrapping is not fully reliable at exact spectral zeros, at frequencies with extremely low signal-to-noise ratio, or when frequency sampling is too sparse. In those regions, the angle may be undefined or numerically unstable.
Two delay measures are commonly derived from phase.
Phase delay: τp(ω) = −φu(ω) / ω
Group delay: τg(ω) = −dφu(ω) / dω
Phase delay relates the phase of an individual sinusoidal component to an equivalent delay. Group delay describes the local slope of phase and is usually more informative for the propagation of a narrowband envelope or a localized group of neighboring frequencies.
A straight phase line has constant group delay. A curved phase response has frequency-dependent group delay and may alter the temporal shape of a broadband waveform.
When the impulse response is real:
H(e−jω) = H*(ejω)
Consequently:
These symmetry properties reduce calculation effort and provide useful checks for numerical results.
Frequency response is obtained by moving the evaluation point:
ejω
around the unit circle. At each frequency, vectors are drawn from every pole and zero to the unit-circle point.
Im{z}
│
eʲω ● │
╱ │
╱ │
zero × │
───────────────────────────┼──────── Re{z}
│
For a zero zk, the geometric vector is:
vz,k(ω) = ejω − zk
Its length contributes to magnitude, while its angle contributes to phase:
| Vector property | Frequency-response meaning |
|---|---|
| |ejω − zk| | Magnitude contribution of the zero |
| ∠(ejω − zk) | Geometric angle contribution of the zero |
| |ejω − pℓ| | Magnitude divisor produced by a pole |
| ∠(ejω − pℓ) | Phase angle subtracted by a pole |
When factors are written in powers of z−1, the relationship:
1 − az−1 = z−1(z − a)
must also be considered. The vector angle and the transfer-function factor differ by the linear phase contribution of z−1. Powers of z should therefore be collected and treated consistently as delay or advance terms.
When the unit-circle point passes close to a pole or zero, a small change in frequency may produce a large change in vector angle.
This leads to the following behavior:
This construction provides a visual explanation for the analytic phase formula. It also permits a qualitative prediction of phase behavior before numerical calculation.
Pole-zero geometry may be interpreted as a compact description of interference and energy storage:
The geometric viewpoint is particularly useful in:
A complex angle is periodic:
φ ≡ φ + 2πm
A phase of −190° is therefore equivalent to +170°. When phase is restricted to the interval from −180° to +180°, a smoothly decreasing phase curve may appear to jump upward by 360°.
The jump belongs to the representation, not necessarily to the physical system.
A pure delay of D samples has transfer function:
H(z) = z−D
Its magnitude and phase are:
|H(ejω)| = 1
φu(ω) = −Dω
The system changes no frequency magnitude, yet it delays every component. Wrapped phase repeatedly jumps between ±π, whereas accumulated phase remains a straight descending line.
The slope of accumulated phase reveals delay:
τg(ω) = −dφu(ω) / dω
For a pure delay:
τg(ω) = D
Every frequency is delayed by the same number of samples. Such a system has linear phase and constant group delay.
When accumulated phase bends, group delay varies with frequency. Neighboring frequency components may then arrive at different times, potentially changing the shape of a broadband pulse or transient.
When the frequency point traverses the complete unit circle counterclockwise, and no pole or zero lies exactly on that circle, the total accumulated phase change satisfies:
Δφu = 2π ( Nz − Np )
Here:
This relationship links accumulated phase to the winding of the transfer function around the origin. It shows that total phase accumulation contains structural information about the poles and zeros enclosed by the unit-circle path.
Powers of z and z−1 must be counted consistently. For example, z−D represents D poles at the origin in a rational z representation and produces a total phase decrease of 2πD over a complete frequency revolution.
The argument principle describes the total phase accumulation over a complete contour. Local phase behavior is determined by the positions of individual roots.
| Root condition | Magnitude behavior | Phase behavior | Likely group-delay behavior |
|---|---|---|---|
| Zero near unit circle | Deep local attenuation | Rapid zero-related rotation | Strong local variation near the notch |
| Pole near unit circle | Strong local resonance | Rapid pole-related rotation | Large delay near the resonance |
| Closely paired pole and zero | Partial magnitude cancellation | Partial phase cancellation | Reduced but potentially visible variation |
| Pure delay | No magnitude change | Linear phase slope | Constant delay |
Reflecting an outside zero into the unit circle preserves magnitude after gain adjustment but changes phase. The phase difference can be represented by an all-pass factor.
This leads to the decomposition:
General transfer function = Minimum-phase component × All-pass component × Pure delay
The minimum-phase component accounts for the magnitude response with zeros inside the unit circle. The all-pass component changes phase without changing magnitude. The pure-delay component contributes a linear phase term.
Accumulated phase makes these otherwise hidden distinctions visible and prepares the foundation for the following sections on minimum phase and cepstral decomposition.
| System | Transfer function | Magnitude characteristic | Accumulated phase | Group delay |
|---|---|---|---|---|
| Pure delay | z−D | Unity at every frequency | −Dω | D samples |
| First difference | 1 − z−1 | Zero at direct current | π/2 − ω/2 on 0 < ω < π | 1/2 sample away from the zero |
| Two-sample average | 1 + z−1 | Zero at the Nyquist frequency | −ω/2 on 0 < ω < π | 1/2 sample away from the zero |
| First-order resonant denominator | 1 / (1 − az−1) | Enhancement near the pole angle | Nonlinear pole-related phase | Frequency-dependent |
| Conjugate-zero notch | 1 − 2r cos(θ)z−1 + r2z−2 | Attenuation near θ | Rapid variation near the notch | Strong local variation |
A conventional minimum-phase equalizer changes both magnitude and phase. Boosting or cutting a frequency band normally rotates phase around the affected band.
A linear-phase finite impulse response equalizer can preserve relative timing across frequencies, but it generally requires additional latency and may produce energy before the main transient in its noncausal ideal form or in a delayed causal implementation.
Phase behavior is especially relevant for percussion, consonants, clicks, and other signals with sharply defined transients.
A crossover divides sound among multiple drivers. The acoustic outputs must recombine at the listening position.
If the drivers have incompatible phase at the crossover frequency, their outputs may partially cancel even when their individual magnitude responses appear correct.
Crossover design therefore considers:
Reflections introduce delayed copies of direct sound. These copies create comb filtering in magnitude and corresponding phase variation.
Magnitude-only room correction cannot remove every temporal effect of reflection. A deep spatial cancellation may also be poorly invertible because large equalizer gain would amplify noise and become highly position-dependent.
Impulse response, accumulated phase, and group delay provide complementary descriptions of room behavior.
The phase difference between microphones contains information about propagation delay and direction of arrival.
Beamforming deliberately adjusts delay or phase so that signals from a selected direction add constructively while signals from other directions partially cancel.
Accurate phase calibration is therefore essential when multiple microphones or sensors are combined.
A communication channel may impose frequency-dependent phase through cables, filters, multipath propagation, and resonant components.
Excessive group-delay variation can spread symbols in time and contribute to intersymbol interference. Equalizers attempt to compensate for both magnitude and phase distortion, subject to noise and invertibility constraints.
A pure propagation delay produces linear accumulated phase. The slope can therefore provide a delay estimate:
Estimated delay ≈ −Δφu / Δω
This principle is used in acoustic measurement, channel estimation, synchronization, radar, sonar, and sensor alignment.
Heart sounds, lung sounds, pulse waves, electrocardiographic signals, and other physiological measurements often contain diagnostically relevant timing and waveform morphology.
A nonlinear-phase filter may move peaks, alter transient symmetry, or change the apparent relationship between events. Phase-preserving or forward-backward filtering is therefore often considered when temporal morphology is important.
The complete measurement path may include tissue propagation, sensor coupling, transducer response, analog filtering, and digital processing. Each part may contribute magnitude and phase effects.
Phase characteristics alone should not be treated as a clinical conclusion. Reliable interpretation requires validated physiological models, calibrated instrumentation, and appropriate clinical evidence.
At an exact zero of the frequency response, the complex value is zero and has no unique angle. A phase plot passing through such a point depends on the selected limiting direction and unwrapping convention.
A jump from −180° to +180° normally reflects the chosen display interval. Accumulated phase should be examined before interpreting the jump as a system event.
Linear phase has the form:
φ(ω) = φ0 − Dω
The slope represents delay, while the constant term may represent polarity or symmetry. Linear phase commonly includes substantial phase shift.
The ratio −φ/ω defines phase delay, whereas the derivative −dφ/dω defines group delay. They coincide for a pure delay but may differ in dispersive systems.
Minimum-phase, nonminimum-phase, all-pass, and delayed systems may share the same magnitude response while having different impulse responses and temporal behavior.
Large noise, sparse frequency sampling, deep notches, and missing data can cause incorrect 2π adjustments. Reliable unwrapping requires sufficient spectral resolution and adequate signal-to-noise ratio.
Group delay requires differentiation of phase. Differentiation amplifies noise, and phase is already unreliable where magnitude approaches zero. Large spikes near deep notches should therefore be interpreted cautiously.
An exact zero would require infinite inverse gain at the cancelled frequency. A deep near-zero can also cause severe noise amplification. Practical correction normally requires gain limits, regularization, or a restricted correction bandwidth.
Section 6.2 explains how poles, zeros, and delays determine the angular alignment of frequency components, and how accumulated phase converts that alignment into a continuous description of timing, group delay, and waveform behavior.
Written on June 28, 2026
Section 6.3 addresses one of the most consequential questions in linear-system analysis: Under what conditions can phase be determined from magnitude?
In a general transfer function, magnitude and phase are not uniquely connected. Different systems may have the same magnitude response while producing different phase responses, impulse responses, delays, and transient shapes. A minimum-phase system is a special case in which the magnitude response determines a unique minimum-phase response, apart from constant gain sign, constant phase, and pure delay.
The cepstrum provides the mathematical mechanism for expressing this relationship. By transforming the logarithmic spectrum into the quefrency domain, multiplicative source-and-filter relationships become additive, and the minimum-phase component can be reconstructed from magnitude information.
Magnitude response → logarithmic spectrum → cepstral sequence → minimum-phase reconstruction → phase and impulse response
Central message: A minimum-phase system is the causal and stably invertible realization that concentrates its response energy as early as possible. Its phase is not independent of its magnitude, and the cepstrum provides a practical method for recovering that phase relationship.
A magnitude spectrum answers the following question:
How strongly does the system transmit each frequency?
It does not ordinarily answer the following question:
How are those frequency components aligned in phase and distributed in time?
The missing phase information creates an ambiguity. Many impulse responses can share the same magnitude spectrum. Section 6.3 explains how the minimum-phase condition resolves that ambiguity by selecting a specific causal realization.
| Subsection | Principal question | Main conclusion | Practical significance |
|---|---|---|---|
| 6.3.1 | What makes a transfer function minimum phase? | Its zeros, as well as its poles, lie inside the unit circle under the standard causal and stable definition. | The system has a causal stable inverse and the earliest energy concentration among equivalent causal systems. |
| 6.3.1 | How are magnitude and phase related? | The logarithmic magnitude and phase form a Hilbert-transform pair for the minimum-phase component. | Phase can be reconstructed from magnitude under the minimum-phase assumption. |
| 6.3.2 | How does the cepstrum express this relationship? | The complex cepstrum of a minimum-phase system is right-sided. | A simple cepstral lifter converts a real cepstrum into a minimum-phase complex cepstrum. |
| 6.3.2 | How are magnitude and phase terms separated? | The even cepstral component represents logarithmic magnitude, while the odd component represents phase. | Magnitude-based reconstruction and source-filter analysis become possible. |
General transfer function
│
├── Magnitude response
│
├── Minimum-phase component
│ └── Phase determined by magnitude
│
├── All-pass component
│ └── Phase change without magnitude change
│
└── Pure delay
└── Linear phase without magnitude change
Section 6.3 concentrates on the minimum-phase branch. The following section extends the discussion to the separation of minimum-phase and all-pass components.
For a causal rational discrete-time system, a strict minimum-phase transfer function has:
Under these conditions, both the original system and its inverse can be causal and BIBO-stable.
H(z) is minimum phase ⇔ H(z) and H−1(z) are causal and stable
A pure delay, z−D, is commonly separated from the minimum-phase component because its inverse, zD, is an advance and therefore is not causal.
A stable causal system requires its poles to lie inside the unit circle. Minimum phase adds the corresponding requirement for zeros.
| Root location | Forward system | Inverse system | Classification |
|---|---|---|---|
| Poles and zeros inside the unit circle | Causal and stable | Causal and stable | Minimum phase |
| Poles inside, some zeros outside | Causal and stable | Unstable if implemented causally | Nonminimum phase |
| Zero on the unit circle | May remain stable | Has unbounded gain at the zero frequency | Not strictly minimum phase |
| Minimum-phase system followed by pure delay | Causal and stable | Requires a noncausal advance | Minimum-phase component plus delay |
The term minimum phase does not mean that the numerical phase angle is smallest at every frequency. Phase angles are periodic and depend on the selected branch.
Under the usual causal and stable comparison, the term refers to a system that has no additional all-pass phase or unnecessary delay relative to other systems with the same magnitude response.
Equivalent descriptions include:
| Domain | Minimum-phase property |
|---|---|
| z-plane | All poles and zeros are inside the unit circle. |
| Inverse system | The inverse can be causal and stable. |
| Time domain | Impulse-response energy is concentrated as early as possible. |
| Frequency domain | Phase is determined by logarithmic magnitude, apart from unresolved delay and constant phase. |
| Cepstral domain | The complex cepstrum is zero at negative quefrencies. |
| System decomposition | No nontrivial causal all-pass factor remains after delay is separated. |
A rational transfer function may be represented as:
H(z) = g [ ∏k=1M (1 − zkz−1) ] / [ ∏ℓ=1N (1 − pℓz−1) ]
For a minimum-phase transfer function:
|zk| < 1 and |pℓ| < 1
The pole condition provides stability, while the zero condition provides stable invertibility and the minimum-phase property.
Consider a zero a outside the unit circle. Its reciprocal-conjugate position is:
am = 1 / a*
On the unit circle:
|1 − ae−jω| = |a| |1 − ame−jω|
After adjusting the constant gain, the outside zero and its reflected inside zero produce the same magnitude response. Their phases, however, are different.
Magnitude data alone therefore cannot establish whether a zero was originally inside or outside the unit circle. The minimum-phase assumption resolves the ambiguity by selecting the inside position.
The following two finite impulse response systems have identical magnitude responses:
Hmin(z) = 1 − 0.5z−1
Hnonmin(z) = z−1 − 0.5
| Property | Minimum-phase system | Nonminimum-phase system |
|---|---|---|
| Impulse response | [1, −0.5] | [−0.5, 1] |
| Zero | z = 0.5 | z = 2 |
| Magnitude response | Identical | Identical |
| Phase response | Minimum-phase response | Contains additional all-pass phase |
| Energy at the first sample | 1 / 1.25 = 80% | 0.25 / 1.25 = 20% |
| Stable causal inverse | Available | Not available without changing causality or stability |
The example shows why magnitude does not uniquely determine temporal behavior. The minimum-phase sequence places most of its energy at the beginning, while the nonminimum-phase sequence places most of its energy later.
For a strict minimum-phase transfer function, the logarithmic magnitude and unwrapped phase are not independent. With the usual e−jωn Fourier convention, they form a periodic Hilbert-transform pair:
φmin(ω) = −ℋ { ln |H(ejω)| }
Here, ℋ denotes the periodic Hilbert transform. Constant gain, constant phase, and pure delay require separate treatment because magnitude does not contain enough information to determine them.
The result means that a valid minimum-phase magnitude response carries sufficient information to determine its corresponding minimum-phase phase response.
The pole-zero factors multiply in the transfer function:
H(z) = H1(z) H2(z) H3(z) ⋯
Taking the complex logarithm converts this product into a sum:
log H(z) = log H1(z) + log H2(z) + log H3(z) + ⋯
The real part of the complex logarithm is logarithmic magnitude, while the imaginary part is unwrapped phase:
log H(ejω) = ln |H(ejω)| + jφ(ω)
Among causal finite-energy sequences sharing the same magnitude spectrum, the minimum-phase sequence places the greatest possible cumulative energy near the beginning.
Σn=0K |hmin[n]|2 ≥ Σn=0K |h[n]|2
This inequality holds under the standard comparison of causal sequences with the same total energy and magnitude spectrum.
Energy concentration is one of the clearest time-domain meanings of minimum phase. The response begins strongly and decays afterward, rather than placing a dominant component late in time.
If another causal stable system has the same magnitude response, it can ordinarily be represented as the minimum-phase system multiplied by causal all-pass factors and possibly a pure delay:
H(z) = Hmin(z) A(z) z−D
Since a causal stable all-pass factor contributes nonnegative group delay, the resulting system has at least as much group delay as the minimum-phase component under the standard rational-system assumptions.
τg(ω) = τg,min(ω) + τg,all-pass(ω) + D
When every zero lies inside the unit circle, the poles of the inverse transfer function also lie inside the unit circle. A causal stable inverse is therefore possible.
Stable invertibility does not guarantee numerically safe inversion. A zero very close to the unit circle produces a deep spectral valley. Its inverse may apply very large gain near that frequency and strongly amplify noise or modeling error.
Practical inverse filters therefore commonly use:
The cepstrum transfers a logarithmic spectrum into the quefrency domain. Its principal advantage is that convolution in the time domain becomes addition after logarithmic spectral transformation.
y[n] = x[n] * h[n]
Y(ejω) = X(ejω) H(ejω)
log Y(ejω) = log X(ejω) + log H(ejω)
After the inverse Fourier transform, the source and filter contributions are added in the cepstral domain rather than convolved.
Two related cepstral definitions are important.
| Representation | Definition | Information retained | Symmetry for a real system |
|---|---|---|---|
| Real cepstrum | Inverse Fourier transform of ln |H(ejω)| | Logarithmic magnitude | Real and even |
| Complex cepstrum | Inverse Fourier transform of ln |H| + jφu | Magnitude and unwrapped phase | Real when conjugate symmetry and phase unwrapping are consistent |
| Log-power cepstrum | Inverse Fourier transform of ln |H|2 | Twice the log-magnitude contribution | Real and even |
If logarithmic power is used instead of logarithmic magnitude, the resulting magnitude cepstrum differs by a factor of two. That scaling must be accounted for during reconstruction.
Let the complex cepstrum be:
c[n] = ℱ−1 { log H(ejω) }
The complex logarithm requires a continuously unwrapped phase:
log H(ejω) = ln |H(ejω)| + jφu(ω)
Incorrect phase unwrapping produces an incorrect complex cepstrum. Deep spectral nulls, noise, and insufficient frequency resolution can therefore create substantial errors.
For a positive real gain g and poles and zeros inside the unit circle:
H(z) = g [ ∏k (1 − zkz−1) ] / [ ∏ℓ (1 − pℓz−1) ]
logarithmic expansion gives:
c[0] = ln g
c[n] = [ Σℓpℓn − Σkzkn ] / n, n > 0
c[n] = 0, n < 0
The cepstral coefficients therefore contain a compact description of pole and zero locations. Roots close to the unit circle create coefficients that decay slowly with quefrency, while roots closer to the origin create more rapidly decaying coefficients.
The complex cepstrum of a strict minimum-phase rational system is right-sided:
c[n] = 0 for n < 0
This is the cepstral equivalent of having all poles and zeros inside the unit circle.
| System type | Typical complex-cepstrum support |
|---|---|
| Minimum phase | Positive quefrencies |
| Maximum phase | Negative quefrencies |
| Mixed phase | Both positive and negative quefrencies |
| Pure delay | Requires separate handling because magnitude contains no delay information |
The complex logarithmic spectrum can be separated into real and imaginary terms:
log H(ejω) = ln |H(ejω)| + jφ(ω)
Define:
cm[n] = ℱ−1 { ln |H(ejω)| }
cφ[n] = ℱ−1 { jφ(ω) }
The complete complex cepstrum is:
c[n] = cm[n] + cφ[n]
In the general complex case:
cm[n] = [ c[n] + c*[−n] ] / 2
cφ[n] = [ c[n] − c*[−n] ] / 2
For a real system with a real complex-cepstral sequence, the conjugation can be omitted. The magnitude cepstrum is even, while the phase cepstrum is odd.
Since a minimum-phase complex cepstrum is zero for negative quefrencies, its positive coefficients can be recovered directly from the real magnitude cepstrum:
c[0] = cm[0]
c[n] = 2cm[n], n > 0
c[n] = 0, n < 0
This is the central cepstral reconstruction rule. The real cepstrum is symmetric because it contains magnitude only. Minimum-phase reconstruction keeps the positive quefrency side, doubles it, retains the zero-quefrency coefficient, and removes the negative side.
For a real minimum-phase system with a right-sided cepstrum:
log H(ejω) = c[0] + Σn=1∞ c[n]e−jωn
Expanding the complex exponential gives:
ln |H(ejω)| = c[0] + Σn=1∞ c[n]cos(nω)
φ(ω) = − Σn=1∞ c[n]sin(nω)
The same cepstral coefficients determine both quantities. Cosine terms construct the logarithmic magnitude, while sine terms construct the phase.
This equation is the clearest mathematical statement of the central message of Section 6.3: minimum-phase magnitude and phase are generated by the same one-sided cepstral sequence.
A minimum-phase impulse response can be constructed from a sampled magnitude response using the following procedure:
For an even transform length N, the standard minimum-phase lifter is:
| Cepstral index | Operation |
|---|---|
| n = 0 | Retain once |
| 1 ≤ n < N / 2 | Multiply by two |
| n = N / 2 | Retain once |
| N / 2 < n < N | Set to zero |
For an odd transform length, the zero-quefrency coefficient is retained, the positive half is doubled, and the negative half is removed.
| Information | Recovered from magnitude? | Reason |
|---|---|---|
| Minimum-phase spectral shaping | Yes | Magnitude and minimum-phase phase are linked. |
| Minimum-phase impulse response | Yes | The one-sided cepstrum determines it. |
| Pure delay | No | A delay has unit magnitude at every frequency. |
| All-pass phase | No | An all-pass factor changes phase without changing magnitude. |
| Original outside-zero placement | No | Inside and outside reciprocal zeros can share the same magnitude after gain adjustment. |
| Constant gain sign or global phase | Not uniquely | Magnitude does not contain global phase orientation. |
A reconstructed minimum-phase system may be checked by examining:
A desired magnitude response can be converted into a minimum-phase finite impulse response filter through cepstral reconstruction.
Compared with a linear-phase filter of similar magnitude selectivity, a minimum-phase filter often places more energy near the beginning of the impulse response and can provide lower effective latency.
Typical applications include:
A loudspeaker or headphone response often contains a substantial minimum-phase component. When a magnitude irregularity belongs to this component, correcting the magnitude also corrects its associated minimum-phase phase behavior.
The measured response may additionally contain:
These components cannot be inferred from magnitude alone. A useful analysis therefore compares the measured phase with the phase predicted from the measured magnitude under the minimum-phase assumption. The difference is commonly described as excess phase.
A room response is usually mixed phase rather than purely minimum phase. Resonant spectral shaping may behave approximately as a minimum-phase component, while reflections, propagation paths, and spatial cancellations introduce delay and all-pass behavior.
Cepstral minimum-phase reconstruction can help separate:
Measured response = Minimum-phase spectral component × Excess-phase component × Pure delay
This distinction is important because an equalizer can often address minimum-phase spectral coloration more safely than deep reflection-induced spatial nulls.
Speech is commonly represented by a source-filter model:
Speech spectrum = Excitation spectrum × Vocal-tract spectrum × Radiation characteristic
The vocal-tract filter is often approximated by a stable minimum-phase all-pole model. This permits a causal synthesis filter and a stable inverse filter for residual extraction.
Cepstral methods support:
Separation by low and high quefrency is approximate. The source and filter components may overlap, particularly in short, noisy, or strongly nonstationary speech segments.
A minimum-phase channel has a causal stable inverse, which simplifies equalizer design. A nonminimum-phase channel contains outside zeros, and direct causal inversion would place unstable poles in the equalizer.
Practical systems may respond by using:
Given a valid power spectral density S(ω), spectral factorization seeks a causal stable transfer function H(z) satisfying:
S(ω) = σ2 |H(ejω)|2
Selecting the minimum-phase factor produces a unique causal stable solution after gain normalization. This principle is used in stochastic-process modeling, whitening-filter design, prediction, and system identification.
When an observed signal is formed by convolution, logarithmic spectral transformation turns the convolution into cepstral addition.
Cepstral liftering can then emphasize different quefrency regions:
These interpretations depend on signal structure and should not be treated as universal assignments.
A physiological recording may be represented conceptually as:
Biological source × Tissue-transfer response × Sensor response × Electronic-filter response
Minimum-phase analysis can support:
Biological propagation paths may contain reflections, distributed delays, and mixed-phase behavior. A minimum-phase reconstruction should therefore be treated as a model-derived component rather than a complete reconstruction of the original physiological event.
A minimum-phase system may have a substantial nonlinear phase response. The term describes the relationship between magnitude, phase, causality, and invertibility rather than the absence of phase shift.
Phase is defined modulo 2π. Numerical comparison of wrapped phase angles is therefore not a reliable definition of minimum phase.
A delay has magnitude one at every frequency:
|e−jωD| = 1
No magnitude-only method can determine D without additional timing or phase information.
An all-pass system has:
|A(ejω)| = 1
It can substantially alter phase, group delay, and waveform shape while leaving magnitude unchanged.
At an exact spectral zero:
ln 0 = −∞
Numerical cepstral methods therefore apply a positive magnitude floor. The selected floor influences the reconstructed notch depth and impulse-response length.
A zero close to the unit circle produces an inverse pole close to the unit circle. The inverse may be mathematically stable but highly sensitive to noise, finite precision, and model mismatch.
The complex cepstrum requires consistent phase unwrapping and a selected branch of the complex logarithm. Incorrect branch selection can move energy between positive and negative quefrencies.
A discrete Fourier transform treats sequences as periodic. Insufficient transform length can cause cepstral aliasing, circular overlap, and inaccurate minimum-phase reconstruction. Zero-padding and adequate spectral sampling help reduce these effects.
The real cepstrum contains magnitude information only. Minimum-phase, maximum-phase, and mixed-phase systems can have the same real cepstrum when their magnitude responses are identical.
Section 6.3 explains that the magnitude response uniquely determines a minimum-phase realization, and that the cepstrum converts this theoretical relationship into a practical reconstruction procedure.
Written on June 28, 2026
Section 6.4 extends the minimum-phase discussion to systems encountered in practical measurements. A real transfer function is not necessarily minimum phase. It may contain zeros outside the unit circle, propagation delay, reflections, or other phase-only behavior that cannot be determined from magnitude alone.
The principal objective is to represent such a system as a cascade of two conceptually different components:
H(z) = Hmin(z) A(z)
The minimum-phase component Hmin(z) possesses the same magnitude response as the original system and contains all poles and zeros inside the unit circle. The all-pass component A(z) has unit magnitude and contains the remaining phase behavior.
Original transfer function → Minimum-phase spectral component × All-pass phase component
Central message: A measured response may contain one component that determines spectral shape and another component that changes timing without changing magnitude. Pole-zero reflection and cepstral analysis provide two complementary methods for separating these effects.
Section 6.3 established that magnitude and phase are linked for a minimum-phase system. Section 6.4 considers the more general case:
How can a nonminimum-phase system be separated into a minimum-phase component and a phase-only residual?
This question is important because identical magnitude responses do not guarantee identical phase responses, group delays, impulse responses, or transient behavior.
| Component | Magnitude | Phase | Pole-zero property | Principal role |
|---|---|---|---|---|
| Minimum-phase component | Equal to the magnitude of the original system | Minimum phase associated with that magnitude | Poles and zeros inside the unit circle | Spectral shaping and stably invertible dynamics |
| All-pass component | Unity at every frequency | Generally frequency dependent | Each pole is paired with a reciprocal-conjugate zero | Delay, phase rotation, and group-delay modification |
The two components are cascaded rather than added:
H(z) = Hmin(z) A(z)
In the time domain, multiplication of transfer functions corresponds to convolution:
h[n] = hmin[n] * a[n]
The minimum-phase response is therefore followed by an all-pass response. The all-pass component can change the final waveform even though it does not change the magnitude spectrum.
| Subsection | Principal question | Main method | Main result |
|---|---|---|---|
| 6.4.1 | How is the decomposition obtained when poles and zeros are known? | Reflect outside zeros into the unit circle. | A minimum-phase factor and a stable all-pass factor are formed. |
| 6.4.2 | How is the decomposition obtained from measured signal data? | Use logarithmic spectra and cepstral sequences. | The minimum-phase response is reconstructed and the all-pass residual is calculated. |
| 6.4.3 | How do different phase classes appear in the cepstral domain? | Compare positive and negative quefrency coefficients. | Minimum-, maximum-, mixed-, and all-pass characteristics become distinguishable. |
For a causal rational system, the minimum-phase component contains:
The resulting system has the same magnitude response as the original system but has no unnecessary nonminimum-phase zero placement.
An all-pass transfer function satisfies:
|A(ejω)| = 1
Its output power spectrum is therefore unchanged:
|A(ejω)|2 = 1
Its phase need not be zero:
∠A(ejω) ≠ 0
Consequently, an all-pass system may alter:
A pure delay has transfer function:
HD(z) = z−D
Its magnitude is one, and its phase is linear:
|HD(ejω)| = 1
φD(ω) = −Dω
Pure delay is therefore an all-pass operation in the magnitude sense. In practical decomposition, it is often displayed separately from the remaining all-pass component:
H(z) = Hmin(z) Aexcess(z) z−D
| Observed property | Minimum-phase component | All-pass or delay component |
|---|---|---|
| Spectral peaks and valleys | Primary responsibility | No effect on magnitude |
| Minimum phase associated with magnitude | Primary responsibility | Adds excess phase |
| Absolute propagation delay | Not recoverable from magnitude | Primary responsibility |
| Frequency-dependent group delay | May contribute | May add substantial excess delay |
| Stable causal inverse | Available in principle | Inverse may require advance or special treatment |
| Magnitude-only reconstruction | Recoverable | Not recoverable |
The pole-zero diagram provides the most direct decomposition when the transfer function is known analytically.
| Zero location | Classification | Required operation |
|---|---|---|
| |zk| < 1 | Minimum-phase zero | Retain in the minimum-phase component |
| |zk| > 1 | Nonminimum-phase zero | Reflect inside and create an all-pass factor |
| |zk| = 1 | Unit-circle zero | Requires special treatment because strict inversion is singular |
Let an outside zero be located at:
zo, |zo| > 1
Its reciprocal-conjugate reflection inside the unit circle is:
p = 1 / zo*
Since |p| < 1, the reflected location can be used as a minimum-phase zero and as the pole of a stable all-pass section.
A first-order all-pass factor corresponding to the outside zero is:
Ao(z) = [ z−1 − p* ] / [ 1 − pz−1 ]
This all-pass factor has:
The original outside-zero factor can be written as:
1 − zoz−1 = −zo [ 1 − pz−1 ] Ao(z)
The reflected factor belongs to the minimum-phase component, while Ao(z) belongs to the all-pass component. The constant −zo is included in the overall gain and phase normalization.
On the unit circle:
Ao(ejω) = [ e−jω − p* ] / [ 1 − pe−jω ]
The numerator and denominator have equal magnitude:
|e−jω − p*| = |1 − pe−jω|
Therefore:
|Ao(ejω)| = 1
Consider:
H(z) = [ (1 − 0.4z−1) (z−1 − 0.5) ] / [ 1 − 0.7z−1 ]
The factor z−1 − 0.5 has a zero at z = 2, which lies outside the unit circle. Its reflected location is z = 0.5.
The minimum-phase component is:
Hmin(z) = [ (1 − 0.4z−1) (1 − 0.5z−1) ] / [ 1 − 0.7z−1 ]
The all-pass component is:
A(z) = [ z−1 − 0.5 ] / [ 1 − 0.5z−1 ]
The exact decomposition is:
H(z) = Hmin(z) A(z)
| Transfer function | Zeros | Poles | Magnitude property |
|---|---|---|---|
| H(z) | 0.4 and 2 | 0.7 | Original magnitude |
| Hmin(z) | 0.4 and 0.5 | 0.7 | Same as H(z) |
| A(z) | 2 | 0.5 | Unity at all frequencies |
The pole-zero diagram separates two different forms of information:
Pole-zero decomposition is direct when an exact rational model is available. Practical measurements, however, often provide only:
The cepstrum permits decomposition without first identifying every pole and zero explicitly.
The multiplicative decomposition:
H(ejω) = Hmin(ejω) A(ejω)
becomes additive after taking the complex logarithm:
log H(ejω) = log Hmin(ejω) + log A(ejω)
The inverse Fourier transform then gives:
cH[n] = cmin[n] + cA[n]
Multiplicative transfer-function components have therefore become additive cepstral components.
| Cepstral representation | Input | Retained information | Role in decomposition |
|---|---|---|---|
| Real cepstrum | ln |H(ejω)| | Magnitude only | Constructs the minimum-phase equivalent |
| Complex cepstrum | ln |H| + jφu | Magnitude and unwrapped phase | Describes the original phase class and all-pass residual |
The real cepstrum cannot reveal the original all-pass component because all-pass magnitude is one. Original phase information or a complex frequency response is required to recover the all-pass residual.
Let the real cepstrum be:
cr[n] = ℱ−1 { ln |H(ejω)| }
For a real system, the minimum-phase complex cepstrum is constructed as:
cmin[0] = cr[0]
cmin[n] = 2cr[n], n > 0
cmin[n] = 0, n < 0
The minimum-phase frequency response is then reconstructed by:
Hmin(ejω) = exp { ℱ [ cmin[n] ] }
When the original complex response is known:
A(ejω) = H(ejω) / Hmin(ejω)
Ideally:
|A(ejω)| = 1
Its phase is the excess phase:
φexcess(ω) = φoriginal(ω) − φminimum(ω)
In the cepstral domain:
cA[n] = cH[n] − cmin[n]
| Cepstral support | Typical interpretation |
|---|---|
| Positive quefrencies only | Minimum-phase pole-zero structure |
| Negative quefrencies only | Maximum-phase zero structure after gain and delay alignment |
| Both positive and negative quefrencies | Mixed-phase system |
| Odd two-sided structure | All-pass phase component after pure delay is separated |
Important distinction: Negative quefrency indicates outside-zero or nonminimum-phase content. The all-pass component, however, is not obtained merely by taking the negative side of the original cepstrum. A causal all-pass factor contains both an outside zero and an inside pole, so its complex cepstrum is generally two-sided.
| Quantity | Recoverable from magnitude alone? | Reason |
|---|---|---|
| Minimum-phase equivalent | Yes | Minimum-phase magnitude and phase are linked. |
| Minimum-phase impulse response | Yes | It can be reconstructed from the real cepstrum. |
| Original all-pass phase | No | All-pass magnitude is unity. |
| Pure delay | No | Delay does not change magnitude. |
| Original outside-zero locations | No | Reflected zeros produce the same magnitude after gain adjustment. |
| Excess group delay | No | Original phase information is required. |
Consider:
H1(z) = 1 − 0.5z−1
Its zero is at z = 0.5, inside the unit circle. Its complex cepstrum is right-sided:
c1[n] = −0.5n / n, n > 0
c1[n] = 0, n < 0
Consider:
H2(z) = z−1 − 0.5
Its zero is at z = 2, outside the unit circle. After separating the gain and one-sample delay, its zero-related complex cepstrum is left-sided:
c2[−m] = −0.5m / m, m > 0
The magnitude response is identical to that of H1(z), but the cepstral support and phase response are different.
Consider again:
H(z) = [ (1 − 0.4z−1) (z−1 − 0.5) ] / [ 1 − 0.7z−1 ]
This transfer function contains:
After separating the pure delay, the original mixed-phase cepstrum has:
cH[n] = [ 0.7n − 0.4n ] / n, n > 0
cH[−m] = −0.5m / m, m > 0
The positive side describes the original inside pole and zero. The negative side reveals the outside zero.
Reflecting the outside zero at 2 to 0.5 gives:
Hmin(z) = [ (1 − 0.4z−1) (1 − 0.5z−1) ] / [ 1 − 0.7z−1 ]
Its complex cepstrum is:
cmin[n] = [ 0.7n − 0.4n − 0.5n ] / n, n > 0
cmin[n] = 0, n < 0
After the pure delay is handled separately:
cA[n] = cH[n] − cmin[n]
The all-pass residual becomes:
cA[n] = 0.5n / n, n > 0
cA[−m] = −0.5m / m, m > 0
This sequence is odd. Its even part is zero, which is consistent with the fact that an ideal all-pass component has zero logarithmic magnitude.
| System type | Positive quefrency | Negative quefrency | Magnitude information | Phase interpretation |
|---|---|---|---|---|
| Minimum phase | Present | Absent | Present | Phase determined by magnitude |
| Maximum phase | Absent or limited after alignment | Present | Present | Outside-zero phase behavior |
| Mixed phase | Present | Present | Present | Inside and outside zeros are combined |
| All pass | Present | Present with opposite symmetry | Zero logarithmic magnitude | Phase-only residual |
The minimum-phase component explains the part of phase that necessarily accompanies the observed magnitude response. The all-pass component explains phase that remains after that necessary relationship has been removed.
Measured phase = Minimum-phase phase + Excess phase
This distinction helps determine whether a response feature is primarily:
A minimum-phase spectral irregularity can often be corrected by an inverse minimum-phase filter, subject to noise and gain limitations.
An all-pass or delay component requires a different form of correction:
A deep spatial cancellation caused by two propagation paths may not be safely corrected by magnitude equalization alone.
The minimum-phase component places energy as early as possible for the prescribed magnitude response. The all-pass component redistributes that energy in time without changing the magnitude spectrum.
The original response may therefore have:
A measured loudspeaker response contains spectral behavior from the drivers, enclosure, crossover, and radiation characteristics. It may also contain delay and excess phase caused by:
Comparing the measured phase with the minimum-phase phase predicted from magnitude reveals the excess-phase component.
Two drivers may have individually appropriate magnitude responses but fail to sum correctly because their phases differ near the crossover frequency.
Decomposition can distinguish:
Room resonances may exhibit approximately minimum-phase behavior, while reflections and multiple propagation paths introduce excess phase and comb filtering.
The decomposition helps separate:
Room spectral shaping + Reflection-related timing behavior
This distinction is useful because spectral coloration may be partly equalizable, whereas position-dependent reflection nulls are often better addressed through placement, acoustic treatment, or multiple-source strategies.
A communication channel may contain minimum-phase attenuation together with all-pass delay distortion caused by multipath propagation.
The minimum-phase part can be compensated with a stable inverse under suitable conditions. The all-pass part may require:
Speech may be represented by source and filter components. The vocal-tract response is often approximated as minimum phase, while some glottal-source and radiation characteristics may introduce mixed-phase behavior.
Complex cepstral decomposition can support:
The decomposition remains model dependent because source and filter cepstral components may overlap.
All-pass filters are deliberately used to change temporal and spatial characteristics without changing the stationary magnitude spectrum substantially.
Applications include:
A measured waveform includes the response of the sensor, coupling medium, analog front end, and digital filter. A calibration response can be decomposed into:
Such separation supports more controlled inverse filtering and more accurate comparison between instruments.
A recorded heart or lung sound may be represented conceptually as:
Biological source × Tissue-transfer response × Sensor-coupling response × Instrument response
The minimum-phase component may describe part of the spectral shaping introduced by tissues and instrumentation. The excess-phase component may contain contributions from propagation distance, reflections, sensor placement, and electronic delay.
Potential applications include:
The separated components remain signal-processing descriptions rather than direct clinical diagnoses. Physiological interpretation requires validated acquisition and clinical models.
Since:
|A(ejω)| = 1
the all-pass component leaves no evidence in the magnitude response. Original phase, complex-response, or timing information is required.
Negative-quefrency coefficients indicate outside-zero behavior. A causal all-pass system also contains reciprocal poles inside the unit circle, which contribute positive-quefrency coefficients.
Pure delay changes phase but not magnitude. It also introduces branch and alignment ambiguities in the complex logarithm. A reliable decomposition often estimates and removes the dominant delay before cepstral analysis.
At an exact unit-circle zero:
ln |H(ejω)| → −∞
The inverse response becomes unbounded at that frequency, and cepstral reconstruction requires a magnitude floor or regularization.
Noise, windowing, spectral smoothing, phase error, and numerical division can cause the calculated residual magnitude to deviate from unity. The result may require normalization and careful interpretation.
Incorrect 2π adjustments alter the complex logarithm and may produce false positive- or negative-quefrency coefficients. Deep notches and low signal-to-noise ratios are especially problematic.
A discrete Fourier transform produces a periodic cepstral sequence. Insufficient transform length can cause positive and negative quefrency components to overlap.
Adequate zero-padding, frequency resolution, and time-window selection are therefore important.
A minimum-phase zero close to the unit circle creates an inverse pole close to the unit circle. The inverse may be mathematically stable but may strongly amplify noise and modeling error.
Gain sign, constant phase, pure delay, phase branch, and time origin must be defined consistently. Once these conventions are fixed, the minimum-phase and all-pass decomposition becomes well defined under the usual rational-system assumptions.
Section 6.4 shows that a general stable transfer function can be interpreted as a minimum-phase system that explains its magnitude response, followed by an all-pass system that explains the remaining phase and timing behavior.
Written on June 28, 2026
Section 6.5 brings the preceding discussions of zeros, phase, minimum phase, and all-pass behavior into the practical problem of filter design. The central objective is to select a desired range of frequencies while preserving the relative timing of the frequency components that remain.
An ideal low-pass filter provides perfect frequency selection: every component below the cutoff frequency is transmitted, and every component above it is eliminated. A linear-phase system provides uniform delay: every retained frequency component is shifted by the same amount of time.
Ideal magnitude selection + Linear phase = Frequency filtering with controlled waveform timing
The difficulty is that an ideal low-pass filter has an infinitely long sinc impulse response and cannot be implemented exactly as a finite causal real-time system. Practical design therefore truncates or windows the sinc response, producing a finite impulse response filter whose symmetry preserves exact linear phase but whose magnitude response only approximates the ideal rectangle.
Central message: A realizable low-pass filter must balance frequency selectivity, ripple, impulse-response length, delay, and temporal ringing. Symmetric finite impulse response filters preserve linear phase, while truncation and windowing determine how closely their magnitude responses approximate an ideal low-pass filter.
A practical filter must answer two different questions:
A filter with an appropriate magnitude response but unsuitable phase may alter pulse shape, transient timing, waveform symmetry, or the summation between multiple signal paths. Conversely, a filter with linear phase but inadequate stopband attenuation may preserve timing while failing to remove unwanted spectral components.
| Subsection | Principal question | Main conclusion | Practical significance |
|---|---|---|---|
| 6.5.1 | What is a linear-phase system? | A linear phase response produces constant group delay. | Relative timing among retained frequency components is preserved. |
| 6.5.2 | What is the ideal low-pass filter? | A rectangular frequency response corresponds to an infinite sinc impulse response. | Perfect frequency separation is mathematically clear but physically unrealizable. |
| 6.5.3 | How are resonance and cutoff related to frequency selection? | A resonator selects a localized frequency region, while a low-pass filter passes a continuous band below its cutoff. | Pole placement, damping, cutoff, selectivity, and ringing must be considered together. |
| 6.5.4 | What happens when the ideal sinc response is truncated? | A finite polynomial and a finite set of zeros replace the ideal infinite response. | Transition width and ripple appear, while symmetric coefficients retain linear phase. |
| 6.5.5 | How are linear phase and low-pass design combined? | A shifted, truncated, and windowed sinc produces a realizable linear-phase FIR approximation. | Filter length and window choice determine the principal engineering trade-offs. |
Desired frequency selection
│
▼
Ideal rectangular low-pass response
│
▼
Infinite sinc impulse response
│
▼
Shift to introduce causal delay
│
▼
Truncate or apply a window
│
▼
Finite symmetric FIR filter
│
├── Approximate low-pass magnitude
└── Exact linear phase
A system has linear phase over a frequency interval when its phase can be written as:
φ(ω) = φ0 − Dω
Equivalently, its frequency response can be expressed as:
H(ejω) = A(ω) ejφ0 e−jωD
Here:
When A(ω) changes sign, the displayed phase may contain π jumps. These jumps arise from the sign of the real amplitude function and do not change the underlying linear-phase slope between spectral zeros.
Group delay is the negative derivative of accumulated phase:
τg(ω) = − dφ(ω) / dω
For linear phase:
τg(ω) = D
Every frequency component within the relevant band experiences the same delay. Relative phase relationships are therefore preserved.
The following graph compares a one-sample pure delay with a first-order all-pass system. Both have unity magnitude. The pure delay has a straight phase line, whereas the all-pass system has a curved phase response and frequency-dependent group delay.
If a signal occupies a frequency band in which the magnitude is constant and the phase is linear:
H(ejω) = C e−jωD
the output is a scaled and delayed copy of the input:
y[n] = Cx[n − D]
Linear phase alone does not guarantee complete waveform preservation if the magnitude varies substantially across the signal bandwidth. Frequency-dependent attenuation can still alter waveform shape. Linear phase guarantees that no additional phase dispersion is introduced.
A real finite impulse response filter of length N has exact linear phase when its coefficients are symmetric or antisymmetric:
Symmetric: h[n] = h[N − 1 − n]
Antisymmetric: h[n] = −h[N − 1 − n]
The corresponding group delay is:
D = (N − 1) / 2
An odd filter length produces an integer-sample delay. An even filter length produces a half-sample group delay, although the filter itself remains a causal discrete-time system.
| Type | Length | Symmetry | Forced spectral zeros | Typical applications |
|---|---|---|---|---|
| Type I | Odd | Symmetric | None at DC or Nyquist by symmetry alone | General low-pass, high-pass, band-pass, and band-stop filters |
| Type II | Even | Symmetric | Zero at the Nyquist frequency, z = −1 | Low-pass and some band-pass filters |
| Type III | Odd | Antisymmetric | Zeros at DC and Nyquist, z = +1 and z = −1 | Differentiators and selected band-pass responses |
| Type IV | Even | Antisymmetric | Zero at DC, z = +1 | Hilbert transformers and differentiators |
A conventional low-pass filter requires nonzero response at direct current and zero or small response near the Nyquist frequency. Symmetric Type I and Type II structures are therefore the natural choices.
Exact linear phase is obtained by centering a symmetric impulse response around (N − 1) / 2. A causal implementation delays the entire response so that all coefficients occur at nonnegative sample indices.
This produces latency equal to the group delay. A sharply selective symmetric filter may also exhibit oscillations on both sides of its central impulse-response peak. When applied to a sudden transient, oscillation may appear before and after the principal output peak, although the causal output still begins after the input arrives.
The apparent oscillation before the delayed main peak is commonly described as pre-ringing. It is a consequence of symmetric temporal energy placement, not noncausal real-time output.
An ideal zero-phase low-pass filter passes every frequency whose magnitude is below the cutoff frequency ωc and rejects every higher frequency:
H0(ejω) = 1, |ω| < ωc
H0(ejω) = 0, ωc < |ω| ≤ π
The passband-to-stopband transition occurs instantaneously. There is no transition band, no passband ripple, and no stopband leakage.
The impulse response is obtained from the inverse discrete-time Fourier transform:
h0[n] = (1 / 2π) ∫−ωcωc ejωn dω
Evaluation gives:
h0[n] = sin(ωcn) / (πn), n ≠ 0
h0[0] = ωc / π
This is a discrete-time sinc sequence. The rectangular frequency response and sinc impulse response form a Fourier-transform pair:
Rectangular frequency response ↔ Sinc impulse response
The centered sinc sequence extends from negative infinity to positive infinity:
−∞ < n < ∞
A real-time causal filter cannot use future input samples. Adding any finite delay merely shifts the infinite sequence and cannot remove its infinitely long negative-time portion.
The ideal low-pass filter is therefore not exactly realizable as a finite-delay causal system.
A perfectly sharp spectral discontinuity requires an impulse response with unlimited time support. The sinc sequence decays approximately as 1 / |n| but never becomes identically zero.
The sequence is not absolutely summable:
Σn=−∞∞ |h0[n]| = ∞
Under the strict bounded-input bounded-output criterion, the ideal brick-wall low-pass filter is therefore not a stable realizable discrete-time filter.
A desired delay M may be added to the ideal frequency response:
Hd(ejω) = e−jωM, |ω| < ωc
Hd(ejω) = 0, ωc < |ω| ≤ π
The corresponding impulse response is centered at n = M:
hd[n] = sin { ωc(n − M) } / { π(n − M) }
hd[M] = ωc / π
The delay produces linear phase but does not solve the infinite-length problem. Truncation or approximation remains necessary.
A sharp boundary in frequency requires a long response in time. Conversely, restricting the impulse response to a short interval necessarily smooths the frequency transition.
| Frequency-domain objective | Time-domain consequence |
|---|---|
| Very narrow transition band | Long impulse response |
| Very high stopband rejection | More coefficients or a more selective window |
| Perfect rectangular response | Infinite sinc response |
| Short latency and low complexity | Wider transition or greater ripple |
A resonator is a system that responds strongly near a selected frequency. A common second-order digital resonator has poles at:
p1,2 = re±jω0
Its denominator may be written as:
1 − 2r cos(ω0)z−1 + r2z−2
The pole angle ω0 determines the resonance frequency. The pole radius r determines damping and selectivity.
A resonator emphasizes a localized frequency region. An ideal low-pass filter passes a continuous set of frequency components extending from −ωc to +ωc.
| System | Frequency behavior | Primary parameter |
|---|---|---|
| Resonator | Emphasizes a narrow neighborhood of ω0 | Resonance frequency and damping |
| Low-pass filter | Passes the complete band from DC to ωc | Cutoff frequency and transition width |
The ideal impulse response can be interpreted as the continuous sum of all complex sinusoidal components inside the passband:
h0[n] = (1 / 2π) ∫−ωcωc ejωn dω
The cutoff frequency determines the integration limits. Increasing ωc includes a wider range of oscillatory components and produces a narrower central sinc lobe in time. Decreasing ωc passes fewer frequencies and produces a wider sinc response.
A narrow frequency band corresponds to a broadly distributed impulse response in time. A broad frequency band corresponds to a more concentrated impulse response.
For a sampling frequency fs and physical cutoff frequency fc, the normalized angular cutoff is:
ωc = 2πfc / fs
Relative to the Nyquist frequency fs / 2:
ωc / π = fc / (fs / 2)
A normalized cutoff of 0.4π therefore corresponds to 40% of the Nyquist frequency, or 20% of the sampling frequency.
The meaning of cutoff depends on the filter specification.
A reported cutoff frequency should therefore be interpreted together with the stated magnitude criterion.
Poles used to sharpen an IIR low-pass transition may produce magnitude peaking and increased group delay near the cutoff region. Greater selectivity can therefore introduce:
A sharp cutoff is not obtained without temporal consequences. The pole-zero structure determines how those consequences appear.
The ideal sinc response extends infinitely in both directions. A finite impulse response is obtained by retaining only a finite interval or, more generally, by multiplying the sinc sequence by a finite window:
hw[n] = hd[n] w[n]
Direct truncation corresponds to a rectangular window. Other windows gradually reduce the outer coefficients and modify the trade-off between transition width and ripple.
Windowing in the time domain produces periodic convolution in the frequency domain:
Hw(ejω) = (1 / 2π) [ Hd(ejω) * W(ejω) ]
The ideal rectangular response is therefore blurred by the frequency response of the window. The result contains:
Direct truncation produces oscillation near the discontinuity of the desired frequency response. Increasing the number of retained sinc samples narrows the region containing the oscillation but does not eliminate the characteristic peak ripple of the rectangular-window approximation.
A smoother window reduces sidelobe levels at the cost of a wider transition band.
An N-tap truncated response produces the FIR transfer function:
H(z) = Σn=0N−1 h[n]z−n
After multiplication by zN−1, the result is a polynomial of degree N − 1, provided the first and last coefficients are nonzero. It therefore has N − 1 finite zeros when multiplicity is included.
These zeros replace the perfect continuous stopband of the ideal filter with a finite collection of exact frequency cancellations and nearby attenuation regions.
Real coefficients require complex zeros to occur in conjugate pairs:
z0 ↔ z0*
Symmetric or antisymmetric coefficients also produce reciprocal pairing:
z0 ↔ 1 / z0
For a real linear-phase FIR filter, an off-circle complex zero generally belongs to the quartet:
{ z0, z0*, 1 / z0, 1 / z0* }
Zeros on the unit circle are their own reciprocal partners. Exact linear phase does not require every zero to lie on the unit circle.
The following pole-zero diagram represents a nine-tap, rectangularly truncated ideal low-pass impulse response with cutoff ωc = 0.4π.
Increasing the filter length increases the number of zeros available to approximate the desired stopband. This generally produces:
Changing the window changes the coefficients and therefore moves the zeros. A window with stronger endpoint tapering commonly reduces stopband sidelobes, but it broadens the main transition region.
| Window characteristic | Frequency consequence | Zero-related interpretation |
|---|---|---|
| Abrupt rectangular truncation | Narrower transition but stronger sidelobes | Zeros create narrow nulls separated by comparatively high leakage |
| Smooth endpoint taper | Lower sidelobes but wider transition | Zero distribution changes to produce broader, smoother attenuation |
| Longer window | Narrower transition | Additional zeros improve frequency resolution |
The ideal delayed low-pass response combines a rectangular magnitude with a linear phase:
Hd(ejω) = e−jωM, |ω| < ωc
Hd(ejω) = 0, ωc < |ω| ≤ π
Its impulse response is symmetric about n = M. Symmetry produces the linear phase e−jωM, while the sinc shape produces the low-pass magnitude.
A realizable linear-phase low-pass FIR filter is obtained by:
The following graph compares the ideal low-pass response with rectangularly truncated sinc filters of two lengths. All finite responses are normalized to unity gain at direct current.
| Design change | Advantage | Cost |
|---|---|---|
| Increase filter length | Narrower transition and potentially greater attenuation | More computation, memory, delay, and ringing duration |
| Use stronger window tapering | Lower stopband sidelobes | Wider transition band |
| Use a rectangular window | Relatively narrow transition for a given length | High sidelobes and pronounced ripple |
| Require exact linear phase | Constant group delay and controlled waveform timing | Symmetric latency and possible pre-ringing around the delayed peak |
| Choose a minimum-phase equivalent | Earlier energy concentration and lower effective latency | Nonlinear phase and frequency-dependent group delay |
A symmetric linear-phase FIR filter normally contains reciprocal zero pairs. When a zero is outside the unit circle, its reciprocal partner lies inside. Such a filter is generally not minimum phase.
A minimum-phase filter with the same magnitude response reflects all outside zeros into the unit circle. It concentrates energy earlier but loses exact linear phase.
| Property | Linear-phase FIR | Minimum-phase equivalent |
|---|---|---|
| Magnitude response | Specified approximation | Can be identical |
| Phase | Linear apart from π sign changes | Generally nonlinear |
| Group delay | Constant | Frequency dependent |
| Energy distribution | Symmetric about the delay center | Concentrated near the beginning |
| Latency | (N − 1) / 2 samples | Lower effective latency |
| Typical priority | Waveform timing and phase alignment | Low latency and stable inversion |
A complete low-pass filter evaluation should include:
Low-pass filters are fundamental to interpolation and decimation.
A digital filter applied after analog-to-digital conversion cannot remove aliasing that has already occurred during sampling. An analog anti-alias filter remains necessary before the converter.
Low-pass filtering is used in converters, oversampling systems, equalizers, crossovers, noise reduction, and mastering.
Linear-phase filtering may be selected when phase alignment is important, particularly in multiband processing or crossover summation. Minimum-phase filtering may be preferred when latency and pre-ringing are more important than constant group delay.
A crossover divides a signal among drivers operating in different frequency bands. Matching magnitude alone is insufficient because the acoustic outputs must also combine with suitable phase.
Linear-phase crossover filters can provide controlled electrical delay, but physical driver offsets, acoustic propagation, and individual driver responses must still be considered.
Electrocardiographic signals, pulse waves, heart sounds, and lung sounds often contain diagnostically relevant timing and morphology. A symmetric FIR low-pass filter can suppress high-frequency noise while providing constant group delay.
Relevant applications include:
Frequency removal can still change waveform morphology even when phase is linear. Filter bandwidth should therefore retain the spectral content required for the intended measurement.
Short events such as valve closures and crackles contain broadband transient energy. An excessively low cutoff can smooth or broaden these events, while nonlinear phase can shift different spectral components by different amounts.
A linear-phase FIR filter provides a known constant delay, which can be removed from event timestamps after processing. The delay should be documented when signals are compared with electrocardiographic or respiratory reference channels.
Linear-phase low-pass and band-limiting filters are used in:
Constant group delay helps preserve relative symbol timing, although overall system design must also control intersymbol interference and channel dispersion.
A two-dimensional low-pass filter suppresses fine spatial detail and noise. A symmetric kernel has zero spatial phase when centered, so image structures are not shifted directionally.
Practical applications include:
A linear-phase filter normally has substantial phase shift:
φ(ω) = −Dω
The phase is linear because its slope is constant, not because the phase is absent.
Constant group delay prevents phase dispersion. It does not prevent attenuation of selected frequencies. A low-pass filter intentionally changes any waveform containing significant energy above its passband.
Its impulse response is infinite, two-sided, and not absolutely summable. Every practical implementation is an approximation with a finite transition band and nonzero ripple or leakage.
Increasing length narrows the transition region and moves oscillations closer to the discontinuity. The characteristic peak ripple associated with an abrupt rectangular window does not simply disappear.
Symmetry requires reciprocal zero pairing, not universal unit-circle placement. Off-circle zeros can occur in reciprocal-conjugate groups.
Reciprocal zero pairs commonly place some zeros outside the unit circle. The corresponding minimum-phase equivalent has the same magnitude but a different phase and earlier energy concentration.
The cutoff may refer to an ideal boundary, a half-power point, a passband edge, a stopband edge, or the center of a transition band. The numerical value is incomplete without its definition.
Forward-backward filtering can cancel phase distortion in offline processing. It is noncausal, uses future samples, and applies the magnitude response twice:
|Hforward-backward(ejω)| = |H(ejω)|2
It should not be treated as equivalent to a single causal linear-phase FIR implementation.
Narrow transition bands and strong stopband rejection generally require more coefficients or higher-order dynamics. This increases delay, computational demand, or ringing.
Section 6.5 explains how ideal frequency selection leads to an infinite sinc response, how truncation converts that response into a finite zero structure, and how coefficient symmetry preserves exact linear phase in a realizable FIR approximation.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Chapter 7 explains how continuous sound becomes a discrete sequence, how that sequence is represented in the frequency domain, under which conditions the original signal remains recoverable, and how an existing digital sequence can be converted to another sampling frequency without creating unwanted distortion.
Physical sound is continuous. Air pressure changes at every instant, but a computer stores only a finite sequence of numerical values:
x[0], x[1], x[2], ..., x[n]
Chapter 7 examines whether this finite sequence can preserve the information contained in the original sound.
The central question is:
When can a continuous signal be represented, analyzed, reconstructed, and converted using only discrete samples?
Chapter 7 provides the mathematical foundation for three practical tasks:
These three tasks appear in almost every modern audio system, including recording devices, media players, spectrum analyzers, speech systems, medical-sound applications, and digital signal-processing software.
The entire chapter may be understood through one connected sequence:
periodic sequence → discrete spectrum → DFT pair → spectral repetition → sampling theorem → aliasing → interpolation → decimation → sampling-frequency conversion
Each section contributes one necessary part of this chain. Chapter 7 is therefore not merely a collection of independent formulas. It is a single explanation of how digital sound representation works.
| Section | Title | Principal message | Practical result |
|---|---|---|---|
| 7.1 | Sampling of spectral function | A finite set of spectral samples corresponds to a periodic time sequence | Foundation of finite Fourier representation |
| 7.2 | Discrete Fourier Transform and periodic property | Time samples and spectral coefficients form an invertible periodic pair | Foundation of FFT analysis, synthesis, and interpolation |
| 7.3 | Sampling theorem | Sampling creates periodic spectral copies, which must not overlap | Foundation of ADC, DAC, anti-aliasing, and reconstruction |
| 7.4 | Discrete Fourier Transform and sampling theorem | A sampled sinusoid connects analog frequency, digital frequency, and DFT bins | Foundation of tone measurement, alias recognition, and spectral interpretation |
| 7.5 | Interpolation and decimation of sequences | Changing a sampling frequency requires filtering as well as sample insertion or removal | Foundation of audio resampling and multirate processing |
Section 7.1 approaches sampling from the frequency-domain side. Instead of first asking what happens when a time signal is sampled, it asks what happens when a spectral function is sampled at equally spaced frequencies.
The important result is:
Equally spaced spectral samples produce a periodic representation in the time domain.
A periodic sequence containing N distinct samples can be represented by N discrete Fourier coefficients.
The relationship is:
one period of N time samples ⇄ N complex spectral coefficients
The coefficients contain the amplitude and phase of the sinusoidal components required to construct that period.
Each time sample may be written as a weighted sum of sinusoidal basis functions. Substituting all N time positions produces N equations for N unknown spectral coefficients.
The DFT later provides the systematic solution to these simultaneous equations.
This section explains why a periodic waveform can be stored or generated through a finite set of harmonic coefficients.
Practical applications include:
The forward DFT converts N time-domain samples into N complex spectral coefficients:
X[k] = Σn=0N−1 x[n]e−j2πkn/N
The inverse DFT reconstructs the time sequence:
x[n] = (1/N) Σk=0N−1 X[k]ej2πkn/N
The two equations form a pair because each representation contains the information required to recover the other.
The time-domain sequence answers:
How does the signal change from sample to sample?
The frequency-domain sequence answers:
Which sinusoidal components are required to construct the signal?
These are not separate signals. They are two coordinate systems for the same data.
An N-point DFT treats the input block as one period of an indefinitely repeated sequence:
x[n + N] = x[n]
The spectral sequence also repeats:
X[k + N] = X[k]
The end of a finite DFT block is therefore mathematically connected to its beginning.
A real recording block usually does not begin and end at matching waveform positions. When the DFT repeats the block, the boundary may contain an artificial discontinuity.
That discontinuity distributes energy across many frequency bins. This effect is called spectral leakage.
A window function reduces the boundary discontinuity, although it also changes the width and amplitude of spectral peaks.
Section 7.2 also introduces a useful duality:
The second operation makes a spectrum appear smoother but does not create additional measured frequency resolution.
Section 7.2 explains the behavior of:
A general signal may contain an unlimited range of frequencies. Exact digital representation requires a finite highest frequency.
Section 7.3 first introduces the partial sum of a Fourier series. A partial sum retains only a finite number of harmonics and therefore produces a band-limited signal.
If the highest retained frequency is B, the signal spectrum is zero outside the interval from −B to +B.
Uniform time sampling creates shifted copies of the original spectrum at intervals equal to the sampling frequency fs.
Conceptually:
one analog spectrum → sampling → repeated spectral copies
This repetition is the frequency-domain consequence of converting a continuous-time signal into a discrete-time sequence.
Adjacent spectral copies remain separated when:
fs > 2B
The value 2B is the Nyquist rate of the signal. The value fs/2 is the Nyquist frequency of the sampling system.
If the copies remain separated, an ideal low-pass reconstruction filter can isolate the original spectrum.
When the sampling frequency is too low, adjacent spectral copies overlap. Frequencies that were distinct before sampling become indistinguishable afterward.
This irreversible overlap is called aliasing.
A useful one-sided alias relation is:
falias = |f0 − mfs|
where m is selected so that the result lies between 0 and fs/2.
An ideal band-limited signal can be reconstructed through sinc interpolation:
x(t) = Σn=−∞∞ x(nTs) sinc((t − nTs)/Ts)
Each sample contributes to the entire reconstructed waveform. Exact reconstruction is not equivalent to joining adjacent samples with straight lines.
Practical systems do not operate exactly at the theoretical boundary. Real filters require a transition region.
The practical design rule is therefore:
Select a sampling frequency greater than twice the required signal bandwidth and reserve sufficient space for a realizable anti-aliasing filter.
The following graph compares 3 kHz and 5 kHz cosine waves sampled at 8 kHz. The continuous curves are different, but the recorded samples are identical.
Fourier analysis describes complex signals as combinations of sinusoidal components. A single sinusoid therefore provides the clearest connection between continuous frequency, sampled frequency, and DFT output.
A continuous sinusoid may be written as:
x(t) = A cos(2πf0t + φ)
Sampling at fs gives:
x[n] = A cos(2πf0n/fs + φ)
The phase advance per sample is determined by the normalized frequency f0/fs.
Frequencies separated by integer multiples of the sampling frequency can produce identical discrete sequences.
The DFT therefore identifies the digital-frequency representation contained in the samples. It cannot determine an out-of-band analog origin after aliasing has occurred.
For an N-point DFT, the bin spacing is:
Δf = fs/N
Bin k corresponds to:
fk = kfs/N
If a sinusoidal frequency coincides exactly with a DFT bin and the block contains an integer number of cycles, its energy is concentrated in the expected coefficient pair.
If the sinusoid lies between bins, energy spreads across multiple coefficients. This is spectral leakage rather than sampling aliasing.
| Phenomenon | Cause | Visible result | Primary solution |
|---|---|---|---|
| Aliasing | Insufficient sampling frequency or improper downsampling | A high frequency appears as a false lower frequency | Band-limit before sampling or decimation |
| Spectral leakage | Finite observation and boundary mismatch | Energy spreads across several DFT bins | Windowing, coherent sampling, or a longer observation |
Interpolation increases the sampling frequency by an integer factor L.
The conceptual process is:
insert L − 1 zeros → low-pass interpolation filter → higher-rate sequence
Zero insertion creates spectral images. The interpolation filter removes those images and calculates meaningful values between the original samples.
Decimation reduces the sampling frequency by an integer factor M.
The correct process is:
low-pass anti-aliasing filter → retain every Mth sample → lower-rate sequence
Removing samples before filtering allows frequencies above the new Nyquist limit to fold into the retained band.
A general conversion ratio may be written as L/M:
fs,out = fs,in × L/M
The conceptual process is:
interpolate by L → filter → decimate by M
The exact ratio is:
48,000 / 44,100 = 160 / 147
Conceptually:
44.1 kHz → interpolate by 160 → filter → decimate by 147 → 48 kHz
Efficient software normally implements this process with a polyphase filter rather than creating every conceptual intermediate sample.
| Operation | Sample action | Spectral risk | Required filter |
|---|---|---|---|
| Upsampling | Insert zeros | Spectral imaging | Anti-imaging filter |
| Interpolation | Upsample and filter | Residual images | Interpolation low-pass filter |
| Downsampling | Discard samples | Aliasing | Filter must precede sample removal |
| Decimation | Filter and downsample | Insufficient stopband attenuation | Anti-aliasing low-pass filter |
| General conversion | Interpolate and decimate | Imaging and aliasing | Combined conversion filter |
| Operation or property | Time-domain result | Frequency-domain result |
|---|---|---|
| Periodicity in time | The waveform repeats | The spectrum is discrete |
| Sampling in time | Only selected time positions remain | The spectrum repeats periodically |
| Sampling in frequency | The time representation becomes periodic | Only selected frequency positions remain |
| Finite DFT block | The block is treated as one period | Only discrete DFT bins are evaluated |
| Time-domain zero-padding | The measured record remains unchanged | The spectrum is evaluated on a denser grid |
| Frequency-domain zero-padding | More interpolated time positions are produced | The represented spectral content remains limited |
| Zero insertion between samples | The nominal sample rate increases | Spectral images appear |
| Sample removal | The nominal sample rate decreases | Spectral regions may overlap and alias |
Chapter 7 explains how time samples and frequency components represent the same signal, when that representation is unique, and how it may be converted safely from one sampling grid to another.
A music file contains samples rather than a continuous waveform. Playback requires digital-to-analog conversion and a reconstruction filter.
A 44.1 kHz file has a theoretical Nyquist frequency of 22.05 kHz. A 48 kHz file has a theoretical Nyquist frequency of 24 kHz.
Video systems commonly operate at 48 kHz. Music assets recorded at 44.1 kHz may therefore be converted before editing or playback.
The conversion must preserve duration and pitch while preventing imaging and aliasing.
Speech-recognition systems often use a lower sampling frequency than music systems. A 48 kHz recording may be filtered and converted to 16 kHz before entering a model.
Simply selecting every third sample would allow content above 8 kHz to alias into the model input.
Tuners and pitch analyzers use the DFT or related estimators to locate sinusoidal peaks.
Accurate interpretation depends on observation length, DFT-bin spacing, window choice, signal-to-noise ratio, and whether the tone lies between bins.
Heart and lung sounds may be examined in the time and frequency domains. The selected acquisition rate must preserve the diagnostically relevant band.
Resampling may be required when recordings from different devices or datasets use different rates. The conversion should preserve timing, phase relationships, and annotations.
Rotational components, resonance, imbalance, and periodic faults often appear as spectral peaks. A sampling frequency selected without regard to the highest diagnostic frequency may cause false low-frequency components through aliasing.
Most media players hide sampling, FFT, resampling, and device-conversion details. That approach is acceptable for casual playback but inadequate for analysis-oriented software.
nGeneMediaPlayer would benefit from making the following information explicit:
The imported audio should remain immutable. Analysis, resampling, filtering, and ICA preparation should operate on derived representations.
A suitable model is:
original asset → derived processing graph → analysis view or export
This structure protects source integrity and allows every output to be traced back to its processing settings.
Any change between source, processing, device, or export rates should be visible in the interface or recorded in processing metadata.
Silent conversion makes spectral comparison and reproducibility difficult.
A smooth waveform on screen does not require modifying the audio. Display interpolation should remain separate from the samples used for analysis and export.
Similarly, a waveform overview generated from min/max envelopes should never become the input of an FFT or medical analysis.
| Rate | Meaning | Recommended behavior |
|---|---|---|
| Source rate | The rate stored in the imported file | Never change the original asset |
| Analysis rate | The rate used by a selected algorithm | Use the source rate unless a specific model requires conversion |
| Device rate | The rate requested by the playback hardware | Convert only in the playback path |
| Export rate | The rate selected for a rendered file | Apply an explicit high-quality conversion |
Every cursor, annotation, segment boundary, and analysis result should have a stable time representation.
A practical approach is to store:
Derived output indices may then be calculated from time rather than repeatedly rounded through several conversion stages.
Resampling and filtering should preserve internal state across processing blocks.
Resetting a filter at every block boundary can create:
Decoding, filtering, FFT calculation, resampling, and mixing should normally use floating-point samples internally.
Integer PCM conversion should occur at file input or final output. Dither should be considered when reducing bit depth, which is a separate operation from sampling-frequency conversion.
FFT generation, waveform-pyramid construction, spectrogram calculation, and high-quality resampling should run in a background worker or dedicated DSP thread.
The interface should receive bounded result blocks rather than waiting for whole-file processing.
A permanent technical panel should display:
This feature has high practical value because it immediately explains why two recordings may produce different spectra or why conversion is required.
The spectrum view should expose the settings that determine its meaning:
FFT length should always be displayed together with frame duration and bin spacing. An isolated value such as “4096 points” is difficult to interpret without the sampling frequency.
At a 48 kHz sampling frequency, increasing the FFT length narrows the frequency-bin spacing but also increases the observation duration.
A spectrum should not present unscaled FFT numbers as if they were physical amplitudes.
The analysis engine should account for:
A calibration mode may later support physical units when microphone sensitivity and acquisition gain are known.
A spectrum shows one selected interval. A spectrogram shows how spectral content changes over time.
A useful implementation should provide:
This feature is especially useful for speech, wheeze-like tones, crackles, murmurs, mechanical noises, and transient events.
Long files should not be rendered by drawing every sample. A min/max envelope pyramid should be built at several resolutions.
Recommended behavior:
Min/max rendering preserves short peaks that would disappear under simple averaging.
A frequency peak should show more than one number.
A useful peak inspector may display:
This prevents the largest FFT bin from being mistaken for an exact physical frequency.
Resampling should be implemented as a reusable DSP service rather than separately inside playback, export, ICA, and visualization code.
The service should support:
Quality modes should differ through documented filter behavior rather than vague names alone.
| Profile | Primary goal | Suggested behavior | Suitable use |
|---|---|---|---|
| Preview | Low latency and low CPU use | Wider transition band and moderate stopband rejection | Scrubbing and temporary preview |
| Realtime | Balanced quality and responsiveness | Polyphase filter with stable streaming state | Normal playback and monitoring |
| Export | Maximum signal integrity | Narrower transition band and high stopband attenuation | File rendering, archival output, and analysis preparation |
Filter length should be derived from transition width and attenuation targets rather than selected as an arbitrary fixed number.
Before export, the interface should display:
When the target sampling frequency is lower than the source rate, the interface should show the new Nyquist limit before conversion.
Example:
Target rate: 16,000 Hz
New Nyquist frequency: 8,000 Hz
Content above the selected transition band will be removed before decimation.
Resampling should be auditable through an A/B comparison view.
Useful comparisons include:
The source and converted files should be level-aligned and time-aligned before the difference signal is calculated.
A-B markers, segment boundaries, event labels, loop points, and medical annotations should remain at the same physical times after conversion.
Marker positions should be transformed from canonical time values rather than repeatedly scaled from previously rounded sample indices.
Three operations should remain distinct:
| Operation | Duration | Pitch | Required method |
|---|---|---|---|
| Proper sample-rate conversion | Preserved | Preserved | Interpolation, filtering, and rate reinterpretation |
| Resampling played at the old rate | Changed | Changed | Basic resampling effect |
| Time stretching with pitch preservation | Changed | Preserved | WSOLA, phase vocoder, or another dedicated algorithm |
A built-in tone laboratory would serve both as an educational feature and as a development-validation tool.
It could generate a sinusoid while allowing control of:
The feature should display:
These presets would also provide repeatable regression tests for the FFT and resampling engines.
Heart sounds, lung sounds, speech, and general audio should not share one fixed FFT configuration.
An analysis profile should define:
Presets should remain editable because relevant frequency ranges vary with sensor, acquisition method, study objective, and algorithm.
The original medical-sound file should remain unchanged. Filtering, resampling, normalization, and source separation should create derived analysis versions.
Each derived version should record:
Before Independent Component Analysis, nGeneMediaPlayer should verify:
The result should be displayed as a preflight report rather than silently corrected.
Equal sample rates do not guarantee alignment. Two devices may begin recording at different times or introduce different hardware delays.
A practical alignment workflow is:
Separate recording devices may have slightly different clock rates. A fixed initial alignment can therefore become inaccurate over a long recording.
A useful advanced feature would estimate drift over time and apply asynchronous sample-rate conversion or piecewise time-warp correction before ICA.
A practical workspace may combine:
Every view should share the same time selection and cursor.
Upsampling a low-rate medical recording cannot recreate frequencies that were absent or aliased during acquisition.
The interface should distinguish:
| Priority | Feature | Reason | Completion criterion |
|---|---|---|---|
| P0 | Source, analysis, device, and export rate separation | Prevents hidden conversions and incorrect time interpretation | Every processing path reports its active rate |
| P0 | Technical signal inspector | Makes file and sampling assumptions visible | Correct metadata and Nyquist values for all supported formats |
| P0 | Correctly scaled FFT engine | Provides trustworthy spectrum measurements | Passes tone, phase, window-gain, and one-sided-scaling tests |
| P0 | Stateful high-quality resampler | Required by playback, export, AI, and ICA workflows | Whole-buffer and streaming results agree within numerical tolerance |
| P0 | Resampling-safe export | Prevents silent aliasing and duration errors | Explicit report, correct sample count, no clipping, stable duration |
| P1 | Multi-resolution waveform pyramid | Improves large-file performance while preserving peaks | Smooth zooming from full file to individual samples |
| P1 | Linked waveform and spectrogram | Provides practical time-frequency analysis | Shared cursor, selection, and frequency readout |
| P1 | Tone and aliasing laboratory | Supports education, debugging, and regression testing | Demonstrates coherent tones, leakage, Nyquist, and aliasing |
| P1 | A/B resampling comparison | Makes conversion quality visible and audible | Aligned playback, spectrum comparison, and difference signal |
| P2 | Medical analysis profiles | Allows signal-specific FFT and filter settings | Editable profiles with recorded processing metadata |
| P2 | ICA preflight and alignment | Prevents invalid multichannel source separation | Rate, delay, drift, duration, and polarity checks |
| P2 | Asynchronous drift correction | Supports recordings from independent hardware clocks | Long recordings remain aligned without buffer drift |
An impulse reveals filter shape, delay, ringing, and channel alignment. The test should verify:
A swept sinusoid should verify:
A source containing one valid in-band tone and one tone above the target Nyquist frequency should be downsampled.
The valid tone should remain. The out-of-band tone should be attenuated before decimation rather than appearing as a false lower-frequency component.
Conversions such as 44.1 kHz → 48 kHz → 44.1 kHz should be tested for:
Processing a file as one complete buffer and processing the same file in varying block sizes should produce equivalent output after accounting for documented edge handling.
Markers placed at known physical times should remain at those times after resampling and export. The output-frame position should differ from the mathematically expected position by no more than the documented rounding tolerance.
| Measurement | Realtime starting target | Export starting target |
|---|---|---|
| Passband ripple | At or below approximately 0.05 dB | At or below approximately 0.01 dB |
| Stopband attenuation | Approximately 80 dB or better | Approximately 100 dB or better |
| Duration error | No cumulative drift | No more than one documented output-sample rounding difference |
| Channel timing | No independent channel delay | Phase-coherent within numerical tolerance |
These values are reasonable starting targets rather than universal requirements. Final targets should reflect transition width, CPU budget, latency, source material, and intended scientific or audio use.
Linear interpolation may be acceptable for a temporary preview, but it does not provide adequate spectral control for high-quality audio conversion.
Direct sample removal creates aliasing whenever the source contains energy above the new Nyquist frequency.
Zero-padding creates a denser spectral grid. True discrimination of nearby tones depends primarily on the measured duration and the selected window.
Min/max envelopes, averaged overview samples, and display-interpolated curves are not valid substitutes for the decoded source samples.
Window functions change measured peak amplitudes. Spectrum scaling should compensate for coherent gain when amplitude accuracy is required.
A streaming resampler or filter must preserve its state. Reinitializing each block creates discontinuities and inconsistent output.
Playback-device conversion should not silently change the samples used for source analysis. The source spectrum should normally be calculated from the source-rate signal.
Replacing a 44.1 kHz label with 48 kHz without calculating new samples changes duration and pitch. It is not sampling-frequency conversion.
Upsampling does not create microphone bandwidth, lost transients, or absent high-frequency content.
Once different analog frequencies have become the same digital frequency, ordinary filtering cannot determine their original sources.
Independent resampling or delay handling can damage stereo imaging, correlation, beamforming, and ICA.
Music, speech, heart sounds, lung sounds, transients, and low-frequency rhythms require different balances between time and frequency resolution.
Source, analysis, device, and export rates should be separate and visible. This decision prevents many later architectural errors.
The engine should support correct scaling, window compensation, configurable frame duration, zero-padding, overlap, and peak inspection.
Playback, export, AI preprocessing, and ICA preparation should use the same stateful polyphase conversion service.
Multi-resolution rendering should improve performance without allowing display-derived data to enter analysis algorithms.
Sampling frequency, duration, alignment, drift, polarity, gain, and channel compatibility should be verified before source separation or model inference begins.
Chapter 7 establishes the complete logic of digital waveform representation:
The most practical lesson of Chapter 7 is that digital audio quality depends not only on the number of samples, but on how the time and frequency domains are managed together.
For nGeneMediaPlayer, the strongest development direction is not the addition of decorative visualizations. The highest value lies in making sampling assumptions visible, providing trustworthy FFT measurements, implementing one reliable resampling path, preserving exact timing, and validating multichannel data before ICA or medical-sound analysis.
Once those foundations are established, waveform rendering, spectrograms, tone analysis, sample-rate export, medical profiles, and source-separation tools can share one coherent signal model rather than becoming unrelated features.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Section 7.1 explains how a finite set of spectral samples can represent a periodic sequence, and why the corresponding descriptions repeat in both the time and frequency domains.
Chapter 7 studies the relationship among sampling, periodicity, and the Discrete Fourier Transform. Section 7.1 provides the conceptual and mathematical bridge between the ordinary Fourier representation of a signal and the finite-dimensional representation later formalized as the DFT.
Based on the structure of the headings, Section 7.1 is best understood as an answer to the following question:
What happens in the time domain when a spectral function is sampled at a finite set of equally spaced frequencies?
The central answer is that equally spaced spectral samples generate a periodic time-domain representation. A single period of that sequence can be described by a finite number of values, and those values can be converted to and from a finite number of spectral coefficients.
| Hierarchy | Title | Main purpose | Practical meaning |
|---|---|---|---|
| Chapter 7 | Sampling theorem and Discrete Fourier Transform | Connect sampling, periodicity, and finite Fourier analysis | Establish the mathematical basis of digital audio analysis |
| Section 7.1 | Sampling of spectral function | Show how sampled spectral values correspond to a periodic sequence | Explain why a finite frequency representation can produce a repeatable digital waveform |
| Section 7.1.1 | Simultaneous equations for representation of periodic sequence | Derive the equations connecting time samples and spectral coefficients | Provide the algebraic foundation of the DFT and inverse DFT |
| Section 7.1.2 | Periodic property in time and frequency planes | Explain repetition in both the time and frequency domains | Clarify FFT frame behavior, spectral leakage, circular processing, and loop construction |
A spectral function describes how the magnitude and phase of a signal are distributed over frequency. In a continuous formulation, the frequency variable can take infinitely many values. The spectrum may therefore be regarded as a continuous function such as X(f) or X(ω).
Sampling the spectral function means selecting its values only at regularly spaced frequencies:
X(0), X(Δf), X(2Δf), X(3Δf), ...
The interval Δf is the frequency spacing between neighboring spectral samples.
Equally spaced samples in the frequency domain correspond to a periodic representation in the time domain. The frequency spacing and the time-domain repetition period are reciprocally related:
T = 1 / Δf
A smaller frequency spacing produces a longer time period. A larger frequency spacing produces a shorter time period.
| Frequency-domain condition | Time-domain consequence |
|---|---|
| Closely spaced spectral samples | A long periodic interval in time |
| Widely spaced spectral samples | A short periodic interval in time |
| A finite set of spectral coefficients | A finite-dimensional periodic waveform |
| Changes in spectral magnitude | Changes in the contribution of individual sinusoidal components |
| Changes in spectral phase | Changes in waveform timing and shape |
Sampling and periodicity form a fundamental Fourier-domain duality:
Section 7.1 concentrates primarily on the first part of this relationship. Later sections use the same principle to explain the sampling theorem, aliasing, interpolation, decimation, and sampling-frequency conversion.
The heading is not concerned merely with taking several points from a graph. Its deeper purpose is to show that a periodic sequence and a finite set of spectral samples are two equivalent descriptions of the same finite-dimensional signal.
A periodic sequence can be decomposed into a finite set of complex sinusoidal components, and those components can be recombined to reproduce the sequence.
Suppose that a sequence repeats every N samples. Only one period needs to be recorded:
x[0], x[1], x[2], ..., x[N − 1]
The objective is to express these N time-domain values as a sum of N complex sinusoidal basis functions. Each basis function has a different discrete frequency.
A common inverse-transform convention is:
x[n] = (1/N) Σk=0N−1 X[k]ej2πkn/N
The corresponding forward transform is:
X[k] = Σn=0N−1 x[n]e−j2πkn/N
The normalization factor may be placed differently in other conventions, but the underlying relationship remains unchanged.
Substituting n = 0, 1, 2, ..., N − 1 into the synthesis equation produces N equations. The unknown quantities are the N spectral coefficients:
X[0], X[1], X[2], ..., X[N − 1]
The result is a square system of simultaneous linear equations. In matrix form, the relationship can be written conceptually as:
time-sample vector = inverse Fourier matrix × spectral-coefficient vector
The complex exponential basis functions are mutually orthogonal over one complete period. This orthogonality makes the Fourier matrix invertible and allows each spectral coefficient to be recovered uniquely.
Each coefficient X[k] contains two types of information:
Magnitude alone is generally insufficient for exact waveform reconstruction. Two signals may have the same magnitude spectrum while having different phases and substantially different time-domain shapes.
Consider the four-sample periodic sequence:
x[n] = [1, 0, −1, 0]
This sequence is one sampled period of a cosine-like waveform. Under the common DFT convention, its spectral values are:
X[k] = [0, 2, 0, 2]
The nonzero values at bins k = 1 and k = 3 form the positive- and negative-frequency pair required to represent a real-valued cosine sequence.
Modern software normally does not solve the equations individually. The DFT or the more efficient FFT algorithm performs the same conversion systematically. Nevertheless, the simultaneous-equation formulation reveals why the conversion is mathematically possible.
This principle is used in:
A wavetable synthesizer provides a particularly direct example. Desired harmonic magnitudes and phases can be specified in the frequency domain. An inverse DFT then generates one period of a waveform, which can be repeated during playback.
The phrase time and frequency planes may be read as time and frequency domains. The same signal can be represented as sample values indexed by time or as coefficients indexed by frequency.
In the finite DFT framework, both index sets are periodic:
x[n + N] = x[n]
X[k + N] = X[k]
Therefore, the index n = N refers to the same time position within the repeating pattern as n = 0. Similarly, the frequency bin k = N is equivalent to k = 0.
Each Fourier basis function contains the factor:
ej2πkn/N
Replacing n with n + N adds an integer multiple of 2π to the phase. A complex exponential is unchanged after such a rotation. Every basis function therefore repeats after N samples, and any weighted sum of those basis functions also repeats after N samples.
Replacing the frequency index k with k + N produces the same basis function at all integer time indices. Consequently, the discrete spectrum is periodic in its frequency index.
This does not mean that every displayed FFT graph must show infinitely many copies. It means that the finite set of bins from 0 through N − 1 contains one complete period of the discrete-frequency representation.
An N-point DFT treats an N-sample block as one period of a sequence that repeats indefinitely. The end of the block is therefore mathematically connected to its beginning.
This circular interpretation has several consequences:
A real audio segment is rarely an exact period of every sinusoidal component contained within it. When the DFT repeats the segment, the end may not join smoothly to the beginning. The resulting artificial discontinuity causes energy from one physical frequency to spread across several neighboring DFT bins. This phenomenon is called spectral leakage.
Window functions are commonly applied before the FFT to reduce the boundary discontinuity. The window does not remove the periodic assumption; it makes the repeated boundary smoother.
Physical audio filtering is normally described by linear convolution. A direct finite-length DFT, however, naturally implements circular convolution. Practical systems reconcile the two through methods such as:
These methods are used in real-time equalizers, convolution reverberation, echo cancellation, spectral denoising, and long finite-impulse-response filters.
Consider an audio system with a sampling rate of 48,000 samples per second and an FFT length of 1,024 samples.
| Quantity | Expression | Result | Interpretation |
|---|---|---|---|
| Sampling rate | fs | 48,000 Hz | 48,000 time samples are recorded each second |
| Transform length | N | 1,024 samples | One FFT block contains 1,024 samples |
| Block duration | N / fs | Approximately 21.33 ms | The DFT treats this interval as one repeating period |
| Frequency-bin spacing | fs / N | 46.875 Hz | Adjacent spectral samples are separated by 46.875 Hz |
| Bin 20 frequency | 20 × 46.875 | 937.5 Hz | A sinusoid at 937.5 Hz completes an integer number of cycles in the block |
The numerical relationship is:
block duration × frequency-bin spacing = 1
A longer block produces more closely spaced frequency samples and therefore finer frequency resolution. However, it also covers a longer time interval, making rapid temporal changes more difficult to localize. This relationship becomes important when analyzing speech, music, heart sounds, lung sounds, machinery noise, and other time-varying signals.
| Application | How section 7.1 is involved | Practical result |
|---|---|---|
| Spectrum display | A finite time block is converted into a finite set of frequency coefficients | Magnitude and phase can be examined by frequency bin |
| Wavetable synthesis | Spectral coefficients are converted into one period of a waveform | A stable periodic musical tone can be generated efficiently |
| Digital equalization | Selected spectral coefficients are amplified or attenuated | The tonal balance of audio is modified |
| Noise reduction | Frequency bins dominated by noise are estimated and reduced | Background noise can be suppressed while preserving useful components |
| Audio looping | The end and beginning of a period must connect consistently | Clicks and discontinuities in repeated playback can be avoided |
| Convolution reverb | Block spectra are multiplied and converted back to time samples | Long impulse responses can be processed efficiently |
| Medical sound analysis | Short frames are represented by local spectral coefficients | Heart, lung, and vascular sound components can be compared by frequency |
| Machinery monitoring | Periodic vibration components appear as spectral lines | Rotational faults and resonances can be detected |
| Digital communications | Orthogonal frequency components represent independent data channels | Multiple carriers can be generated and separated efficiently |
The DFT mathematically extends a finite block as though it repeats. The original physical signal does not need to repeat forever. Periodicity is part of the finite transform model.
Recording a longer signal can improve true frequency resolution. Adding zeros to the same recorded block produces a denser-looking spectrum but does not add new measured information.
When a component does not align exactly with a DFT bin, its energy is distributed across neighboring bins. Window shape, block duration, noise, modulation, and nonstationary behavior also affect the displayed spectrum.
Exact reconstruction generally requires both magnitude and phase. Phase relationships determine waveform alignment, transients, and detailed shape.
For a real-valued signal, positive- and negative-frequency coefficients occur in conjugate pairs. Negative frequency is not a second audible tone; it is part of the complex-exponential representation required to construct a real waveform.
Section 7.1 establishes three essential ideas:
Section 7.1 is fundamentally explaining why one period of a digital waveform and one period of its discrete spectrum contain equivalent information. This equivalence is the mathematical basis of FFT analysis, frequency-domain processing, periodic waveform synthesis, and many modern digital-audio systems.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Section 7.2 explains that a finite time sequence and a finite spectral sequence are two equivalent representations of the same signal. It then uses this equivalence to show how additional points may be calculated in either the time domain or the frequency domain.
Section 7.1 introduced the relationship between sampled spectral values and periodic time sequences. Section 7.2 formalizes that relationship as the Discrete Fourier Transform pair and develops two important consequences:
The central message may therefore be expressed as follows:
The DFT is not merely a method for drawing a spectrum. It is an invertible correspondence between a periodic time sequence and a periodic frequency sequence.
| Hierarchy | Title | Central question | Practical meaning |
|---|---|---|---|
| Section 7.2 | Discrete Fourier Transform and periodic property | How are finite time and frequency sequences related under periodic conditions? | Provides the mathematical foundation of FFT-based audio processing |
| Section 7.2.1 | Discrete Fourier Transform pair | How can a time sequence and its spectrum be converted into each other? | Waveform-to-spectrum analysis and spectrum-to-waveform synthesis |
| Section 7.2.2 | Interpolation of time sequence | How can additional time samples be calculated from known spectral coefficients? | Upsampling, waveform enlargement, fractional delay, and resampling |
| Section 7.2.3 | Interpolation of discrete spectral sequence | How can the spectrum be evaluated at more closely spaced frequencies? | Spectral zoom, smoother spectrum plots, and refined peak estimation |
A continuous sound waveform exists at every instant of time. A digital system, however, stores a sequence of individual sample values:
x[0], x[1], x[2], ..., x[N − 1]
The DFT also produces a discrete sequence:
X[0], X[1], X[2], ..., X[N − 1]
The first sequence is indexed by time. The second sequence is indexed by frequency. The DFT connects these two finite collections of numbers.
An N-point DFT treats the supplied N samples as one complete period of a sequence that repeats indefinitely:
x[n + N] = x[n]
The discrete spectrum has the corresponding periodic property:
X[k + N] = X[k]
Consequently, the indices are interpreted modulo N. Sample index N is equivalent to sample index 0, and frequency-bin index N is equivalent to frequency-bin index 0.
A recorded speech segment, musical phrase, heart sound, or environmental sound does not need to repeat physically. Periodicity is the mathematical extension used by the finite DFT.
For example, an N-sample block represented as
A B C D
is interpreted by the DFT as
A B C D | A B C D | A B C D | ...
If the end of the block does not connect smoothly to the beginning, the periodic extension contains a boundary discontinuity. This discontinuity contributes energy across multiple frequency bins and is one of the principal causes of spectral leakage.
Since the end of a DFT block is mathematically connected to its beginning, many DFT operations behave circularly:
Practical block-processing systems use zero-padding, overlap-add, or overlap-save methods when ordinary linear convolution is required.
The forward DFT converts N time samples into N complex spectral coefficients:
X[k] = Σn=0N−1 x[n]e−j2πkn/N, 0 ≤ k ≤ N − 1
Each coefficient X[k] measures the contribution of a complex sinusoid whose discrete frequency is associated with index k.
The inverse DFT reconstructs the time sequence from the spectral coefficients:
x[n] = (1/N) Σk=0N−1 X[k]ej2πkn/N, 0 ≤ n ≤ N − 1
The location of the normalization factor may differ among mathematical and software conventions. The essential relationship remains the same: one transform performs analysis, and the other performs synthesis.
The time sequence and spectral sequence contain equivalent information when all complex coefficients are preserved. The forward transform changes the coordinate system; it does not discard information. The inverse transform returns the representation to the original coordinate system.
The relationship may be summarized as:
time samples ⇄ spectral coefficients
This equivalence is the essential meaning of the term DFT pair.
Each DFT coefficient is generally complex and contains two forms of information:
A magnitude spectrum is useful for visual analysis, but exact waveform reconstruction normally requires phase as well. Signals with similar magnitude spectra may have markedly different transient shapes when their phase relationships differ.
For a sampling rate fs and an N-point DFT, the nominal spacing between neighboring frequency bins is:
Δf = fs / N
The frequency associated with bin k is commonly written as:
fk = kfs / N
For bins above the positive-frequency range, the same indices may be interpreted as negative frequencies. For a real-valued time sequence, positive- and negative-frequency coefficients occur in complex-conjugate pairs.
Many digital audio processes follow the same three-stage structure:
time-domain signal → DFT → spectral modification → inverse DFT → processed signal
This structure appears in:
Time-domain interpolation calculates additional sample values between the samples already present. A sequence such as
x[0], x[1], x[2], x[3]
may be represented on a denser grid as
x[0], intermediate values, x[1], intermediate values, x[2], ...
The purpose is not merely to draw straight lines between points. DFT-based interpolation reconstructs the periodic trigonometric waveform represented by the known spectral coefficients and evaluates that waveform at additional time positions.
A common DFT-based procedure is:
The resulting inverse transform contains more time-domain samples over the same periodic interval.
Conceptually:
N time samples → N spectral coefficients → spectral zero-padding → M time samples
where M is greater than N.
The original DFT coefficients define a finite sum of sinusoidal basis functions. These sinusoids exist mathematically at every position within the period, not only at the original sample locations.
A longer inverse DFT evaluates the same sinusoidal sum at a larger number of equally spaced positions. The additional values are therefore determined by the original band-limited periodic representation.
Proper spectral zero-padding preserves:
The interpolation creates a denser representation of the same mathematical waveform. It does not recover frequency content that was absent from the original sampled data.
Spectral zero-padding is not always equivalent to appending zeros to the end of a displayed spectrum. The positive- and negative-frequency regions must be positioned correctly in the longer DFT array. For an even transform length, the Nyquist coefficient may also require special treatment.
Failure to preserve the correct spectral ordering can introduce phase errors, complex-valued artifacts, or an incorrect interpolated waveform.
The following graph compares a short set of original samples with a denser sequence reconstructed from the same DFT coefficients. The point at the end of the period returns to the value at the beginning, illustrating the periodic assumption.
An N-point DFT evaluates the spectrum only at N equally spaced frequency positions. Spectral interpolation evaluates the underlying finite-record spectrum at a denser set of frequency positions.
The original discrete spectrum may be written as:
X[0], X[1], X[2], ..., X[N − 1]
Spectral interpolation inserts additional evaluated points between these original frequency-bin locations.
A common procedure is:
Conceptually:
N time samples → time-domain zero-padding → M-point DFT → denser spectral sequence
The new frequency-grid spacing becomes:
Δfdisplay = fs / M
A finite sequence has a continuous frequency response that can be evaluated at any frequency. The original N-point DFT samples this response at N locations. A longer zero-padded DFT samples the same response at more locations.
The longer DFT therefore produces a smoother and more detailed drawing of the existing spectral shape. The original DFT values remain embedded within the denser frequency grid when the transform lengths are compatible.
This distinction is essential:
Zero-padding improves grid density but does not increase the duration of measured information. It does not narrow the spectral main lobe determined by the original observation interval and window function.
Time-domain zero-padding makes the existing spectrum easier to inspect. A longer measured signal is generally required to obtain genuinely finer frequency discrimination.
A sinusoidal component often lies between the original DFT-bin frequencies. A denser spectrum can reveal the shape around the largest bin more clearly and support a more accurate estimate of the peak location.
Further refinement may be obtained through parabolic interpolation, phase-based estimators, or other model-based methods. Zero-padding alone provides a denser sampling grid but does not guarantee exact frequency estimation.
The following graph compares a coarse DFT with a longer DFT calculated after time-domain zero-padding. The denser curve passes through the same underlying spectral response, while the original observation duration remains unchanged.
Sections 7.2.2 and 7.2.3 form a Fourier-domain duality. Extending one representation with zeros produces a denser sampling grid in the other representation.
| Operation | Domain being extended | Result in the opposite domain | What remains unchanged |
|---|---|---|---|
| Spectral zero-padding | Frequency domain | More samples within the same time period | Represented bandwidth and periodic duration |
| Time-domain zero-padding | Time domain | More closely spaced spectral samples | Original measured data and spectral main-lobe width |
The relationship may be summarized as:
spectral zero-padding → time-sequence interpolation
time-domain zero-padding → spectral-sequence interpolation
Consider an audio signal sampled at 48,000 Hz and analyzed with a 1,024-point DFT.
| Quantity | Calculation | Result | Meaning |
|---|---|---|---|
| Original sample rate | fs | 48,000 Hz | 48,000 measured samples per second |
| Original DFT length | N | 1,024 | 1,024 time samples and 1,024 spectral coefficients |
| Observation duration | N / fs | Approximately 21.33 ms | The interval treated as one period by the DFT |
| Original frequency spacing | fs / N | 46.875 Hz | Spacing between neighboring original DFT bins |
| Time interpolation length | M = 4N | 4,096 samples | Four times as many time points over the same 21.33 ms period |
| Equivalent interpolated time grid | 4fs | 192,000 points per second | A denser representation without new high-frequency information |
| Spectral interpolation length | M = 4N | 4,096-point DFT | The original 1,024 samples followed by 3,072 zeros |
| Interpolated spectral spacing | fs / M | 11.71875 Hz | A denser display grid for the same measured record |
Both procedures use a transform length of 4,096, but their meanings differ:
| Application | Relevant concept | Practical result |
|---|---|---|
| Waveform display | Time-sequence interpolation | A smooth waveform can be rendered during deep zooming |
| Spectrum analyzer | DFT pair | Time samples are displayed as magnitude and phase by frequency |
| Spectral zoom | Spectral-sequence interpolation | Peak shapes can be examined on a denser frequency grid |
| Digital equalizer | DFT and inverse DFT | Selected frequency regions are amplified or attenuated |
| Noise reduction | Spectral modification | Estimated noise components are reduced before inverse transformation |
| Sample-rate conversion | Time interpolation | A signal is evaluated on a new sampling grid |
| Pitch detector | Spectral interpolation | A fundamental frequency can be estimated between coarse FFT bins |
| Fractional delay | Interpolated time positions | Channels or signals can be aligned by a fraction of one sample |
| Convolution processing | Periodic and circular properties | Long filters can be implemented efficiently with appropriate block handling |
| Heart- and lung-sound analysis | DFT pair and spectral interpolation | Frequency distributions and narrow peaks can be examined in short time frames |
Additional points are calculated from the information already represented by the original samples. Frequencies removed by insufficient sampling, filtering, or measurement limitations cannot be recovered merely by interpolation.
A longer zero-padded DFT provides more plotted frequency points. The ability to separate two nearby physical tones remains governed principally by the measured duration and the analysis window.
Interpolation can produce a visually smooth waveform or spectrum. Visual smoothness should not be confused with additional measured evidence.
The interpolated time sequence connects the end of the period to its beginning. Interpolation near a block boundary is therefore influenced by both sides of that periodic boundary.
Interpolating only the magnitude spectrum is generally insufficient for exact time-domain reconstruction. The complex spectral coefficients, including phase, are required.
Direct multiplication of finite DFT spectra produces circular convolution after the inverse DFT. Zero-padding and block-processing methods are required when linear filtering behavior is intended.
Positive-frequency, negative-frequency, and Nyquist components must be placed correctly in the longer spectral array. Simple insertion at an arbitrary position can alter the waveform.
Section 7.2 develops a coherent progression:
The principal message of section 7.2 is that the time domain and frequency domain are mathematically equivalent descriptions. Because the DFT connects them as a periodic pair, extending one representation appropriately allows the other representation to be evaluated on a denser grid.
In practical digital audio, this principle supports waveform rendering, FFT spectrum analysis, resampling, spectral peak estimation, equalization, noise reduction, convolution, pitch detection, and biomedical sound analysis.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Section 7.3 explains why a continuous, band-limited signal can be represented by discrete samples, why sampling creates periodic copies of the spectrum, and which condition prevents those copies from overlapping.
Sections 7.1 and 7.2 established the relationship between periodic sequences, discrete spectra, and the Discrete Fourier Transform. Section 7.3 applies those ideas to the central problem of digital signal processing:
Under what conditions can a continuous signal be replaced by a sequence of samples without losing the information required for exact reconstruction?
The progression of the section may be understood as follows:
finite Fourier representation → periodic spectral copies after sampling → sampling of a band-limited partial sum → sampling theorem
The familiar rule stating that the sampling frequency must exceed twice the highest signal frequency is the conclusion of this progression. The preceding subsections explain why that condition arises.
| Hierarchy | Title | Central question | Practical meaning |
|---|---|---|---|
| Section 7.3 | Sampling theorem | When do discrete samples preserve a continuous signal? | Foundation of digital recording, ADC, DAC, and sample-rate conversion |
| Section 7.3.1 | Partial sum of Fourier series | How can a signal be represented by a finite number of frequency components? | Provides a band-limited model suitable for sampling |
| Section 7.3.2 | Periodic property of spectrum for sampled sequence | What happens to the spectrum when a signal is sampled? | Explains spectral replication and aliasing |
| Section 7.3.3 | Sampling partial sum | When can samples uniquely represent a finite Fourier sum? | Connects Fourier-series coefficients, samples, and the DFT |
| Section 7.3.4 | Sampling theorem | What sampling frequency permits exact reconstruction? | Establishes the Nyquist condition and reconstruction principle |
A physical sound is a continuous change in air pressure. A digital system cannot store the value of that pressure at every possible instant. Instead, the system measures the signal at uniformly spaced times:
x[0], x[1], x[2], ..., x[n]
If the sampling interval is Ts seconds, the corresponding sampling frequency is:
fs = 1 / Ts
The sampling theorem determines when this discrete sequence contains enough information to reproduce the original continuous signal.
Exact reconstruction requires more than merely collecting samples. The ideal theorem assumes:
Real systems approximate these conditions through analog filters, stable clocks, sufficient numerical precision, and practical reconstruction filters.
In the time domain, sampling replaces a continuous curve with a sequence of measurements:
continuous waveform → uniformly spaced sample values
Reconstruction then evaluates a continuous waveform that passes through all sample values while satisfying the assumed bandwidth limitation.
In the frequency domain, sampling produces repeated copies of the original spectrum. The copies are separated by the sampling frequency fs.
Exact reconstruction is possible when adjacent copies remain separated. If the copies overlap, different analog frequencies become represented by the same discrete frequency. This overlap is called aliasing.
The statement “sample at twice the highest frequency” is a compact result, but the deeper principle is spectral separation:
The sampling frequency must be large enough to keep the periodic spectral copies from overlapping.
This interpretation explains the need for anti-aliasing filters, transition bands, oversampling, and low-pass filtering before downsampling.
A periodic signal with fundamental frequency f0 can be expressed as a sum of complex sinusoidal components:
x(t) = Σk=−∞∞ Ckej2πkf0t
Each integer k identifies a harmonic of the fundamental frequency. The coefficient Ck contains the magnitude and phase of that harmonic.
A complete Fourier series may contain infinitely many terms. A partial sum retains only a finite number of them:
SM(t) = Σk=−MM Ckej2πkf0t
This partial sum contains frequencies only between −Mf0 and +Mf0. It is therefore a finite-bandwidth trigonometric polynomial.
The sampling theorem applies to a signal with a finite highest frequency. A Fourier-series partial sum provides a precise model of such a signal:
highest represented frequency = Mf0
Once the highest frequency is known, a sampling frequency can be selected so that every retained harmonic remains distinguishable after sampling.
Increasing M generally allows the partial sum to reproduce finer waveform details. Smooth signals may be approximated rapidly, while signals with abrupt transitions require many harmonics.
Near a discontinuity, finite partial sums commonly exhibit oscillatory overshoot known as the Gibbs phenomenon. Adding more harmonics narrows the affected region but does not completely eliminate the peak overshoot.
The following graph shows finite Fourier representations of a square wave. Additional odd harmonics produce steeper transitions and a closer approximation, while oscillation remains near the discontinuity.
Ideal uniform sampling can be represented by multiplying a continuous signal x(t) by an impulse train:
p(t) = Σn=−∞∞ δ(t − nTs)
The sampled signal is:
xs(t) = x(t)p(t)
Each impulse carries the value of the continuous signal at one sampling instant.
Multiplication in the time domain corresponds to convolution in the frequency domain. Since the spectrum of the impulse train is also an impulse train, the sampled spectrum becomes a sequence of shifted copies of the original spectrum:
Xs(f) = (1 / Ts) Σm=−∞∞ X(f − mfs)
The precise scale factor depends on the Fourier-transform convention. The essential result is the periodic repetition at intervals of fs.
The frequency representation of a discrete-time sequence is periodic. In normalized angular frequency:
X(ej(ω+2π)) = X(ejω)
When frequency is expressed in hertz, this corresponds to repetition at intervals of fs. This periodicity is intrinsic to discrete-time signals and is not merely an effect of plotting an FFT.
Suppose that the original signal occupies the frequency range from −B to +B. Adjacent copies are centered fs hertz apart.
If
fs > 2B
the copies remain separated. An ideal low-pass filter can then select the central copy and reconstruct the original spectrum.
If
fs < 2B
adjacent spectral copies overlap. Frequency components from different copies add together, so the original components can no longer be separated uniquely.
A continuous sinusoid above fs/2 then appears as a lower discrete frequency. A useful alias relation is:
falias = |f0 − mfs|
where the integer m is selected so that the resulting frequency lies within the interval from 0 to fs/2.
The upper curve in the following graph represents a sampling frequency greater than twice the signal bandwidth. The lower curve represents an insufficient sampling frequency. Vertical separation is used only to make the two cases easier to compare.
Physical signals are rarely perfectly band-limited. An analog low-pass filter is therefore placed before an analog-to-digital converter:
analog input → anti-aliasing filter → sampler and ADC → digital sequence
The filter attenuates components that would otherwise lie above the usable Nyquist range. Since a practical filter cannot change from full transmission to complete rejection instantaneously, a transition band must be allowed between the desired signal bandwidth and fs/2.
Section 7.3.1 introduced a signal containing only a finite number of Fourier components. Section 7.3.2 showed that sampling repeats a spectrum periodically. Section 7.3.3 combines these ideas by sampling the finite Fourier-series partial sum.
The purpose is to determine when the samples preserve every Fourier coefficient without harmonic overlap.
Let a periodic partial sum contain harmonics from −M through +M. If N uniformly spaced samples are collected over one period T0, the sampling times are:
tn = nT0 / N, n = 0, 1, ..., N − 1
Substitution into the partial sum gives:
SM[n] = Σk=−MM Ckej2πkn/N
This is a finite sum of the same complex-exponential basis functions used by the DFT.
Discrete complex exponentials repeat with respect to their frequency index:
ej2π(k+rN)n/N = ej2πkn/N
for any integer r. Consequently, harmonics whose indices differ by N produce identical values at the N sampling positions.
This is the algebraic form of aliasing. Sampling cannot distinguish continuous harmonics that map to the same discrete-frequency index.
A partial sum extending from −M through +M contains 2M + 1 Fourier coefficients. To keep those harmonics distinct under uniform sampling, a clear sufficient condition is:
N > 2M
Since the sampling frequency over one period is fs = Nf0 and the highest harmonic is B = Mf0, this condition becomes:
fs > 2B
The familiar sampling-theorem inequality therefore follows naturally from counting and separating the Fourier harmonics.
When the partial sum is sampled sufficiently densely, the N time samples and the retained Fourier coefficients form a DFT pair.
The samples permit the coefficients to be recovered, and the coefficients permit the continuous partial sum to be evaluated between the sampling positions.
The logical relationship is:
continuous band-limited periodic signal ⇄ uniform samples ⇄ DFT coefficients
Consider a periodic waveform with a 100 Hz fundamental frequency and harmonics retained through the tenth harmonic.
| Quantity | Value | Meaning |
|---|---|---|
| Fundamental frequency | 100 Hz | The waveform period is 10 ms |
| Highest retained harmonic | 10 | Harmonics 1 through 10 are included |
| Highest frequency | 1,000 Hz | B = 10 × 100 Hz |
| Theoretical sampling condition | fs > 2,000 Hz | The sampling frequency must exceed twice the highest frequency |
| Samples per period | N > 20 | At least 21 equally spaced points avoid harmonic-index collision in the ideal model |
A practical design would normally use additional margin to accommodate filter transition bands, timing imperfections, and nonideal source bandwidth.
A continuous signal whose spectrum is zero outside the frequency interval from −B to +B can be reconstructed uniquely from uniform samples when the sampling frequency satisfies fs > 2B.
The value 2B is called the Nyquist rate of the band-limited signal.
Two related terms are often confused:
| Term | Definition | Reference point |
|---|---|---|
| Nyquist rate | 2B | Twice the highest frequency contained in the signal |
| Nyquist frequency | fs / 2 | Half of the selected sampling frequency |
A signal bandwidth is compared with a system Nyquist frequency:
B < fs / 2
Under the ideal theorem, the continuous signal can be reconstructed from its samples by:
x(t) = Σn=−∞∞ x(nTs) sinc((t − nTs) / Ts)
using the normalized definition:
sinc(u) = sin(πu) / (πu)
Each sample contributes a shifted sinc function. At its own sampling position, that sinc function has a value of one. At every other integer sampling position, it has a value of zero. The sum therefore passes through every sample while forming a continuous band-limited waveform.
The theorem is sometimes written with fs ≥ 2B. The equality case is an ideal mathematical boundary and can be ambiguous for a sinusoid located exactly at fs/2.
For example, certain phases of a sinusoid at the Nyquist frequency can produce alternating samples, while another phase can produce samples that are all zero. Practical systems therefore require:
The following graph uses a 4 Hz sinusoid. In the upper portion, sampling at 12 Hz satisfies the theorem. In the lower portion, sampling at 6 Hz is insufficient. The 4 Hz sinusoid then produces the same sample values as a 2 Hz alias. Vertical offsets are used only for comparison.
A practical digital-audio system normally follows this sequence:
The sampling theorem governs the bandwidth relationship in both the recording and reconstruction stages.
| Target signal bandwidth | Theoretical sampling requirement | Example sampling choice | Interpretation |
|---|---|---|---|
| 3.4 kHz speech bandwidth | Greater than 6.8 kHz | 8 kHz | Suitable for bandwidth-limited intelligible speech after appropriate filtering |
| 20 kHz audio bandwidth | Greater than 40 kHz | 44.1 kHz | Nyquist frequency is 22.05 kHz |
| 20 kHz audio bandwidth | Greater than 40 kHz | 48 kHz | Nyquist frequency is 24 kHz, providing a wider transition region |
| 2 kHz measurement bandwidth | Greater than 4 kHz | Above 4 kHz with filter margin | The final value depends on the anti-aliasing filter and required accuracy |
| 10 kHz vibration bandwidth | Greater than 20 kHz | Above 20 kHz with engineering margin | Higher rates may simplify filtering and improve timing detail |
The target bandwidth, filter transition region, required accuracy, storage capacity, and processing cost should be considered together. The nominal source category alone is not sufficient for selecting a sample rate.
Audio sample rates such as 44.1 kHz and 48 kHz allow frequency content near the conventional audible range to be represented while leaving some space for practical filtering.
Higher sample rates such as 96 kHz or 192 kHz increase the Nyquist frequency. They may simplify analog filter design or support specialized processing, although they do not automatically improve audible quality in every system.
Downsampling requires low-pass filtering before samples are discarded:
original sequence → low-pass filter → decimation
Without the filter, frequencies above the new Nyquist frequency fold into the retained range.
Upsampling inserts additional sample positions and then applies an interpolation filter to suppress spectral images.
The horizontal frequency limit of a spectrum display is determined by the Nyquist frequency. For a 48 kHz file, a one-sided spectrum normally covers 0 through 24 kHz.
A peak displayed below 24 kHz cannot establish whether the original analog source actually contained that frequency or an aliased component. The recording process must prevent aliasing before the data reaches the analysis software.
Sample-rate selection should follow the highest diagnostically relevant frequency rather than the general label of the signal.
A system intended only for low-frequency cardiac components may require less bandwidth than a system intended to preserve higher-frequency respiratory transients, crackles, friction sounds, or equipment noise.
A suitable acquisition chain therefore requires:
Communication receivers sample modulated signals and must prevent adjacent spectral images from overlapping. Bandpass sampling can deliberately use aliasing under controlled conditions, but only when the occupied frequency bands remain separable after sampling.
The same theorem applies when the independent variable is position rather than time. Insufficient spatial sampling causes jagged edges, false textures, and moiré patterns. Optical low-pass filtering and sufficient pixel density serve roles analogous to audio anti-aliasing filters and sample rates.
The principles of section 7.3 can support several practical interface and processing features:
Exactly two samples per cycle may fail to identify amplitude and phase reliably for a component at the Nyquist frequency. Practical acquisition requires additional sampling margin.
Frequencies above the Nyquist limit must be sufficiently attenuated before sampling. An unsuitable analog front end can produce aliasing even when the nominal sample rate appears high.
Once spectral copies overlap, different analog frequencies have been combined into the same digital frequency range. A later digital low-pass filter cannot determine which part belonged to the original band.
Upsampling and sinc interpolation can reconstruct the band-limited waveform represented by the samples. They cannot recover analog frequency content that was lost or folded during the original sampling process.
Zero-padding can create a denser frequency grid for an FFT display. It does not change the original sample rate or separate spectral components that have already overlapped.
Aliasing results from insufficient sampling bandwidth. Spectral leakage results from analyzing a finite record whose periodic boundaries or frequency-bin alignment are imperfect. Both can spread or relocate spectral energy, but their causes and remedies differ.
A higher acquisition rate can provide more transition-band space, improve time-grid density, and simplify filtering. It does not create source frequencies that were absent from the physical signal or sensor output.
Sampling discretizes time. Quantization discretizes amplitude. A signal can satisfy the sampling theorem and still contain quantization noise if the numerical resolution is insufficient.
Section 7.3 develops the sampling theorem through four connected stages:
The principal message of section 7.3 is that sampling does not merely select points from a waveform. It creates periodic spectral copies. A band-limited signal is recoverable precisely when those copies remain separated.
This principle provides the theoretical foundation for digital recording, anti-aliasing filters, DAC reconstruction, FFT analysis, resampling, audio conversion, communication systems, sensor acquisition, and biomedical sound processing.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Section 7.4 connects the sampling theorem with the Discrete Fourier Transform through the simplest Fourier component: a sinusoidal function. It explains how an analog sinusoid becomes a discrete sequence, when its original frequency remains identifiable, and how the DFT represents the sampled sequence.
Section 7.4 serves as a bridge between the theoretical sampling principles developed in Section 7.3 and the practical frequency analysis performed by the DFT.
The preceding sections established that:
Section 7.4 applies these ideas to a single sinusoid and asks:
What discrete sequence is produced when a continuous sinusoid is sampled, and what frequency will the DFT report from that sequence?
A sinusoid is selected because it is the elementary building block of Fourier analysis. Speech, music, mechanical vibration, heart sounds, lung sounds, and environmental noise may all be described as combinations of sinusoidal components.
| Hierarchy | Title | Central question | Practical meaning |
|---|---|---|---|
| Section 7.4 | Discrete Fourier Transform and sampling theorem | How do the DFT and the sampling theorem describe the same sampled signal? | Connects analog frequency, digital frequency, DFT bins, and aliasing |
| Section 7.4.1 | Sampling of sinusoidal function | What happens when a continuous sinusoid is measured at uniform time intervals? | Explains tone analysis, spectral peaks, leakage, and frequency ambiguity |
The sampling theorem describes the relationship between an analog signal and its discrete samples. The DFT describes the frequency content of a finite set of those samples.
Their roles may be summarized as:
analog signal → sampling theorem → discrete sequence → DFT → discrete spectrum
The sampling theorem determines whether the discrete sequence preserves the analog frequency information. The DFT then analyzes the frequency content that is present in that discrete sequence.
The DFT receives only sample values. It has no direct access to the original continuous waveform between those samples.
If two different analog sinusoids produce the same sample values, the DFT cannot determine which analog sinusoid originally entered the sampling system. This ambiguity is aliasing.
The DFT accurately analyzes the sampled sequence, but the sampled sequence may already contain an aliased representation of the original analog signal.
Fourier analysis represents a complex signal as a weighted sum of sinusoidal components. Understanding the sampled behavior of one sinusoid therefore provides the foundation for understanding the sampled behavior of a general signal.
The central chain is:
continuous sinusoid → discrete sinusoidal sequence → DFT coefficients
Section 7.4 shows that analog frequency, normalized digital frequency, and DFT-bin frequency are related but are not identical concepts.
| Concept | Typical symbol | Unit | Meaning |
|---|---|---|---|
| Analog frequency | f0 | Hz | Number of cycles completed per second |
| Sampling frequency | fs | samples per second | Number of signal measurements taken per second |
| Normalized frequency | f0 / fs | cycles per sample | Fraction of one cycle advanced between samples |
| Digital angular frequency | Ω0 | radians per sample | Phase advancement between adjacent samples |
| DFT-bin spacing | Δf | Hz | Frequency interval between adjacent DFT coefficients |
A continuous cosine signal may be written as:
x(t) = A cos(2πf0t + φ)
where:
The corresponding period is:
T0 = 1 / f0
If the signal is sampled every Ts seconds, the sampling instants are:
t = nTs
where n is an integer. Since Ts = 1 / fs, the sampled sequence becomes:
x[n] = A cos(2πf0n / fs + φ)
Defining the digital angular frequency as
Ω0 = 2πf0 / fs
gives:
x[n] = A cos(Ω0n + φ)
A continuous sinusoid therefore becomes a discrete sinusoidal sequence.
The number of samples taken during one analog cycle is:
samples per cycle = fs / f0
For example, a 1 kHz sinusoid sampled at 8 kHz produces eight samples per cycle.
A 3 kHz sinusoid sampled at 8 kHz produces approximately 2.67 samples per cycle. This remains below the Nyquist frequency of 4 kHz and is theoretically reconstructible, although the sampled points may appear visually sparse.
The plotted appearance of connected sample points should not be confused with the ideal reconstructed waveform. Straight lines between samples are not the reconstruction method assumed by the sampling theorem.
Digital complex sinusoids have a fundamental periodicity in frequency:
ej(Ω0+2πm)n = ejΩ0n
for every integer m. Consequently, analog frequencies separated by an integer multiple of the sampling frequency generate identical complex sample sequences:
f0, f0 + fs, f0 + 2fs, ...
For real cosine signals, positive and negative frequencies are also equivalent after an appropriate phase interpretation. Frequencies of the form
mfs ± f0
may therefore produce indistinguishable sampled cosine sequences.
A sampled sinusoid is not necessarily periodic in its integer sample index. It is periodic when the normalized frequency is a rational number:
f0 / fs = p / q
where p and q are integers. In that case, the sequence repeats after a finite number of samples related to q.
If f0 / fs is irrational, the infinite discrete sequence does not repeat exactly. A finite N-point DFT nevertheless treats the selected N-sample block as one period of a periodically extended sequence.
Because digital frequency repeats, one frequency interval is selected as the principal representation. A common two-sided interval is:
−fs/2 ≤ f < fs/2
For real-valued signals displayed as a one-sided spectrum, the corresponding interval is:
0 ≤ f ≤ fs/2
The upper boundary fs/2 is the Nyquist frequency.
If an analog sinusoid lies above the Nyquist frequency, its sampled sequence is represented by a lower frequency within the principal interval.
A convenient one-sided alias calculation is:
falias = |f0 − mfs|
where the integer m is selected so that falias lies between 0 and fs/2.
For example:
fs = 8 kHz, f0 = 5 kHz
gives:
falias = |5 kHz − 8 kHz| = 3 kHz
A 5 kHz cosine and a 3 kHz cosine therefore produce the same values at sampling instants spaced by 1/8,000 second.
The following graph compares 3 kHz and 5 kHz cosine waves sampled at 8 kHz. The continuous curves differ between sampling instants, but every recorded sample is shared by both curves.
For a cosine exactly at fs/2:
x[n] = A cos(πn + φ) = A(−1)ncos(φ)
The samples depend only on cos(φ). Part of the phase information is lost. If φ = π/2, every sample is zero even though the continuous sinusoid is not zero between sampling instants.
This illustrates why sampling exactly at twice the highest frequency is a fragile theoretical boundary. Practical systems require a sampling frequency greater than twice the desired signal bandwidth and allow a transition band for filtering.
An N-point DFT applied to data sampled at fs evaluates the spectrum at the frequencies:
fk = kfs / N, k = 0, 1, ..., N − 1
The spacing between adjacent bins is:
Δf = fs / N
Bins above the positive-frequency range are commonly interpreted as negative frequencies.
A sinusoid is bin-centered when its frequency satisfies:
f0 = k0fs / N
Equivalently, the N-sample observation contains an integer number of cycles:
Nf0 / fs = integer
Under rectangular-window analysis, a bin-centered complex exponential appears in one DFT bin. A real-valued cosine appears as a positive- and negative-frequency conjugate pair.
A cosine may be expressed as:
cos(Ωn) = (1/2)ejΩn + (1/2)e−jΩn
It therefore contains both positive- and negative-frequency components.
For an N-point DFT, a cosine centered on bin k0 normally produces coefficients at:
k = k0 and k = N − k0
A one-sided spectrum combines this conjugate pair into a single displayed positive-frequency peak.
If f0 does not coincide with a DFT-bin frequency, the observation contains a non-integer number of cycles. Repeating the finite block creates a boundary mismatch.
The DFT energy then spreads across multiple bins. This effect is called spectral leakage.
Spectral leakage is different from aliasing:
| Phenomenon | Primary cause | Result | Typical remedy |
|---|---|---|---|
| Aliasing | Sampling frequency is insufficient for the analog bandwidth | A high analog frequency becomes an incorrect lower digital frequency | Analog anti-aliasing filter and adequate sampling frequency |
| Spectral leakage | The finite observation is not periodic at its boundaries | Energy spreads across neighboring DFT bins | Windowing, coherent sampling, or a longer observation |
The following graph compares a bin-centered 8 Hz cosine with an 8.5 Hz cosine lying between DFT bins. Both signals are sampled at 64 Hz for 64 samples.
A window function gradually reduces the samples near the ends of the analysis block. This reduces the abrupt boundary discontinuity and lowers distant spectral sidelobes.
Windowing introduces a trade-off:
Window selection should therefore follow the measurement purpose rather than visual preference alone.
Increasing N while keeping the sampling frequency fixed reduces the DFT-bin spacing:
Δf = fs / N
If the additional samples represent a longer measured interval, true frequency discrimination generally improves.
If zeros are merely appended to the same measured interval, the displayed frequency grid becomes denser, but the underlying ability to separate nearby sinusoids does not fundamentally improve.
When
0 ≤ f0 < fs/2
and no other aliased analog component is present, the sinusoid has a unique principal-frequency representation. Ideal reconstruction can reproduce the corresponding continuous waveform.
When
f0 > fs/2
the sampled sequence is represented by an alias within the Nyquist interval. The DFT identifies that in-band discrete frequency, not the original out-of-band analog frequency.
A general band-limited signal may be decomposed into sinusoidal components. If every component lies below the Nyquist frequency, the entire signal is theoretically reconstructible.
If any significant component lies above the Nyquist frequency, that component may fold into the retained band and contaminate legitimate lower-frequency components.
A physical input commonly contains energy beyond the desired analysis band. An analog low-pass filter is therefore placed before the sampler:
analog input → anti-aliasing filter → sampling → DFT analysis
The filter attenuates sinusoidal components that would otherwise alias into the digital spectrum.
Section 7.4 may be summarized through the following sequence:
| Analog sinusoid | Sampling frequency | Nyquist frequency | Samples per cycle | Digital interpretation |
|---|---|---|---|---|
| 1 kHz | 8 kHz | 4 kHz | 8 | Valid in-band sinusoid at 1 kHz |
| 3 kHz | 8 kHz | 4 kHz | Approximately 2.67 | Valid in-band sinusoid at 3 kHz |
| 4 kHz | 8 kHz | 4 kHz | 2 | Nyquist-boundary case with phase ambiguity |
| 5 kHz | 8 kHz | 4 kHz | 1.6 | Aliases to 3 kHz |
| 7 kHz | 8 kHz | 4 kHz | Approximately 1.14 | Aliases to 1 kHz |
| 9 kHz | 8 kHz | 4 kHz | Approximately 0.89 | Produces the same complex digital frequency class as 1 kHz |
The number of samples per cycle alone does not reveal the correct analog origin after aliasing has occurred. The analog bandwidth must be constrained before sampling.
A spectrum analyzer applies the DFT or FFT to a finite block of samples and estimates the magnitudes and phases of sinusoidal components.
Correct interpretation requires knowledge of:
A sustained musical tone contains a fundamental component and harmonics. DFT peaks provide candidate frequencies for estimating pitch.
Since the true frequency often lies between bins, practical tuning systems may combine:
A digital oscillator generates samples from:
x[n] = A cos(2πf0n / fs + φ)
Tone generators are used for equipment testing, hearing tests, calibration, synthesis, communication, and instructional demonstrations.
A pure digital sinusoid below the Nyquist frequency is straightforward to represent. Nonlinear processing, however, may generate harmonics above the Nyquist frequency.
Those harmonics fold into the audible band unless controlled through techniques such as:
Rotating equipment often produces approximately sinusoidal vibration at the rotation frequency and its harmonics. DFT analysis can reveal:
The sampling rate must cover the highest diagnostic frequency without aliasing.
Communication systems use sinusoidal carriers to transport information. Sampling converts those carriers into digital-frequency representations that may be analyzed, shifted, filtered, or demodulated.
Carrier frequencies and occupied bandwidths must map into the sampled spectrum without unwanted overlap.
Physiological sounds are not pure sinusoids, but sinusoidal analysis remains useful.
The DFT can identify these spectral patterns only within the valid bandwidth established during acquisition.
The principles of Section 7.4 support practical media-player features such as:
Before interpreting a DFT peak, the sampling frequency, analog bandwidth, sensor response, and anti-aliasing filter should be known.
A longer interval provides finer frequency discrimination but reduces the ability to localize rapid changes in time.
The window should be selected according to whether amplitude accuracy, frequency separation, or sidelobe suppression is the primary objective.
Correct amplitude scaling should account for transform length, one-sided or two-sided display, and window gain.
Peaks above fs/2 do not appear as distinct one-sided frequencies. Any out-of-band analog energy may already have folded into the displayed range.
Leakage may be reduced through improved finite-record analysis. Aliasing must be prevented during acquisition or before downsampling.
Infinitely many analog frequencies separated by multiples of fs can belong to the same digital-frequency equivalence class. The sampling theorem supplies the bandwidth restriction that makes the principal representation unique.
A bin-centered complex exponential occupies one bin. A real cosine normally produces a conjugate pair of positive- and negative-frequency coefficients.
Exact bin concentration requires coherent sampling. A sinusoid located between DFT bins produces spectral leakage across several bins.
The actual frequency may lie between bins. Observation length, window shape, noise, modulation, and interference affect the peak location and shape.
The sampling frequency determines the Nyquist range. The observation duration and transform length determine the frequency-grid spacing and contribute to frequency resolution.
Zero-padding evaluates the finite-record spectrum on a denser frequency grid. It cannot recover the original analog frequency after aliasing has occurred.
A digital analysis window reduces finite-record spectral leakage. An analog anti-aliasing filter limits the signal bandwidth before sampling. These operations address different problems.
A sinusoid at the Nyquist frequency may lose phase information or even produce zero-valued samples for a particular phase. Practical systems require bandwidth margin.
Sparse points below the Nyquist limit may still represent a valid band-limited sinusoid. Ideal reconstruction uses all samples and sinc interpolation rather than straight-line connection.
Section 7.4 unifies the DFT and the sampling theorem through the sampled sinusoid:
The principal message of Section 7.4 is that the DFT can identify only the digital frequency represented by the samples. The sampling theorem is what permits that digital frequency to be associated uniquely with the intended analog sinusoid.
This principle provides the foundation for tone measurement, spectrum analysis, musical tuning, digital synthesis, vibration monitoring, communication systems, audio resampling, and biomedical sound analysis.
Written on June 28, 2026
Mikio Tohyama, Waveform Analysis of Sound
Section 7.5 explains how a discrete sequence can be represented at a higher or lower sampling frequency without introducing unwanted spectral images or aliasing. Interpolation adds sample positions, decimation removes sample positions, and sampling-frequency conversion combines both operations with appropriate filtering.
Earlier sections of Chapter 7 established why sampling is possible, how sampled spectra become periodic, and how the DFT represents a finite sequence. Section 7.5 applies those principles to an already sampled digital signal.
The central question is:
How can the sampling frequency of an existing digital sequence be changed while preserving its intended waveform and avoiding spectral distortion?
The section develops three connected operations:
These operations form the mathematical foundation of digital audio resampling, playback-engine conversion, speech-model preprocessing, multirate filtering, oversampled effects, and biomedical signal standardization.
| Hierarchy | Title | Central question | Practical meaning |
|---|---|---|---|
| Section 7.5 | Interpolation and decimation of sequences | How can the sampling grid of a digital sequence be changed correctly? | Provides the foundation of multirate digital signal processing |
| Section 7.5.1 | Interpolation of sequences | How can additional sample values be calculated between existing samples? | Upsampling, fractional delay, waveform reconstruction, and oversampling |
| Section 7.5.2 | Interpolation and decimation samples | Why must filtering accompany the insertion or removal of samples? | Prevention of spectral imaging and aliasing |
| Section 7.5.3 | Sampling frequency conversion | How can one arbitrary sampling frequency be converted into another? | 44.1 kHz to 48 kHz conversion, device compatibility, and signal standardization |
Section 7.5 begins with a digital sequence that already exists:
x[0], x[1], x[2], ..., x[N − 1]
Each value is associated with a sampling instant determined by the sampling frequency fs. Changing the sampling frequency means constructing a new sequence whose sample positions lie on a different time grid.
The desired continuous-time interpretation should remain unchanged. Only the discrete representation is intended to change.
| Quantity | Meaning | Effect of sample-rate conversion |
|---|---|---|
| Sampling frequency | Number of samples represented per second | Changes to the target rate |
| Sample count | Number of stored values | Normally changes in proportion to the rate |
| Signal duration | Physical time represented by the sequence | Normally remains unchanged |
| Signal bandwidth | Highest retained frequency content | Cannot exceed the smaller usable Nyquist range |
For example, converting a one-second signal from 24 kHz to 48 kHz normally changes the sample count from approximately 24,000 to approximately 48,000 while preserving the one-second duration.
In the time domain, interpolation inserts sample positions and decimation removes sample positions. In the frequency domain, the same operations alter the spacing and repetition of spectral copies.
| Operation | Time-domain description | Frequency-domain consequence |
|---|---|---|
| Interpolation by L | Insert L − 1 zero-valued positions between original samples, then filter | The normalized spectrum is compressed and repeated as spectral images |
| Decimation by M | Retain every Mth sample after filtering | Shifted spectral regions combine and may alias |
| Conversion by L/M | Interpolate, filter, and decimate | Images and aliases must both be controlled |
A sampling frequency should not be changed by merely inserting or deleting values. Interpolation requires suppression of spectral images, and decimation requires suppression of components that would alias into the new Nyquist range.
Interpolation constructs a denser sequence from an existing sequence. If the original sampling frequency is fs and the interpolation factor is the positive integer L, the new sampling frequency becomes:
fs,new = Lfs
The intended signal duration and physical frequency content remain unchanged. The waveform is simply evaluated on a denser sampling grid.
The first mathematical stage inserts L − 1 zeros between every pair of original samples. The intermediate sequence v[n] is:
v[n] = x[n/L], if n is an integer multiple of L; otherwise v[n] = 0
For interpolation by two:
x[0], x[1], x[2], x[3]
becomes:
x[0], 0, x[1], 0, x[2], 0, x[3], 0
Zero insertion increases the number of sequence positions, but it does not yet calculate meaningful intermediate waveform values.
If X(ejω) is the discrete-time spectrum of the original sequence, the spectrum after zero insertion is:
V(ejω) = X(ejLω)
The original normalized spectrum is compressed by L and repeated L times within one 2π-periodic frequency interval. These repeated copies are called spectral images.
The images are not new source information. They are artifacts of the zero-insertion operation.
A low-pass filter follows zero insertion:
original sequence → zero insertion by L → interpolation filter → interpolated sequence
The filter performs two related tasks:
For a full-band input, the ideal normalized cutoff at the higher intermediate rate is:
|ω| ≤ π/L
The ideal filter has a passband gain of L under the common zero-insertion convention, preserving the original signal amplitude.
In the ideal band-limited case, interpolation may be written as:
y[n] = Σk=−∞∞ x[k] sinc(n/L − k)
with:
sinc(u) = sin(πu) / (πu)
Every output value is influenced by multiple input samples. Ideal sinc interpolation therefore differs from simple sample repetition or straight-line connection.
An ideal sinc filter is infinitely long and noncausal. Practical systems approximate it using finite filters such as:
Filter choice determines the trade-off among passband accuracy, image suppression, latency, computational cost, and phase behavior.
The following graph illustrates fourfold interpolation of a band-limited periodic waveform. The zero-inserted intermediate sequence contains many zero values. The interpolation filter replaces that intermediate representation with values lying on the reconstructed waveform.
Decimation reduces the sampling frequency by the positive integer factor M. After suitable filtering, every Mth sample is retained:
y[n] = xf[Mn]
where xf[n] is the filtered input sequence. The new sampling frequency becomes:
fs,new = fs / M
Reducing the sampling frequency also reduces the Nyquist frequency. For example:
48 kHz → decimation by 3 → 16 kHz
The Nyquist frequency changes from 24 kHz to 8 kHz. Components above 8 kHz cannot remain in the signal without folding into lower frequencies.
The correct order is:
input sequence → anti-aliasing low-pass filter → retain every Mth sample
Filtering after sample removal is too late because the out-of-band components have already been combined with valid in-band components.
Downsampling expands the normalized spectrum and combines shifted spectral copies. A common expression is:
Y(ejω) = (1/M) Σr=0M−1 Xf (ej(ω+2πr)/M)
If the shifted terms overlap, their values add and aliasing occurs. The prefilter restricts Xf so that only one nonoverlapping spectral region remains.
| Property | Interpolation | Decimation |
|---|---|---|
| Rate change | Increases by L | Decreases by M |
| Primitive sample operation | Insert L − 1 zeros | Retain every Mth sample |
| Primary spectral danger | Imaging | Aliasing |
| Filter position | After zero insertion | Before sample removal |
| Filter purpose | Remove images and calculate intermediate values | Remove frequencies above the new Nyquist limit |
| New source information | Not created | Not created; some bandwidth may be discarded |
The following example begins with a 48 kHz signal containing 3 kHz and 10 kHz components. Converting directly to 16 kHz without filtering causes the 10 kHz component to appear at 6 kHz. An ideal prefilter removes the 10 kHz component before every third sample is retained.
Many conversions are not simple integer increases or decreases. If the desired ratio can be expressed as the fraction L/M, the output sampling frequency is:
fs,out = fs,in × L/M
The conceptual processing chain is:
input → interpolate by L → low-pass filter → decimate by M → output
At the temporary rate Lfs,in, the low-pass filter must satisfy both sides of the conversion:
A suitable ideal normalized cutoff at the intermediate rate is bounded by:
|ω| ≤ min(π/L, π/M) = π/max(L, M)
In physical frequency, the retained bandwidth cannot exceed:
min(fs,in/2, fs,out/2)
A practical filter uses a lower passband edge and a finite transition region.
The exact rate ratio is:
48,000 / 44,100 = 160 / 147
The conceptual conversion is therefore:
44.1 kHz → interpolate by 160 → filter → decimate by 147 → 48 kHz
A literal implementation would create a temporary rate of 7.056 MHz. Efficient systems avoid storing or calculating all of those intermediate zero-valued samples.
A polyphase filter divides one finite-impulse-response filter into several phase components. Only the filter phase required for each output sample is evaluated.
This method avoids:
Polyphase resampling is therefore widely used in real-time audio engines, communication systems, media converters, and scientific software.
Rational conversion assumes that the input and output clocks have a stable known ratio. Independent hardware clocks may drift slightly, even when both devices claim the same nominal rate.
Asynchronous sampling-rate conversion continuously adjusts the interpolation position or effective conversion ratio. It is used to prevent buffer underflow, buffer overflow, and long-term timing drift between unsynchronized devices.
For an input containing Nin samples, the approximate output count is:
Nout ≈ Nin × L/M
Exact sample count depends on endpoint convention, filter delay, padding, and rounding. A correct conversion should preserve the intended physical duration and timing.
A finite interpolation filter introduces delay. A linear-phase finite-impulse-response filter preserves waveform phase relationships but adds a predictable group delay. A minimum-phase filter can reduce apparent latency while altering phase.
Delay compensation is important when:
| Conversion | Reduced ratio L/M | Primary requirement | Typical use |
|---|---|---|---|
| 24 kHz → 48 kHz | 2/1 | Remove interpolation images | Audio-engine compatibility |
| 48 kHz → 24 kHz | 1/2 | Restrict bandwidth below the new 12 kHz Nyquist limit | Storage or processing reduction |
| 48 kHz → 16 kHz | 1/3 | Low-pass filtering below the new 8 kHz limit | Speech and machine-learning input |
| 44.1 kHz → 48 kHz | 160/147 | High-quality rational resampling | Music in video and broadcast workflows |
| 48 kHz → 44.1 kHz | 147/160 | Preserve content below the lower output Nyquist range | Audio distribution and file conversion |
| 96 kHz → 44.1 kHz | 147/320 | Strong attenuation above the 22.05 kHz output Nyquist limit | High-rate production to distribution format |
| Operation | Sequence-domain action | Spectral action | Required protection |
|---|---|---|---|
| Upsampling by L | Insert L − 1 zeros | Compress and repeat the normalized spectrum | Anti-imaging low-pass filter |
| Interpolation by L | Upsample and filter | Retain the desired baseband copy | Passband gain and image suppression |
| Downsampling by M | Retain every Mth sample | Expand and combine spectral regions | Prior band limitation |
| Decimation by M | Filter and downsample | Prevent overlapping spectral copies | Anti-aliasing low-pass filter |
| Conversion by L/M | Interpolate, filter, and decimate | Control both images and aliases | Joint conversion filter |
The conversion factor is L = 2.
The new Nyquist frequency is 8 kHz, but the conversion does not create valid source information above the original 4 kHz Nyquist limit.
The conversion factor is M = 3.
The reduced conversion ratio is 160/147.
The output contains approximately 48,000 samples for every second of input while preserving the original duration and pitch.
An audio file and a playback device may operate at different sampling frequencies. A 44.1 kHz music file may need conversion before playback through a 48 kHz audio engine.
A well-designed converter preserves pitch, duration, amplitude, and stereo alignment while suppressing images and aliases.
Video workflows commonly use 48 kHz audio. Music or archival material recorded at 44.1 kHz may therefore require conversion before editing, mixing, or final delivery.
Incorrect conversion may produce distortion, timing drift, or synchronization errors between audio and video.
Speech-recognition and audio-classification models often expect a fixed sampling frequency such as 16 kHz. A higher-rate recording should be filtered and resampled before being supplied to the model.
Consistent conversion is important because a model may otherwise receive frequency distributions that differ from those used during training.
Biomedical recordings from different sensors or institutions may use different sampling frequencies. A shared rate is often required before comparison, averaging, classification, source separation, or multimodal alignment.
The target rate should preserve the highest clinically relevant frequency and should not be selected solely to minimize storage.
Independent Component Analysis assumes corresponding samples represent the same time positions across channels. Signals recorded with different rates or drifting clocks must therefore be resampled and aligned before ICA.
The preprocessing sequence may include:
Distortion, saturation, clipping, and nonlinear synthesis generate new harmonics. Some harmonics may exceed the original Nyquist frequency and alias into the audible band.
A common solution is:
interpolate → nonlinear process at a higher rate → low-pass filter → decimate
Oversampling does not remove all nonlinear artifacts automatically, but it provides additional spectral space in which generated harmonics can be filtered before returning to the original rate.
Multirate processing permits different stages of a receiver or measurement system to operate at rates appropriate to their bandwidths. High-rate acquisition can be followed by filtered decimation, reducing computational cost while retaining the desired information.
Display interpolation may produce a smooth visual curve between stored samples. This operation should remain conceptually separate from audio resampling.
The filter should maintain the desired frequencies with sufficiently small amplitude variation. Excessive passband ripple can alter tonal balance or quantitative measurements.
Spectral images and frequencies that would alias should be reduced below the acceptable error level. More demanding audio and scientific applications generally require greater attenuation.
A narrow transition band requires a longer or more complex filter. Allowing a wider transition region can reduce processing cost and latency.
Linear-phase filters preserve relative phase but add symmetrical pre- and post-ringing around transients. Minimum-phase filters reduce pre-ringing and latency but alter phase relationships.
Offline conversion may use long filters and extensive buffering. Real-time playback, communication, and monitoring systems require a balance among quality, CPU use, memory, and delay.
Processing separate blocks without retaining filter state may create discontinuities at block boundaries. A streaming converter should preserve filter history and fractional phase across blocks.
Every channel in a coherent recording should normally use the same conversion ratio, filter design, phase state, and delay compensation. Independent treatment may disturb stereo imaging or sensor alignment.
The output sampling-frequency metadata, duration, timestamps, cue positions, annotations, and segment boundaries should be updated consistently after conversion.
A resampling system may be evaluated through:
Inserting zeros changes the sampling grid but leaves spectral images. The interpolation filter is required to calculate the intended intermediate values and suppress those images.
Retaining every Mth sample without prior filtering may fold out-of-band energy into the retained spectrum.
Replacing a 44.1 kHz label with 48 kHz without calculating new samples changes playback speed and pitch. Proper conversion changes both the sequence and its rate metadata while preserving duration.
A higher output sampling frequency provides a denser representation of the existing band-limited signal. It cannot recover frequencies lost during the original recording.
Reducing the number of samples also reduces the representable bandwidth. Any content beyond the new Nyquist range must be removed.
Repeating each sample implements a zero-order hold. It may be adequate for certain control signals or low-quality applications, but it introduces a characteristic frequency response and does not provide ideal band-limited interpolation.
Appending zeros to a finite time record before an FFT creates a denser spectral evaluation grid. Inserting zeros between time samples and filtering changes the sampling rate of the sequence.
Once downsampling has combined different frequency regions, a later filter cannot determine which energy belonged to the original baseband.
Conversion from 44.1 kHz to 192 kHz does not add microphone bandwidth, recording detail, or lost transients. It only represents the available signal on a denser grid.
Proper sample-rate conversion preserves duration and pitch when the output is interpreted at its new rate. Resampling the sequence while continuing playback at the original rate changes duration and pitch.
Sampling frequency controls the time grid and Nyquist range. Bit depth controls amplitude precision and quantization noise. Changing one does not automatically change the other.
The ratio L/M determines where output samples occur. Audible or measurable quality still depends on filter design, numerical precision, phase behavior, and implementation details.
Section 7.5 develops a complete multirate-processing sequence:
The principal message of Section 7.5 is that changing the number of samples is inseparable from controlling the spectrum. Interpolation must remove spectral images, decimation must prevent aliasing, and general sampling-frequency conversion must perform both tasks as one coordinated filtering operation.
These principles support audio-file conversion, device compatibility, speech preprocessing, medical-signal analysis, multichannel synchronization, oversampled effects, communication receivers, scientific instrumentation, and real-time media playback.
Written on June 28, 2026
Chapter 8 of Mikio Tohyama's Waveform Analysis of Sound examines how a complicated sound sequence can be interpreted as a structured collection of sinusoidal components. The chapter begins with the detection of meaningful spectral peaks, proceeds to mathematical modeling of overlapping spectral components, and concludes with the extension of the resulting model outside the original observation interval.
The essential message of Chapter 8 is that an FFT display is not the final result of sound analysis. The more important task is to identify the spectral components that represent the sound, estimate their frequencies, amplitudes, and phases, reconstruct the signal from those components, and determine how far the model remains valid beyond the observed data.
This progression is particularly relevant to software such as nGeneMediaPlayer. Waveform, spectrum, and spectrogram views reveal what has been recorded, but Chapter 8 provides the conceptual basis for moving toward measurement, interpretation, model-based reconstruction, repair, and controlled signal editing.
| Section | Main question | Result | Practical value |
|---|---|---|---|
| 8.1 Spectral peak selection | Which parts of the spectrum represent meaningful sinusoidal components? | Estimated peak frequencies and harmonic relationships | Pitch, dominant-frequency, harmonic, and tonal-component analysis |
| 8.2 Clustered line spectral modeling | How can overlapping spectral components be represented jointly? | A fitted sinusoidal model and a residual signal | Reconstruction, component separation, tonal editing, and model validation |
| 8.3 Prediction of compound sinusoidal sequences | Can the estimated model be evaluated outside the measured interval? | A forward, backward, or gap-filling extension | Short dropout repair, packet-loss concealment, and sustained-tone extension |
A digital sound recording contains a sequence of sample values. A discrete Fourier transform converts a selected interval of those samples into a set of frequency-domain values. The resulting spectrum may contain hundreds or thousands of bins, but those bins do not necessarily represent an equal number of physically meaningful sound components.
A single sinusoid whose frequency lies between two DFT-bin centers can spread energy across many neighboring bins. A strong sinusoid can also produce sidelobes that resemble smaller peaks. Several nearby sinusoids can produce overlapping spectral shapes.
The central challenge is therefore not merely:
“Which FFT bins have large values?”
The more useful question is:
“Which underlying sinusoidal components most plausibly produced the measured spectral pattern?”
Chapter 8 can be understood as a sequence of increasingly informative operations:
A waveform may contain tens of thousands of samples, but a stable tonal segment may be approximated by a much smaller set of parameters:
{frequency, amplitude, phase}
For several components, a real-valued sequence may be represented as:
x[n] ≈ Σ Am cos(ωmn + φm)
This representation is called parametric because the signal is described by estimated parameters rather than only by its raw sample values.
The parameters support operations that are difficult to perform directly on an undifferentiated waveform:
Not every sound is well represented by a small number of stable sinusoids. Percussive attacks, clicks, crackles, unvoiced consonants, wind noise, and other broadband or transient events may require additional models.
A practical representation is therefore:
recorded signal = sinusoidal model + residual
The residual is not automatically an error to be discarded. It may contain important transients, noise-like texture, breath components, or other acoustic information that the sinusoidal model does not describe.
A compound sinusoidal sequence is formed by adding several sinusoidal components:
x[n] = A1cos(ω1n + φ1) + A2cos(ω2n + φ2) + ...
Each parameter has a distinct physical meaning:
| Parameter | Meaning | What an error causes |
|---|---|---|
| Frequency | Rate of oscillation | Increasing phase drift during reconstruction or prediction |
| Amplitude | Strength of the component | Incorrect spectral balance or loudness |
| Phase | Time alignment of the component | Boundary discontinuity and incorrect waveform shape |
An ideal sinusoid is conceptually infinite in duration. A real analysis observes only a finite segment. That segment is normally multiplied by a window:
y[n] = w[n]x[n]
Time-domain multiplication by a window produces frequency-domain spreading. An ideal spectral line therefore becomes a cluster shaped by the frequency response of the selected window.
This explains why a single physical tone can produce several neighboring FFT values. The cluster should be interpreted as a structured pattern rather than as a group of unrelated frequencies.
An FFT bin contains a complex value. Its magnitude describes strength, while its angle describes phase. Magnitude is sufficient for many visualization tasks, but phase is essential for accurate reconstruction and extension.
Two signals can have the same magnitude spectrum and different waveforms. A software design intended for model-based reconstruction should therefore preserve the complex spectral values rather than retaining only display magnitudes.
A robust analysis system should distinguish between quantities directly calculated from samples and quantities estimated through a model.
| Measured or directly calculated | Estimated or inferred |
|---|---|
| Sample values | True sinusoidal frequency between DFT bins |
| Complex DFT-bin values | Peak amplitude corrected for window effects |
| Window type and frame length | Harmonic-group membership |
| Observed spectrum | Fundamental-frequency candidate |
| Observed waveform interval | Predicted waveform outside that interval |
This distinction is especially important in nGeneMediaPlayer. Measured data, modeled components, residuals, and predictions should use visibly different labels and display conventions.
Spectral peak selection identifies the local spectral structures that are most likely to represent meaningful sinusoidal components. It is the gateway to all later modeling.
A peak-selection procedure generally considers:
Selecting every local maximum is rarely useful. Some maxima are generated by sidelobes, broadband noise, quantization effects, or rapidly changing signal content.
Section 8.1.1 establishes how one sinusoidal sequence appears in a discrete Fourier transform. The result depends on the relationship between the sinusoidal frequency and the DFT-bin frequencies.
The DFT-bin spacing is:
Δf = sample rate / FFT length
If a sinusoid falls exactly at a bin center under compatible observation conditions, its spectral energy may be highly concentrated. If it falls between bins, its energy is distributed across neighboring bins.
The largest bin is therefore a coarse frequency estimate. It should not automatically be reported as the true sinusoidal frequency.
Section 8.1.2 improves the raw bin estimate by examining the peak bin together with neighboring bins. Interpolation estimates the location of the underlying maximum between the sampled DFT frequencies.
A common practical method fits a parabola to three neighboring log-magnitude values. More accurate methods can account explicitly for the selected window and the complex spectral samples.
Spectral interpolation provides sub-bin frequency estimation. It does not create new physical information, but it uses the existing spectral shape more effectively.
Zero padding should not be confused with true resolution improvement. Zero padding samples the same finite spectrum more densely and improves display smoothness, but it does not provide the resolving power of a longer observation interval.
Section 8.1.3 extends the problem from one sinusoid to several. The main difficulty is that the spectral shape produced by one component can overlap the shape produced by another.
Typical difficult cases include:
A reliable system should report uncertainty when two components cannot be separated stably. A visually narrow display does not guarantee that the underlying frequencies are physically resolvable.
Section 8.1.4 examines harmonic structures after frequency has been mapped to a logarithmic scale. A harmonic sequence has frequencies:
fm = mf0
On a logarithmic axis:
log(fm) = log(f0) + log(m)
Multiplication of all frequencies by a common factor becomes translation on the logarithmic axis. This is important because the harmonic structure associated with one fundamental frequency becomes a shifted version of the structure associated with another fundamental frequency.
Harmonics are not equally spaced on a logarithmic axis. Rather, the shape defined by the harmonic numbers is preserved when the fundamental frequency changes.
Section 8.1.5 develops the scaling idea further. When a sound is shifted in pitch while preserving its harmonic ratios, the complete harmonic pattern is scaled in linear frequency and translated in logarithmic frequency.
This provides a mathematical basis for:
Section 8.1.6 considers repeated structure within spectral data. A spectrum can be compared with shifted versions of itself to reveal recurring relationships among peaks.
In a harmonic tone, many peaks are related through one fundamental frequency. Spectral autocorrelation or related harmonic-pattern comparison can reinforce this shared structure even when the fundamental component is weak or missing.
This approach differs from ordinary time-domain autocorrelation, although both methods attempt to detect repetition. Time-domain autocorrelation searches for recurring waveform delays. Frequency-domain analysis searches for recurring spectral relationships.
The following chart illustrates a finite-window spectrum containing three off-bin sinusoidal components. The spectral curve consists of discrete DFT samples. The selected markers represent interpolated peak locations between the raw bin centers.
| Application | What peak selection provides |
|---|---|
| Musical tuning | Sub-bin frequency estimates and cents deviation |
| Voice analysis | Fundamental and harmonic candidates |
| Hum detection | Narrowband line frequencies and harmonics |
| Machinery monitoring | Rotational tones, harmonics, and sidebands |
| Biomedical acoustics | Persistent tonal components and narrowband events |
| Audio restoration | Components suitable for reconstruction or removal |
A finite sinusoid does not normally appear as one isolated DFT value. It produces a group of values shaped by the analysis window. When several sinusoids are close together, their groups overlap.
Clustered line spectral modeling, abbreviated as CLSM, treats the observed spectral region as a combination of several theoretical window-shaped components.
Instead of asking:
“What is the height of each local maximum?”
CLSM asks:
“Which combination of candidate sinusoidal components best explains all complex spectral samples in this region?”
Section 8.2.1 supplies the basic spectral template. For a complex sinusoid, the local spectrum can be expressed conceptually as:
X[k] = cW(ωk − ω0)
Here, W is the spectrum of the analysis window, ω0 is the sinusoidal
frequency, and c is a complex amplitude containing magnitude and phase.
The expression shows that the local cluster is not arbitrary. It is a shifted and scaled version of a known window response.
Section 8.2.2 combines several candidate components. A selected spectral region can be arranged into a vector:
y = Hc + e
| Symbol | Meaning |
|---|---|
y |
Observed complex DFT samples in the selected spectral cluster |
H |
Matrix of window-spectrum templates at the candidate frequencies |
c |
Unknown complex component amplitudes |
e |
Residual caused by noise, missing components, nonstationarity, or model mismatch |
Each column of H represents the spectral shape expected from one candidate sinusoid. The model
estimates how much of each template is present in the measured data.
Section 8.2.3 determines the unknown component coefficients by minimizing the squared residual:
ĉ = arg minc ‖y − Hc‖2
The conceptual normal equations are:
HHHĉ = HHy
A direct matrix inverse should generally be avoided in production software. QR decomposition or singular-value decomposition provides greater numerical stability, especially when candidate frequencies are close and the columns of the model matrix become similar.
A completed CLSM fit provides more than a list of frequencies:
A reconstruction that sounds plausible can still omit important acoustic information. The residual makes the missing information visible and audible.
A useful nGeneMediaPlayer implementation should provide three synchronized playback modes:
A residual containing clear tones suggests missing modeled components. A residual containing transient or broadband texture may indicate that the sinusoidal model is performing appropriately.
Section 8.2.4 demonstrates how the method behaves in representative cases. The most informative examples are not those with a nearly perfect fit, but those that reveal the boundary between a useful model and an overfitted model.
| Case | Expected behavior | Important diagnostic |
|---|---|---|
| One isolated tone | One window-shaped cluster explains most spectral energy | Sub-bin frequency and amplitude accuracy |
| Two nearby tones | Joint fitting separates overlapping contributions | Matrix conditioning and parameter stability |
| Harmonic tone | Several related components reproduce tonal timbre | Harmonic amplitude pattern and residual |
| Tone plus noise | Tone enters the model while noise remains in the residual | Whether noise is incorrectly fitted as extra lines |
| Transient sound | Fixed sinusoids provide only a partial approximation | Large structured residual and frame sensitivity |
Section 8.2 transforms spectral analysis into an editable model. Once the components have been estimated, a software system can reconstruct selected portions of the sound, suppress individual lines, compare modeled and unmodeled energy, and prepare stable components for short-term extension.
This section is the technical bridge between a spectrum viewer and a model-based audio tool.
Prediction in Chapter 8.3 means evaluating an estimated sinusoidal model at sample positions outside the original observation interval.
It does not mean forecasting an unexpected future event. A model fitted to a sustained note can continue the note's estimated partials. It cannot determine when a new note will begin. A model fitted to machine vibration can continue current rotational components. It cannot foresee an unforeseen impact.
The most precise term is therefore model-based extrapolation.
Section 8.3.1 explains that a sum of sinusoids may be periodic or almost periodic.
A discrete-time sinusoid is exactly periodic only when its normalized frequency has a rational relationship to
2π. A sum of sinusoids is exactly periodic when all components share a common integer period.
When no common period exists, the sequence may still be almost periodic. Its complete waveform does not repeat exactly after one fixed interval, but similar configurations recur because every component follows a deterministic phase progression.
This distinction matters because prediction does not require the entire waveform to repeat as one loop. Each component can be continued individually.
Section 8.3.2 describes the connection between a compound sinusoidal sequence and its ideal line spectrum. Each component corresponds to a spectral line with a complex coefficient.
Conceptually:
x[n] = Σ cmejωmn
corresponds to:
S(ω) = Σ cmδ(ω − ωm)
The line position determines frequency. The coefficient magnitude determines amplitude. The coefficient angle determines phase.
Section 8.3.3 applies selected spectral peaks to signal extension. After the parameters have been estimated, the model can be evaluated beyond the final observed sample:
x̂[n] = Σ Âmcos(ω̂mn + φ̂m)
The same model can also be evaluated before the first observed sample. Related two-sided methods can use data on both sides of a damaged interval to reconstruct a short internal gap.
Frequency error accumulates as phase error. If the frequency error is Δf, the phase error after
time τ is approximately:
Δφ(τ) = 2πΔfτ
A small frequency error may be inaudible across a short repaired gap but become substantial over a long extension. Prediction quality should therefore always be associated with an explicit prediction horizon.
The following chart illustrates an observed compound sinusoidal signal, its fitted reconstruction, an ideal continuation shown for comparison, and a model-based extension. Small parameter errors cause the predicted waveform to separate gradually from the reference continuation.
| Stage | Input | Operation | Output | Failure indicator |
|---|---|---|---|---|
| Frame selection | Audio samples | Select interval and analysis window | Finite analysis frame | Strong change inside the frame |
| Spectral calculation | Windowed frame | Complex FFT | Complex spectral sequence | Insufficient resolution or poor dynamic range |
| Peak selection | Spectrum | Detect significant local structures | Peak candidates | Too many noise peaks or missed weak tones |
| Peak interpolation | Peak neighborhoods | Estimate sub-bin frequency | Refined frequencies | Bias from overlap or window mismatch |
| Harmonic interpretation | Refined peaks | Group related frequency ratios | Fundamental and harmonic candidates | Ambiguous or conflicting groups |
| CLSM fitting | Complex spectrum and candidate frequencies | Joint least-squares estimation | Complex amplitudes and reconstruction | Ill-conditioned model or large residual |
| Residual analysis | Original and reconstructed signals | Subtract model from observation | Unmodeled component | Remaining tonal peaks or boundary artifacts |
| Extension | Stable sinusoidal model | Evaluate outside observation interval | Predicted or repaired samples | Growing phase error or discontinuity |
Prediction quality cannot exceed model quality, and model quality cannot exceed peak-estimation quality.
Reliable development should proceed in the following order: accurate peak measurement first, harmonic interpretation second, model fitting and residual inspection third, and prediction or repair last.
A tuner should not report only the largest FFT bin. Spectral interpolation provides a more precise frequency estimate, while harmonic grouping reduces the risk of selecting a stronger overtone instead of the fundamental.
A practical display can report:
The relative strengths of harmonics contribute strongly to timbre. A sinusoidal model permits comparison of harmonic envelopes across notes, instruments, playing techniques, or recording conditions.
A logarithmic frequency view is especially useful because pitch changes become horizontal translations while harmonic-ratio structure remains comparable.
Voiced speech contains approximately harmonic components over short frames. Peak grouping and tracking can reveal fundamental-frequency movement, vibrato, jitter-like variation, and changes in harmonic balance.
Unvoiced consonants and transient speech events should remain in a residual or be analyzed with a different model.
Electrical hum, whistles, feedback tones, and narrowband interference can be represented as sinusoidal tracks. Once frequency, amplitude, and phase have been estimated, selected components can be subtracted or attenuated.
Phase-aware subtraction can be more selective than applying a broad notch filter, particularly when the unwanted tone changes slowly over time.
A short dropout in a sustained tone or voiced segment may be filled by extending sinusoidal models from the surrounding audio. Two-sided fitting can reduce boundary mismatch by using information from both sides of the gap.
The repaired region should remain short relative to the stability of the estimated components. A confidence indicator should decline as gap length increases.
Rotating machinery frequently produces narrowband components at shaft frequency, harmonics, gear-mesh frequencies, blade-pass frequencies, and modulation sidebands.
Peak tracking can reveal frequency drift and sideband growth. A short-term sinusoidal prediction can provide an expected signal against which new observations are compared.
Prediction error can indicate change, but it does not independently identify a mechanical fault.
Some physiological sounds contain tonal or approximately periodic portions. Sustained wheezes, localized narrowband vascular sounds, or repeating acoustic components may be examined through peak tracking and sinusoidal modeling.
Heart sounds, crackles, breath noise, and many murmurs also contain transient or broadband structures. A sinusoidal model should therefore be presented as one analytical layer rather than as a complete diagnostic description.
nGeneMediaPlayer can support measurement, comparison, annotation, and research export without presenting model output as a clinical diagnosis.
The most valuable direction is not to add more decorative spectral displays. The stronger direction is to convert existing waveform, FFT, and spectrogram views into an integrated analytical workflow:
select → measure → interpret → model → compare → edit or repair → export
Every advanced result should remain traceable to a selected audio interval and a recorded set of analysis parameters.
| Priority | Feature | Direct practical value | Dependency |
|---|---|---|---|
| P0 | Spectral Peak Inspector | Turns the FFT view into a quantitative measurement tool | Existing FFT engine |
| P0 | Reproducible analysis configuration | Makes results comparable and exportable | Central analysis data model |
| P1 | Harmonic grouping and fundamental candidates | Supports music, voice, machinery, and tonal analysis | Reliable peak estimates |
| P1 | Spectral peak tracking over time | Reveals vibrato, drift, sidebands, and sustained tones | Frame-by-frame peak engine |
| P1 | Sinusoidal Model Studio | Provides reconstruction, component solo, mute, and residual analysis | Peak selection and complex FFT data |
| P2 | Short Gap Repair | Repairs brief tonal or voiced dropouts | Stable model, phase continuity, and confidence calculation |
| P2 | Tonal Component Suppressor | Removes hum, whistles, or selected narrowband tracks | Peak tracking and resynthesis |
| P3 | Domain-specific analysis presets | Provides focused workflows for music, voice, machinery, and biomedical research | Validated general analysis engine |
The Spectral Peak Inspector should be the first major Chapter 8 feature. It converts an FFT chart into a measurement instrument.
| Field | Meaning |
|---|---|
| Peak ID | Stable identifier within the analysis result |
| Raw bin | Index of the largest local DFT sample |
| Raw-bin frequency | Frequency represented by the bin center |
| Interpolated frequency | Estimated sub-bin sinusoidal frequency |
| Magnitude | Window-corrected level in dBFS or relative dB |
| Phase | Estimated phase at a clearly defined time reference |
| Prominence | Peak height relative to the local background |
| Estimated SNR | Peak strength relative to a local noise-floor estimate |
| Harmonic candidate | Possible harmonic number and fundamental group |
| Confidence | Combined indicator derived from prominence, fit error, and stability |
Hiding these settings would make copied measurements difficult to reproduce.
Raw-bin frequency and interpolated frequency should never be merged into one unlabeled value. The distinction teaches the correct interpretation and prevents false precision.
A harmonic-grouping engine should examine whether several peaks can be explained by integer multiples of one candidate fundamental frequency.
The output should not be limited to one definitive pitch. A ranked set of candidates is more reliable:
A fundamental frequency may be weak or absent while higher harmonics remain visible. The grouping engine should permit a candidate fundamental that does not correspond to the strongest measured peak.
This is important for small loudspeakers, telephone-band speech, certain musical recordings, and noisy measurements.
The spectrum view should provide a logarithmic-frequency mode with optional musical-note labels. Harmonic groups can then be drawn as related markers or templates.
The logarithmic view is not merely decorative. It makes frequency ratios and pitch-related scaling easier to inspect.
Frame-by-frame peaks should be connected into tracks according to frequency continuity, amplitude continuity, and harmonic-group consistency.
Each track can contain:
A useful view is a spectrogram with colored or labeled peak tracks overlaid. Selecting a track should display its frequency and amplitude trajectories in a synchronized panel.
This feature directly supports:
The Sinusoidal Model Studio should implement the practical meaning of Section 8.2. It should allow selected peaks or tracks to be fitted jointly and converted into an audible model.
| Panel | Purpose |
|---|---|
| Observed spectrum | Shows the measured complex-spectrum magnitude |
| Component templates | Shows the spectral contribution of each fitted sinusoid |
| Summed model | Shows the total modeled spectrum |
| Spectral residual | Shows unexplained frequency-domain structure |
| Waveform comparison | Overlays original and reconstructed samples |
| Residual waveform | Reveals transients and unmodeled texture |
A single reconstruction-error number is insufficient. The following indicators are more informative when shown together:
Model edits should remain non-destructive. The original audio should remain unchanged, while model parameters and rendered previews are stored separately.
This is particularly important for research, medical, archival, and forensic workflows.
Short Gap Repair is the most practical application of Section 8.3. It should repair brief missing or damaged regions when the surrounding sound contains stable tonal or voiced components.
The feature should not attempt every repair silently. Before rendering, it should assess:
A clear status can then be reported:
The interface should display gap duration in milliseconds and in cycles of the estimated fundamental frequency. A ten-millisecond gap has a very different meaning at 50 Hz and at 1,000 Hz.
Repair confidence should decline with the accumulated phase uncertainty of the selected tracks.
Short Gap Repair should not be marketed as a universal restoration system. It is most useful for:
It is less suitable for drum attacks, crackles, consonant bursts, or rapidly changing pitch.
A phase-aware tonal suppressor has immediate value in ordinary audio work. It can target power-line hum, electronic whistles, feedback tones, or slowly drifting narrowband interference.
A fixed notch filter removes a frequency band throughout the selected interval. A tracked sinusoidal suppressor can follow a slowly changing tone and may preserve more neighboring content.
A notch filter remains preferable when the interference is broad, unstable, or difficult to estimate phase-continuously.
| Area | Recommended content |
|---|---|
| Top toolbar | Frame duration, window, FFT size, overlap, channel, and frequency-axis controls |
| Upper main panel | Waveform or spectrogram with selection and track overlays |
| Lower main panel | Spectrum with raw bins, interpolated peaks, harmonic guides, and model fit |
| Right inspector | Peak table, harmonic groups, track properties, and confidence indicators |
| Bottom comparison strip | Original, model, residual, processed, and predicted playback controls |
Instant A/B switching is more useful than relying only on visual graphs.
Confidence should be decomposed rather than presented as an unexplained percentage.
| Confidence component | Meaning |
|---|---|
| Peak confidence | Prominence and local signal-to-noise relationship |
| Frequency confidence | Sharpness and consistency of the interpolated estimate |
| Harmonic confidence | Agreement with a harmonic template |
| Track confidence | Continuity across neighboring frames |
| Model confidence | Residual level and matrix stability |
| Prediction confidence | Model stability adjusted for extension duration |
Predicted or repaired samples should remain visually distinct from recorded samples. A waveform extension can use a dashed boundary, shaded region, or explicit “Generated” label.
Research exports should record the exact interval that was generated or modified.
Signal-processing algorithms should reside in a testable DSP layer independent of the graphical interface. The interface should request analysis and display structured results rather than calculate spectral parameters directly.
A practical pipeline is:
Audio source → frame extraction → windowing → FFT → peak detection → interpolation → harmonic grouping → tracking → CLSM fitting → resynthesis → residual or repair
| Data object | Recommended contents |
|---|---|
AnalysisConfig |
Sample rate, channel policy, frame length, window, FFT size, thresholds, and algorithm versions |
FrameSpectrum |
Frame time, complex bins, magnitude scale, and noise-floor estimate |
SpectralPeak |
Raw bin, interpolated frequency, amplitude, phase, prominence, and confidence |
HarmonicGroup |
Fundamental candidate, matched harmonics, score, and unmatched peaks |
SinusoidalTrack |
Time-indexed frequency, amplitude, phase, and continuity state |
ModelFit |
Selected components, solver status, coefficients, residual metrics, and reconstruction |
RepairRegion |
Gap boundaries, source frames, generated samples, confidence, and processing history |
Changing a display option should not trigger complete reanalysis. Results should be cached by audio identity, selected interval, and analysis configuration.
The dependency chain should permit selective recomputation:
Long-file spectrogram calculation, frame-by-frame tracking, and resynthesis should run outside the main interface thread. Progress, cancellation, and partial results should be supported.
Correct offline analysis should be completed before attempting a full real-time implementation.
Synthetic signals provide known ground truth and should form the foundation of automated testing.
| Metric | Purpose |
|---|---|
| Frequency error in hertz and DFT-bin units | Evaluates interpolation accuracy across sample rates and frame lengths |
| Amplitude error in decibels | Evaluates window correction and component estimation |
| Phase error | Evaluates reconstruction and boundary continuity |
| Peak precision and recall | Measures false and missed peak candidates |
| Reconstruction error | Measures the agreement between model and observed signal |
| Residual tonal energy | Detects missing modeled components |
| Gap-boundary discontinuity | Evaluates audible repair artifacts |
| Prediction error versus horizon | Shows how rapidly extrapolation loses accuracy |
| Runtime and memory use | Supports practical large-file operation |
Synthetic validation should be followed by carefully labeled real recordings:
Blind listening comparison is valuable for repair and suppression features because a low numerical error does not always correspond to the least objectionable audible result.
Algorithm updates should be tested against fixed reference files and stored expected outputs. Changes in peak frequency, harmonic grouping, reconstruction error, or generated samples should be reviewed explicitly.
This phase delivers immediate value without requiring signal reconstruction.
This phase turns isolated measurements into time-varying acoustic features.
This phase should be considered complete only when the residual is both visible and audible.
Domain presets should reuse the same validated DSP engine rather than creating unrelated algorithms for each interface mode.
A visually impressive prediction feature built on unstable frequency estimates will create audible phase errors and unreliable repairs. Prediction should remain downstream of validated peak and model stages.
Data-driven methods may later assist classification, denoising, or parameter selection. They should not replace a transparent Chapter 8 baseline whose frequency error, reconstruction error, and residual can be measured directly.
Additional color schemes provide limited value compared with selectable peaks, harmonic groups, tracks, residuals, and exportable measurements.
Long prediction intervals magnify frequency error and signal nonstationarity. The initial product should focus on short repair and continuation tasks with clearly displayed confidence.
Spectral components can support research and measurement, but a peak or harmonic pattern alone should not be translated into a diagnostic conclusion. Clinical interpretation requires independently validated evidence and an appropriate regulatory framework.
A system that presents only a reconstructed signal can make an incomplete model appear more successful than it is. Residual inspection should be treated as a core feature rather than an expert-only option.
The strongest development path is to transform nGeneMediaPlayer from a viewer of waveform, FFT, and spectrogram data into a measurable and reversible sinusoidal-analysis workstation.
The first complete workflow should permit an audio interval to be selected, its peaks to be estimated, its harmonic relationships to be inspected, its sinusoidal model to be reconstructed, and its residual to be heard.
Select an interval, inspect interpolated peaks, group harmonics, reconstruct selected components, and switch instantly among the original signal, the sinusoidal model, and the residual.
This milestone is technically achievable, immediately useful, and directly aligned with Sections 8.1 and 8.2. It also creates the reliable foundation required by Section 8.3.
Track selected tonal components across time and permit phase-continuous attenuation, removal, or short-gap reconstruction with an explicit confidence assessment.
This milestone provides direct real-life value through hum removal, whistle suppression, sustained-tone analysis, and brief dropout repair.
Chapter 8 is not simply a collection of techniques for drawing cleaner spectra. It describes a complete progression from raw spectral observation to an interpretable and operational sound model.
Section 8.1 determines which spectral structures matter. Section 8.2 explains those structures through a fitted sinusoidal model. Section 8.3 evaluates how far the model can be extended beyond the data.
For nGeneMediaPlayer, the practical conclusion is equally direct:
The next important step is not another passive visualization. It is an interactive analytical chain that makes spectral peaks measurable, harmonic relationships interpretable, sinusoidal models audible, residuals inspectable, and short repairs reversible.
Written on June 28, 2026
Section 8.1 is best understood as a transition from spectral computation to spectral interpretation. A Discrete Fourier Transform produces a set of spectral samples, but those samples do not directly identify the physical sinusoids contained in a signal. The central task is to determine which peaks are meaningful, where the underlying frequencies are actually located, and how multiple peaks form harmonic or musical structures.
The discussion below follows the conceptual progression indicated by the subsection titles and by standard discrete-time spectral analysis. It is intended as an interpretive guide rather than a reproduction of the book.
The central message of Section 8.1: a DFT peak is not automatically the frequency of a physical sinusoid. Meaningful spectral analysis requires peak detection, sub-bin frequency estimation, separation of multiple components, recognition of harmonic scaling, and analysis of repeated spectral patterns.
An ideal, infinitely long sinusoid has a spectral line at one exact frequency. A practical measurement, however, observes only a finite interval. The observed sinusoid is therefore multiplied by a finite window, and its ideal spectral line is transformed into a broadened spectral shape. The DFT then samples that shape only at regularly spaced frequency bins.
This distinction is fundamental:
A spectral line belongs to the mathematical signal model; a spectral peak belongs to the finite measurement.
Section 8.1 develops the subject in a carefully ordered sequence. It begins with one sinusoid, improves its frequency estimate, extends the method to several sinusoids, organizes harmonics on a logarithmic frequency scale, studies the scaling of harmonic patterns, and finally uses autocorrelation to detect repeated spectral spacing.
| Subsection | Central question | Principal idea | Representative application |
|---|---|---|---|
| 8.1.1 | How does one sinusoid appear in a DFT? | Finite observation and windowing determine the measured peak shape. | Spectrum measurement and leakage analysis |
| 8.1.2 | How can a frequency between DFT bins be estimated? | Neighboring bins are interpolated to obtain a sub-bin estimate. | Musical tuning and rotational-speed estimation |
| 8.1.3 | How can several sinusoids be identified? | Local peaks are selected, refined, validated, and separated. | Polyphonic audio and machinery diagnostics |
| 8.1.4 | How do harmonics appear on a logarithmic frequency scale? | Frequency ratios become spatial intervals, making pitch relations visible. | Musical spectrum displays and pitch analysis |
| 8.1.5 | What remains unchanged when the fundamental frequency changes? | Frequency scaling becomes translation on a logarithmic axis. | Harmonic template matching and transposition analysis |
| 8.1.6 | How can repeated harmonic spacing reveal musical pitch? | Spectral autocorrelation measures regular spacing among partials. | Fundamental-frequency and harmonicity estimation |
Subsection 8.1.1 establishes the relationship between a discrete-time sinusoid and its DFT representation. Before a spectral peak can be selected or interpolated, the shape and location of that peak must be understood.
A real sinusoidal sequence may be written as:
x[n] = A cos(2πf₀n/Fₛ + φ), n = 0, 1, ..., N − 1
Here, A is amplitude, f₀ is the sinusoidal frequency,
Fₛ is the sampling frequency, φ is phase, and
N is the number of observed samples.
The DFT is evaluated at discrete frequency-bin locations:
fₖ = kFₛ/N
The distance between adjacent bins is therefore:
Δf = Fₛ/N
When f₀ exactly coincides with a DFT-bin frequency, the measured
energy can be highly concentrated at the corresponding positive- and
negative-frequency bins. When f₀ lies between bins, its energy
spreads across neighboring bins.
This spreading is commonly called spectral leakage. It is not necessarily evidence of additional physical frequencies. It is often the predictable consequence of observing a sinusoid through a finite window.
The measured peak shape is determined by the spectrum of the chosen window:
Suppose that the bin spacing is 10 Hz and the physical sinusoid is located at 43.7 Hz. The DFT does not contain a bin labeled 43.7 Hz. Its largest sample may appear at 40 Hz, even though no physical 40 Hz sinusoid is present.
The peak bin therefore identifies a frequency neighborhood, not necessarily the exact sinusoidal frequency. This observation motivates the spectral interpolation developed in the following subsection.
The DFT is not a direct list of the sinusoids present in a signal. It is a regularly sampled representation of the spectrum of a finite, windowed sequence. Correct peak interpretation therefore requires knowledge of bin spacing, window response, phase, and observation length.
Subsection 8.1.2 addresses the limitation created by the discrete frequency grid. A sinusoid rarely falls exactly at the center of a DFT bin. Spectral interpolation estimates its position between neighboring bins.
If the largest bin has index kₚ, an interpolated estimate may be
expressed as:
f̂₀ = (kₚ + δ)Fₛ/N
The fractional displacement δ indicates how far the estimated
peak lies from the center of bin kₚ.
The values immediately surrounding a local maximum contain information about the position of the continuous spectral peak. A simple method fits a parabola to the magnitudes of three bins: the peak bin and its two neighbors.
With logarithmic magnitudes
α = log|X[kₚ − 1]|,
β = log|X[kₚ]|, and
γ = log|X[kₚ + 1]|,
a common approximate displacement is:
δ ≈ ½(α − γ)/(α − 2β + γ)
More specialized estimators may use the complex DFT values, the exact window response, phase differences, or a least-squares sinusoidal model. The basic principle remains the same: the surrounding bins describe the portion of the peak that was missed by the DFT grid.
Under suitable conditions, interpolation can improve estimates of:
The largest improvement usually concerns frequency. A DFT with a 10 Hz bin interval may still support a frequency estimate considerably finer than 10 Hz when the sinusoid is isolated, stable, and sufficiently strong.
Zero-padding adds more DFT samples between the original bins and produces a smoother-looking spectrum. This is useful for visualization and numerical interpolation, but it does not create new measured information.
True resolving power is governed primarily by the observation duration, window main-lobe width, signal separation, and noise level. Two overlapping sinusoids cannot necessarily be separated merely by requesting a larger FFT.
Spectral interpolation converts a discrete peak-bin location into an estimate of the underlying continuous frequency. It improves parameter estimation for an isolated sinusoid, but it does not overcome every limitation imposed by short observation time, overlapping components, rapid modulation, or noise.
Subsection 8.1.3 moves from one sinusoid to a compound sequence containing several sinusoidal components:
x[n] = Σ Aₘ cos(2πfₘn/Fₛ + φₘ) + e[n]
The term e[n] may represent noise, transients, modeling error, or
non-sinusoidal content. The task is no longer to refine one peak, but to
determine how many meaningful peaks exist and which sinusoidal parameters
should be assigned to them.
A practical spectral peak-selection procedure commonly includes the following stages:
Each sinusoid creates a window-shaped spectral lobe rather than an isolated point. When two frequencies are close, their lobes overlap. A strong component may then displace, conceal, or deform the peak of a weaker component.
Several failure modes are possible:
Peak selection is often only the first stage of compound sinusoidal estimation. After initial peak locations have been identified, the parameters may be refined jointly through least-squares fitting, iterative subtraction, or other model-based procedures.
Joint estimation is especially useful when neighboring spectral components overlap. Rather than treating every peak independently, the measured spectrum is explained as the sum of several known window responses.
In a compound sequence, a spectral peak is a candidate sinusoidal component, not final proof of one. Reliable estimation requires local peak detection, interpolation, separation rules, noise rejection, and consistency with an overall signal model.
Subsection 8.1.4 changes the viewpoint from isolated spectral peaks to a structured family of peaks. A harmonic sequence has frequencies:
fₘ = mf₀, m = 1, 2, 3, ...
On a linear frequency axis, adjacent harmonics are separated by the constant
difference f₀. On a logarithmic frequency axis, frequency ratios
become spatial distances, which is more closely related to musical pitch
perception.
A convenient logarithmic coordinate is:
u = log₂(f/fᵣₑ𝒻)
In this coordinate:
The logarithmic position of the m-th harmonic becomes:
uₘ = log₂(f₀/fᵣₑ𝒻) + log₂(m)
Harmonics are equally spaced on a linear frequency axis, not on a logarithmic axis. On the logarithmic axis, the distance between adjacent harmonics is:
log₂((m + 1)/m)
This distance becomes progressively smaller as the harmonic number increases. Consequently, low-order harmonics appear widely separated, while high-order harmonics become increasingly compressed.
Octaves, by contrast, remain equally spaced on the logarithmic axis because every octave is defined by the same frequency ratio of two.
A linear spectrum is well suited to physical frequency differences. A logarithmic spectrum is better suited to musical intervals and proportional frequency relationships.
| Property | Linear frequency scale | Logarithmic frequency scale |
|---|---|---|
| Equal visual distance represents | Equal frequency difference | Equal frequency ratio |
| Harmonic spacing | Constant | Compressed at higher harmonic numbers |
| Octave spacing | Increasing with frequency | Constant |
| Natural use | Physical spectral measurement | Pitch, intervals, and transposition |
The logarithmic frequency scale does not make adjacent harmonics equally spaced. Its principal benefit is different: it expresses musical intervals and pitch changes as translations measured by frequency ratios.
Subsection 8.1.5 examines what happens to an entire harmonic spectrum when the
fundamental frequency changes. If the fundamental is multiplied by a factor
a, every harmonic frequency is multiplied by the same factor:
f′ₘ = amf₀
On a linear frequency axis, the harmonic pattern expands or contracts. On a logarithmic axis, the same transformation becomes a simple translation:
u′ₘ = uₘ + log₂(a)
Logarithms transform multiplication into addition. A pitch change that scales all frequencies by the same ratio therefore shifts the entire harmonic pattern by a constant distance.
An octave increase corresponds to a = 2, so every harmonic moves
by exactly one octave on the logarithmic axis. The internal relationship among
corresponding harmonic indices remains unchanged.
A musical tone may be viewed as the interaction of two structures:
Changing pitch translates the harmonic skeleton on a logarithmic scale. Instrument resonances and radiation characteristics may cause the spectral envelope to behave differently. This distinction is important because pitch and timbre are related but not identical.
Real systems do not always produce exact integer harmonics. Possible departures include:
The scaling model is therefore most useful as a structural reference rather than an assumption that every real partial must be perfectly harmonic.
The principal insight is that a change of fundamental frequency scales the entire harmonic spectrum. The logarithmic frequency transformation converts that scaling into translation, making pitch-related pattern comparison much simpler.
Subsection 8.1.6 uses repeated spectral structure to infer the organization of a musical tone. A harmonic spectrum contains peaks near:
f₀, 2f₀, 3f₀, 4f₀, ...
Although the amplitudes may differ, the separation between adjacent harmonics
on a linear frequency axis is approximately f₀. Autocorrelation
measures how well the spectrum aligns with a shifted copy of itself.
Let S[k] represent a spectral magnitude, power, or suitably
processed spectral function. A discrete spectral autocorrelation may be
written conceptually as:
C[ℓ] = Σ S[k]S[k + ℓ]
When the frequency shift represented by ℓ is close to the
fundamental spacing, many harmonic peaks overlap with neighboring harmonic
peaks. The correlation therefore increases.
Additional correlation peaks may occur at multiples of the fundamental
spacing because shifts of 2f₀, 3f₀, and larger
intervals also align subsets of the harmonic sequence.
The physical component at f₀ may be weak or absent. A spectrum
might contain strong components at:
2f₀, 3f₀, 4f₀, 5f₀, ...
The spacing between these components still equals f₀.
Autocorrelation can therefore reveal the fundamental periodicity even when the
fundamental spectral line itself is not dominant.
This explains an important limitation of simple peak selection: the largest spectral peak is not necessarily the perceived or mathematical fundamental.
Two operations should be distinguished:
Both approaches may contribute to pitch analysis, but they organize the problem differently. The first examines spacing among spectral components; the second examines periodic repetition in time.
Raw spectral autocorrelation may be dominated by broad spectral envelopes or a few extremely strong peaks. Practical analysis may therefore include:
Spectral autocorrelation may produce octave errors, subharmonic ambiguities, or false peaks when several unrelated tonal sources are present. Percussive, noisy, or strongly inharmonic sounds may not exhibit a clear harmonic-spacing maximum.
Reliable systems commonly combine autocorrelation with peak strength, harmonic consistency, expected frequency range, and continuity over time.
Autocorrelation changes the question from “Which individual peak is largest?” to “Which frequency spacing best explains the entire collection of peaks?” This provides a more structurally meaningful estimate of musical pitch and harmonic organization.
The subsections are not independent techniques. Together, they form a continuous reasoning process:
The progression is therefore: DFT representation → sub-bin estimation → multiple-peak selection → harmonic organization → logarithmic scaling → fundamental-pattern detection.
A system based on the principles of Section 8.1 may be organized as follows:
| Design choice | Benefit of increasing it | Associated cost or risk |
|---|---|---|
| Frame duration | Finer frequency discrimination | Poorer time localization and greater sensitivity to signal change |
| Window side-lobe suppression | Less masking by strong distant components | Wider main lobe and reduced separation of nearby components |
| FFT zero-padding | Denser spectral samples and smoother interpolation | No improvement in fundamental resolving power |
| Peak threshold | Fewer false detections | Greater risk of missing weak components |
| Minimum peak separation | Fewer duplicate or side-lobe detections | Possible rejection of genuinely close sinusoids |
| Temporal smoothing | More stable frequency tracks | Increased latency and slower response to rapid changes |
| Application area | How Section 8.1 contributes | Typical result |
|---|---|---|
| Musical tuning | Interpolates spectral peaks and evaluates harmonic consistency. | Refined note frequency and tuning deviation |
| Pitch tracking | Combines peak selection with harmonic spacing and autocorrelation. | Fundamental-frequency trajectory over time |
| Music transcription | Groups spectral partials into candidate harmonic sources. | Estimated musical notes and partial structures |
| Audio restoration | Locates stable whistles, hums, and narrowband interference. | Parameters for selective suppression or reconstruction |
| Machine-condition monitoring | Identifies rotational components, harmonics, and modulation sidebands. | Speed estimates and possible fault indicators |
| Electrical power analysis | Measures a fundamental, harmonics, and interharmonic components. | Frequency deviation and harmonic-distortion metrics |
| Telecommunications | Estimates carrier frequencies and separates multiple narrowband tones. | Carrier acquisition and interference characterization |
| Speech analysis | Examines harmonic partials of voiced speech and their common spacing. | Voicing and fundamental-frequency estimates |
| Medical acoustics | Characterizes short-lived narrowband or quasi-periodic components where applicable. | Supplementary acoustic features for heart, respiratory, or biomedical sounds |
Medical, environmental, and transient sounds are not always well represented by stationary sinusoids. In such cases, the analysis must use short frames and should be treated as a local approximation rather than a complete physical model.
Section 8.1 is fundamentally concerned with extracting a compact and physically meaningful sinusoidal description from a finite spectrum. The DFT supplies the measurements, but additional reasoning is required to transform those measurements into estimates of frequency, amplitude, harmonic order, pitch, and structural regularity.
The progression from a single sinusoid to a harmonic musical tone also illustrates a broader signal-processing principle. Individual spectral peaks become more useful when interpreted as members of an organized model. Interpolation provides precision, compound peak selection provides multiplicity, logarithmic frequency provides proportional structure, and autocorrelation provides evidence of a shared fundamental spacing.
In practical terms, Section 8.1 explains how to move from “there is a peak in the FFT” to “this signal contains a particular sinusoidal and harmonic structure.”
Written on June 28, 2026
Chapter 8.2 of Mikio Tohyama's Waveform Analysis of Sound moves from finding spectral peaks to constructing a mathematical model from those peaks. The sequence of subsection titles may be understood through the standard framework of discrete-time spectral analysis presented below.
The central idea of Chapter 8.2 is that a finite-length sinusoid does not appear as a single isolated point in a computed spectrum. It appears as a cluster of neighboring spectral samples. CLSM models those clusters jointly so that the frequencies, amplitudes, and phases of the underlying sinusoidal components can be estimated more accurately.
| Subsection | Central question | Main result |
|---|---|---|
| 8.2.1 | How does a finite, windowed sinusoid appear in a DFT spectrum? | A sinusoidal line becomes a recognizable cluster shaped by the analysis window. |
| 8.2.2 | How can several overlapping spectral clusters be expressed as one model? | The observed spectrum is represented as a sum of shifted window-spectrum templates. |
| 8.2.3 | How can the unknown model coefficients be determined? | Least-squares estimation finds the amplitudes and phases that minimize the modeling error. |
| 8.2.4 | How does the model behave with actual spectral data? | Examples compare the observed spectrum, modeled components, reconstructed signal, and residual. |
Section 8.1 is primarily concerned with locating meaningful peaks in a spectrum. Section 8.2 takes the next step. Instead of treating each detected peak merely as a coordinate on an FFT display, it attempts to explain the observed spectrum as the result of a finite set of sinusoidal components.
The conceptual progression is therefore:
Observed waveform → DFT spectrum → selected spectral peaks → clustered spectral model → reconstructed signal
This is a transition from descriptive analysis to parametric modeling. A spectrum is no longer regarded only as a picture. It becomes data from which a compact mathematical description of the sound can be estimated.
The term line spectrum refers to the ideal spectral representation of a sinusoid. An infinitely long sinusoid has energy concentrated at one frequency, or at a positive-negative frequency pair when the signal is real-valued.
A practical recording, however, contains only a finite observation interval. Multiplying the sinusoid by a finite window spreads its spectral contribution across several neighboring DFT bins. The resulting group of spectral samples forms a cluster.
| Term | Meaning |
|---|---|
| Line | An ideal sinusoidal frequency component |
| Spectral sequence | The discrete frequency samples produced by the DFT |
| Cluster | A group of adjacent DFT samples produced by one or more nearby sinusoidal lines |
| Modeling | Fitting theoretical spectral shapes to the measured spectral sequence |
CLSM may therefore be summarized as a method for fitting several line-spectrum components to a local region of an observed spectrum while accounting for the spreading caused by finite observation and windowing.
A single isolated sinusoid can often be estimated from one dominant peak and its neighboring bins. Real sounds commonly contain several nearby components, however. Their main lobes and sidelobes can overlap.
In such a case, the value of one spectral bin is not produced by only one sinusoid. It may contain contributions from several components. Estimating each peak independently can therefore produce biased amplitudes, phases, or frequencies.
CLSM treats the neighboring components as a simultaneous system. Each candidate sinusoid contributes a known spectral shape, while its complex amplitude remains unknown. All unknown contributions are estimated together.
The model is most appropriate when a short analysis frame can reasonably be described as a sum of stable or slowly varying sinusoids plus a residual:
x[n] ≈ sinusoidal components + unmodeled residual
The method is particularly suitable for tonal and quasi-periodic signals. It is less complete for strongly transient, rapidly changing, impulsive, or broadband-noise signals unless those signals are divided into sufficiently short frames or supplemented with another model.
This subsection provides the spectral building block required by CLSM. Before several sinusoidal components can be fitted, the spectral appearance of one finite-length sinusoid must be understood.
Consider a sinusoidal sequence:
s[n] = A cos(ω0n + φ)
A practical analysis does not observe this sequence from negative infinity to positive infinity. Only a finite segment is retained by multiplying it by a window:
x[n] = w[n]s[n]
This multiplication in the time domain causes spreading in the frequency domain. Consequently, the DFT does not generally contain one nonzero bin. It contains a sequence of values distributed around the sinusoidal frequency.
For a complex sinusoid, the spectral relationship can be expressed conceptually as:
X[k] = cW(ωk − ω0)
Here, W is the frequency response of the selected window, ω0 is the
sinusoidal frequency, and c is a complex coefficient containing amplitude and phase information.
This expression means that the spectral cluster around a sinusoid is not arbitrary. Its shape is a shifted and scaled version of the window spectrum. For a real sinusoid, corresponding positive- and negative-frequency copies occur because of conjugate symmetry.
When a complex sinusoid falls exactly on a DFT-bin frequency and a rectangular window is used under coherent sampling, its energy can be concentrated in one DFT bin. When the frequency lies between bins, energy spreads across neighboring bins. This spreading is commonly called spectral leakage.
Leakage does not mean that several physical frequencies necessarily exist. A single physical sinusoid can produce many nonzero DFT samples because the observation interval is finite.
| Spectral observation | Possible cause | Interpretive consequence |
|---|---|---|
| One narrow dominant region | A sinusoid near a DFT-bin center | The frequency may be estimated from a compact cluster. |
| Energy spread over many bins | An off-bin sinusoid or a window with substantial sidelobes | The neighboring bins should not automatically be interpreted as separate tones. |
| A weak peak beside a strong peak | A second sinusoid or leakage from the stronger sinusoid | A joint model may be required to distinguish the two possibilities. |
| A broad peak that changes over time | Frequency modulation, damping, or nonstationarity | A stationary sinusoidal model may be only an approximation. |
The selected window controls the shape of each spectral cluster. A rectangular window has a relatively narrow main lobe but comparatively high sidelobes. A Hann-type window has lower sidelobes but a wider main lobe.
This creates a practical trade-off:
CLSM must use the same window response that produced the observed spectrum. Otherwise, the theoretical cluster shape will not match the measured cluster shape.
The following graph illustrates the DFT samples of a sinusoid located between two DFT bins. Both curves represent the same sinusoidal frequency. The different cluster shapes arise from the selected windows.
This subsection explains why a tuner, spectrum analyzer, machinery monitor, or acoustic measurement system should not simply select the largest FFT bin and ignore the surrounding values. The neighboring values contain information about the true off-bin frequency, amplitude, phase, and window response.
Practical applications include:
After deriving the spectral pattern of one windowed sinusoid, this subsection combines several such patterns into a single model. The observed spectral cluster is expressed as the superposition of multiple shifted window responses.
A short signal frame may be represented conceptually as:
x[n] = Σ cmejωmn + r[n]
The corresponding local spectral model becomes:
Y[k] ≈ Σ cmW(ωk − ωm) + E[k]
Each sinusoidal component contributes a shifted copy of the window spectrum. The measured spectrum is the sum of those copies plus a residual term.
The selected DFT samples can be arranged into a vector, producing the compact system:
y = Hc + e
| Symbol | Mathematical role | Physical interpretation |
|---|---|---|
y |
Observed spectral vector | The measured complex DFT values within the selected cluster |
H |
Model or basis matrix | Window-spectrum templates evaluated at the candidate frequencies |
c |
Unknown coefficient vector | The complex amplitudes of the modeled sinusoidal components |
e |
Residual vector | Noise, broadband energy, transients, and model mismatch |
Each column of H describes how one candidate sinusoid should appear across the selected DFT bins.
Solving for c determines how strongly each candidate component contributes to the measured
spectrum.
A sinusoidal component contains three principal parameters:
The complex coefficient can be written as:
cm = Amejφm
Its magnitude represents amplitude, while its argument represents phase. For a real-valued signal, the positive- and negative-frequency coefficients must satisfy conjugate symmetry, or the model may instead be formulated with cosine and sine basis functions.
The linear matrix model assumes that the candidate frequencies are already known or provisionally estimated. Such frequency estimates can be supplied by spectral peak selection and spectral interpolation from Section 8.1.
With frequencies fixed, the model is linear in the unknown amplitudes and phases. If the frequencies must also be optimized, the complete problem becomes nonlinear and may require iterative frequency refinement.
This distinction is important. Least-squares estimation provides a direct linear solution for the coefficients, but it does not automatically guarantee that the initially selected frequencies are correct.
The shape of a spectral cluster carries more information than its largest bin alone. Several neighboring DFT values jointly indicate how far the true frequency lies from the bin center and how the component interacts with nearby components.
Fitting a complete cluster can therefore provide:
Suppose that two nearby musical partials, mechanical sidebands, or electrical interharmonics produce overlapping spectral lobes. Independent peak measurements may assign part of the first component's leakage to the second component. CLSM instead asks which combination of two theoretical cluster shapes best explains the complete local spectrum.
This joint formulation is especially useful when a strong tonal component is located near a weaker one.
Once the model y = Hc + e has been formulated, the unknown coefficient vector
c must be estimated. The measured spectral vector will rarely match the model perfectly because of
noise, unmodeled components, finite precision, and imperfect frequency estimates.
A least-squares estimate selects the coefficients that minimize the total squared modeling error:
ĉ = arg minc ‖y − Hc‖2
In plain terms, the selected amplitudes and phases make the modeled spectrum as close as possible to the observed spectrum in an overall squared-error sense.
The least-squares condition produces the simultaneous normal equations:
HHHĉ = HHy
Here, HH denotes the complex conjugate transpose of the model matrix. When the columns
of H are independent, the conceptual closed-form expression is:
ĉ = (HHH)−1HHy
In numerical implementations, direct matrix inversion is generally less desirable than QR decomposition, singular-value decomposition, or a numerically stable pseudoinverse.
Each observed DFT bin may contain contributions from every modeled sinusoid. The amplitude of one component therefore cannot always be determined without considering the others.
The simultaneous solution distributes the observed spectral values among the modeled components according to their expected window-spectrum shapes. This is the main advantage over estimating each peak independently.
A simple analogy is the separation of overlapping shadows. When the shape produced by each source is known, the contribution of each source can be estimated from the total observed pattern.
After the coefficients have been estimated, the residual is:
ê = y − Hĉ
The residual should not automatically be regarded as useless noise. It may contain:
Residual analysis helps determine whether the chosen sinusoidal model is adequate or whether additional components or a different signal model are required.
| Condition | Possible effect | Practical response |
|---|---|---|
| Two frequencies are extremely close | Model columns become similar and the solution becomes ill-conditioned. | Use a longer frame, reduce model order, or apply stable regularized estimation. |
| Candidate frequencies are inaccurate | Amplitude and phase estimates become biased. | Refine the frequencies iteratively or improve spectral interpolation. |
| The frame is strongly nonstationary | One fixed sinusoid cannot represent the entire frame. | Use shorter frames or a time-varying model. |
| Too many components are included | The model may fit noise and become unstable. | Apply model-order selection and inspect the residual. |
| Too few components are included | Structured tonal energy remains in the residual. | Add only components supported by meaningful spectral evidence. |
| The wrong window response is modeled | The theoretical cluster shape does not match the measured cluster. | Construct the basis matrix from the actual analysis window. |
The following graph illustrates a short signal containing two modeled sinusoidal components and a smaller unmodeled component. The least-squares reconstruction uses cosine and sine basis functions at the two selected frequencies. The residual represents the part not explained by the selected model.
The LSE stage converts the spectral model into estimated numerical parameters. Once the complex coefficients have been obtained, the individual components can be inspected, compared, modified, resynthesized, or removed.
This supports applications such as tonal-component measurement, additive resynthesis, harmonic tracking, sinusoidal coding, and model-based separation of tonal and residual energy.
The examples provide evidence that the preceding model is operational rather than merely theoretical. They show how an observed spectral sequence can be represented by a set of modeled line components and how well the resulting sum reproduces the measured data.
A typical example can be read through the following elements:
In the simplest case, one sinusoid produces one local spectral cluster. The example demonstrates that the complete cluster can be explained by a shifted and scaled window response.
The main lesson is that several adjacent nonzero DFT bins do not necessarily indicate several physical tones. They may be the spectral footprint of one off-bin sinusoid.
A more demanding example contains multiple sinusoidal components whose spectral clusters overlap. A weak component may be partly hidden by the main lobe or sidelobes of a stronger component.
Joint modeling attempts to separate their contributions by fitting all component templates simultaneously. Successful separation appears as a close match between the summed model and the observed spectral sequence, together with a residual that lacks obvious tonal structure.
A musical or voiced sound may contain a fundamental frequency and several approximately integer-related harmonics. Each harmonic produces its own spectral cluster. CLSM estimates the complex amplitude associated with each component.
The resulting harmonic parameter set can describe:
When broadband noise or transient energy is present, the modeled sinusoidal components explain only part of the spectrum. The remaining energy appears in the residual.
A useful result is not necessarily a residual of exactly zero. An excessively flexible model can force the residual downward by fitting noise. A more meaningful model often contains a modest number of physically interpretable sinusoidal components and leaves unrelated broadband energy in the residual.
| Evaluation item | Question |
|---|---|
| Spectral agreement | Does the modeled cluster follow both the magnitude and complex structure of the measured cluster? |
| Residual structure | Does the residual contain additional peaks that suggest missing components? |
| Parameter stability | Do the estimated frequencies and coefficients remain stable across adjacent frames? |
| Conditioning | Are the candidate components sufficiently distinct for reliable estimation? |
| Physical plausibility | Do the estimated components correspond to plausible harmonics, modes, or sidebands? |
| Time-domain reconstruction | Does resynthesis preserve the significant waveform structure and perceived tonal content? |
| Step | Subsection | Role in the complete method |
|---|---|---|
| Establish the basis shape | 8.2.1 | Derive how one windowed sinusoid appears across the DFT bins. |
| Construct the multi-component model | 8.2.2 | Represent an observed cluster as the sum of several shifted window responses. |
| Estimate the unknown coefficients | 8.2.3 | Use least squares to determine the amplitudes and phases jointly. |
| Validate the method | 8.2.4 | Compare measured data, modeled components, reconstruction, and residual. |
Section 8.2 first determines the spectral shape produced by one finite sinusoid, then combines several such shapes, solves for their contributions by least squares, and finally examines how accurately the resulting model explains actual spectral data.
A sustained musical tone can often be approximated over a short interval by a fundamental and a set of harmonics. CLSM can estimate the amplitude and phase of those components more systematically than reading individual FFT-bin heights.
Possible uses include harmonic analysis, additive synthesis, instrument comparison, pitch-dependent timbre measurement, and tracking changes in partial amplitudes during a sustained note.
Short voiced-speech frames contain approximately periodic excitation and harmonic spectral components. A clustered line model can represent the harmonic part of such a frame, while frication, aspiration, transients, and other nonharmonic energy remain in the residual.
Possible uses include harmonic tracking, voice-quality analysis, parametric speech representation, and separation of periodic and aperiodic components.
Rotating machinery often produces tonal components at shaft frequency, blade-pass frequency, gear-mesh frequency, and related sidebands. Closely spaced sidebands can overlap in a finite-length FFT.
CLSM can assist in estimating the strengths of those components jointly, supporting the observation of imbalance, modulation, looseness, or other repetitive mechanical behavior. The model remains an analytical aid rather than an automatic fault diagnosis.
Voltage and current waveforms may contain fundamental, harmonic, and interharmonic components. When a component does not align exactly with a DFT bin, leakage can distort neighboring measurements.
A window-aware line spectral model can help estimate the underlying components while accounting for their spectral spreading and overlap.
Rooms, structures, musical instruments, and mechanical systems can exhibit identifiable resonant components. Over a suitable interval, those components may be approximated by sinusoidal or slowly varying modal terms.
CLSM can support frequency, amplitude, and phase estimation when several resonant contributions appear within a limited spectral region. Strong damping or rapid decay may require an exponentially damped sinusoidal model rather than a purely stationary one.
Portions of heart, vascular, respiratory, or other physiological sounds may contain periodic or quasi-tonal components. A clustered line model can be used to quantify such components and separate them from a residual broadband contribution.
Many biomedical sounds are strongly nonstationary and stochastic. CLSM may therefore serve as one feature extraction method within a broader analysis, but the fitted lines should not be treated as a complete physiological or diagnostic explanation.
A tonal frame can be represented compactly by frequencies, amplitudes, and phases instead of by every waveform sample. The estimated parameters can later be used for additive resynthesis.
This principle is relevant to sinusoidal and parametric audio coding. CLSM itself is a modeling procedure, however, and does not by itself constitute a complete audio codec. A complete system must also address frame transitions, transients, residual coding, perceptual allocation, and parameter quantization.
Once tonal components have been estimated, they can be reconstructed separately from the residual. This allows selected components to be retained, attenuated, removed, or modified.
Such processing can support hum removal, tonal interference suppression, harmonic enhancement, or isolated component inspection. Care is required because a desired sound may also contain broadband or transient energy that a sinusoidal model does not preserve.
Peak picking reports local maxima. CLSM explains the surrounding complex spectral samples as a combination of windowed sinusoidal components. It therefore estimates a structured model rather than merely producing a list of large bins.
Model-based fitting can improve parameter estimation when the assumed model is appropriate, but it does not abolish the information limits imposed by record length, noise, frequency separation, and nonstationarity. Extremely close components can remain difficult or unstable to distinguish.
Adding more components will usually reduce the least-squares error. An unnecessarily large model can fit noise and lose physical interpretability. Model quality should therefore be judged by residual structure, parameter stability, numerical conditioning, and practical meaning, not solely by the smallest numerical error.
Least squares estimates amplitudes and phases efficiently when the candidate frequencies are reliable. Frequency errors alter the modeled cluster shape and can contaminate all coefficient estimates. Spectral peak selection and interpolation from Section 8.1 therefore remain essential inputs to Section 8.2.
Real sound changes over time. Practical systems commonly divide a signal into overlapping short frames, apply a window to each frame, estimate a local sinusoidal model, and track the parameters across frames.
The frame should be long enough to distinguish relevant frequencies but short enough that the sinusoidal parameters remain approximately stable within that frame.
A finite sinusoid leaves a window-shaped cluster across the DFT bins. When several sinusoidal components are present, their clusters overlap. CLSM represents the measured cluster as the sum of those theoretical shapes and uses least-squares estimation to determine the contribution of each component.
Section 8.1 asks which spectral peaks are significant. Section 8.2 asks how those peaks and their neighboring spectral values can be represented by a coherent sinusoidal model. The resulting model can then support later tasks such as reconstruction, parameter tracking, prediction, classification, or component modification.
In that sense, Chapter 8.2 is the point at which an FFT display becomes a quantitative model of the underlying sound.
Written on June 28, 2026
Chapter 8.3 considers what becomes possible after the important spectral peaks of a signal have been identified and represented by a sinusoidal model. Its principal subject is the use of estimated frequencies, amplitudes, and phases to calculate a signal beyond the interval in which it was originally observed.
The central message of Chapter 8.3 is that a compound sinusoidal sequence can be continued outside its observation interval when its sinusoidal parameters have been estimated with sufficient accuracy and remain reasonably stable.
The word prediction in this context primarily refers to deterministic model extension. It does not mean that an unexpected musical attack, a sudden mechanical impact, or an unforeseen change in human behavior can be anticipated. It means that an estimated sinusoidal model can be evaluated at sample positions lying before or after the observed record.
| Subsection | Central question | Main conclusion |
|---|---|---|
| 8.3.1 | What kind of mathematical sequence is produced by several sinusoids? | A compound sinusoidal sequence may be exactly periodic or almost periodic, depending on the relationships among its frequencies. |
| 8.3.2 | How is the sequence represented in the frequency domain? | Each sinusoidal component corresponds to a spectral line whose complex coefficient contains amplitude and phase information. |
| 8.3.3 | How can selected spectral peaks be used outside the observation interval? | Estimated sinusoidal parameters are substituted into the model at unobserved sample positions to produce a forward or backward extension. |
The three major sections of Chapter 8 form a natural progression:
Spectral peak selection → clustered line spectral modeling → prediction outside the observation interval
Section 8.1 identifies meaningful spectral components. Section 8.2 models the spectral clusters created by those components. Section 8.3 uses the resulting parameter estimates to calculate signal values that were not directly observed.
This final stage changes the role of the sinusoidal representation. The model is no longer used only to describe an existing waveform. It becomes a generator capable of reproducing, extending, or reconstructing the modeled part of that waveform.
A real compound sinusoidal sequence may be written in the following form:
x[n] = Σ Am cos(ωmn + φm)
Each component is determined by three principal parameters:
If these parameters are known, the expression can be evaluated for any integer sample index. The same formula applies inside and outside the original observation interval.
When the available record contains samples from n = 0 through n = N − 1, the model
can be evaluated for:
n ≥ N for forward extension,
n < 0 for backward extension,
Model extension assumes that the estimated sinusoidal structure remains valid beyond the observation boundary. In its simplest form, the model assumes that frequency, amplitude, and phase progression remain unchanged.
This assumption is most reasonable for a short extension of a stable tonal or quasi-periodic signal. It becomes progressively less reliable when the signal contains changing pitch, changing amplitude, damping, modulation, transients, or broadband noise.
| Model assumption | Signals that approximately satisfy it | Signals that often violate it |
|---|---|---|
| Stable frequency | Sustained musical tone, steady machine rotation, stable electrical tone | Glissando, accelerating machine, rapidly changing vocal pitch |
| Stable amplitude | Steady-state tonal segment | Attack, decay, fading, amplitude modulation |
| Continuous phase progression | Uninterrupted oscillator or harmonic component | Phase reset, discontinuity, impulsive event |
| Limited broadband energy | Predominantly tonal signal | Wind noise, frication, percussion, crackle, impact noise |
The extension generated by a sinusoidal model represents what the signal would become if the estimated oscillatory components continued according to the model. It cannot predict a new event that is absent from the observation.
A model fitted to a sustained piano tone can continue its estimated partials. It cannot know when another key will be struck. A model fitted to a rotating machine can continue its current tones. It cannot independently foresee an unexpected collision or abrupt load change.
Chapter 8.3 is therefore best understood as a study of model-based extrapolation, rather than as a general theory of future-event prediction.
This subsection explains the mathematical character of a sequence formed by adding several sinusoids. The resulting sequence can possess a strong repetitive structure even when it does not repeat exactly after one finite period.
In complex notation, a compound sinusoidal sequence can be expressed as:
x[n] = Σ cmejωmn
A real-valued sequence is obtained by arranging the complex components in conjugate pairs, or equivalently by expressing the sequence as a sum of cosines with amplitudes and phases.
A discrete-time sinusoid is periodic only when its normalized angular frequency has a rational relationship to
2π. A period N must satisfy:
ωN = 2πq
where N and q are integers. Equivalently, ω / 2π must be rational.
For example, a sequence with angular frequency ω = 2π / 32 repeats every 32 samples. A sequence
whose normalized frequency is irrational has no finite exact period.
A sum of several periodic sinusoids is periodic only when a common integer period exists for every component. The component frequencies must therefore be mutually commensurate.
Consider:
x[n] = cos(2πn / 32) + 0.5 cos(2πn / 8)
Both components repeat after 32 samples, so the complete sequence is periodic with a period of 32 samples.
By contrast, when one component has a frequency involving an irrational ratio, no finite sample shift makes every component return to exactly the same phase at the same time.
A finite sum of sinusoids with arbitrary frequencies belongs to the class of almost periodic functions or sequences. Such a signal may lack one exact global period, yet it repeatedly returns arbitrarily close to earlier patterns.
A periodic sequence repeats exactly after one fixed shift. An almost periodic sequence may not possess one exact period, but sufficiently similar configurations recur throughout the sequence.
The term almost periodic has a specific mathematical meaning. It should not be interpreted merely as a casually irregular periodic signal. A finite trigonometric sum remains highly structured because each component follows a deterministic phase progression.
| Signal type | Defining characteristic | Typical interpretation |
|---|---|---|
| Periodic | An exact finite period exists. | The complete waveform repeats without change. |
| Almost periodic | No single exact period may exist, but closely recurring patterns occur. | Several stable sinusoids have noncommensurate frequencies. |
| Quasi-periodic in engineering usage | Several oscillatory processes coexist, often with incommensurate frequencies. | The term is frequently used informally for behavior related to almost periodicity. |
| Time-varying oscillatory | Frequency, amplitude, or phase behavior changes over time. | A fixed compound sinusoidal model is only locally valid. |
| Stochastic or broadband | No small fixed set of spectral lines adequately explains the signal. | A sinusoidal model captures only a limited portion of the data. |
Almost periodicity provides the structural basis for model extension. Even without one exact global period, every sinusoidal component has a completely determined phase progression once its frequency and initial phase are known.
Prediction therefore does not require the entire waveform to repeat as one block. Each component can be individually continued:
φm[n + h] = φm[n] + ωmh
The extended compound sequence is obtained by adding the individually continued components. This is more flexible than copying and repeating a waveform segment.
| Application | Almost-periodic structure | Practical qualification |
|---|---|---|
| Sustained musical tone | Fundamental and partials continue with related or slightly inharmonic frequencies. | Amplitude decay and vibrato may require time-varying parameters. |
| Voiced speech | Harmonics arise from approximately repetitive vocal-fold excitation. | The model is normally valid only over short voiced frames. |
| Rotating machinery | Shaft tones, harmonics, and modulation sidebands form a line-spectral pattern. | Speed variation changes the component frequencies. |
| Electrical waveform | Fundamental, harmonics, and interharmonics create a compound oscillatory sequence. | Frequency drift and switching events may violate stationarity. |
| Tonal respiratory sound | A sustained wheeze may contain one or more narrowband oscillatory components. | Broadband breath noise and short crackles require different models. |
This subsection expresses the same compound sinusoidal sequence in the frequency domain. A sinusoidal component that appears as an oscillation in time corresponds to a spectral line at its frequency.
The time-domain representation:
x[n] = Σ cmejωmn
corresponds conceptually to a discrete line spectrum:
S(ω) = Σ cmδ(ω − ωm)
The spectral function records which frequencies are present and assigns a complex coefficient to each frequency.
An ideal sinusoid of infinite duration concentrates its spectral contribution at one frequency in a complex representation. A real cosine produces a conjugate pair of lines at positive and negative frequencies.
Each spectral line represents one deterministic oscillatory component. The line position indicates frequency, while the associated complex coefficient contains amplitude and phase.
| Spectral property | Time-domain meaning | Importance for extension |
|---|---|---|
| Line position | Sinusoidal frequency | Determines the future rate of phase progression. |
| Line magnitude | Component amplitude | Determines the strength of the extended component. |
| Line phase | Time alignment of the sinusoid | Determines whether the extended waveform joins continuously at the boundary. |
| Relationship among lines | Harmonics, inharmonic partials, or modulation sidebands | Determines the structure of the extended compound waveform. |
Two sinusoids can have the same frequency and amplitude but different phases:
x1[n] = A cos(ωn)
x2[n] = A cos(ωn + π / 2)
Their magnitude spectra are identical, but their sample values differ. A prediction based only on spectral magnitude cannot determine the correct waveform at the observation boundary.
Phase information is therefore essential for time-domain reconstruction and extrapolation. Incorrect phase produces discontinuity, waveform displacement, or audible clicking when the predicted segment is joined to the observed segment.
For a real-valued signal, a positive-frequency component is accompanied by a corresponding negative-frequency component. Their complex coefficients form a conjugate pair.
This symmetry ensures that the inverse spectral representation produces real sample values. A model that neglects the required conjugate relationship may generate a complex-valued sequence that does not correspond to the original physical waveform.
An ideal spectral function describes an indefinitely long sinusoidal sequence. An actual measurement contains only a finite interval. The observed sequence can be written as:
y[n] = w[n]x[n]
where w[n] is the observation window. In the frequency domain, each ideal spectral line is
transformed into a shifted copy of the window spectrum:
Y(ω) = Σ cmW(ω − ωm)
Consequently, a measured DFT normally displays clusters of neighboring values rather than infinitely narrow lines. The underlying line frequencies must be inferred from those clusters.
Section 8.2 provides the method for estimating the line components hidden within overlapping window-shaped clusters. Section 8.3 uses the estimated line parameters as the basis of prediction.
The connection can be summarized as:
Finite spectral cluster → estimated ideal spectral lines → extended sinusoidal sequence
This relationship is central to the chapter. The observed DFT is not directly repeated outside the observation interval. Instead, the ideal sinusoidal components inferred from the DFT are continued.
A long waveform may contain thousands of samples, while its stable tonal portion may be described by a much smaller set of spectral parameters:
{Am, ωm, φm} for m = 1, 2, ..., M
This compact representation is useful for analysis, resynthesis, transmission, editing, and prediction. Its effectiveness depends on whether the signal is genuinely dominated by a limited number of sinusoidal components.
This subsection describes the operational step of selecting spectral peaks, estimating the corresponding sinusoidal parameters, and using those parameters to calculate the sequence beyond its measured boundaries.
Spectral peak selection determines which sinusoidal components will be allowed to continue. Parameter estimation determines how those components will continue.
A typical procedure may be organized as follows:
When the estimated parameters are denoted by a circumflex, the extended sequence is:
x̂[n] = Σ Âm cos(ω̂mn + φ̂m)
The same expression can be evaluated for observed and unobserved sample positions. The observation boundary does not appear in the sinusoidal formula itself. It merely marks where measured data end and model-generated values begin.
Forward extension evaluates the estimated model after the last observed sample. Backward extension evaluates it before the first observed sample.
| Extension type | Sample region | Typical purpose |
|---|---|---|
| Forward extrapolation | n ≥ N |
Short-term continuation, packet-loss concealment, or predictive monitoring |
| Backward extrapolation | n < 0 |
Boundary reconstruction or extension before a recorded segment |
| Two-sided gap reconstruction | An unobserved interval between two observed regions | Audio dropout repair using information from both sides |
Two-sided gap reconstruction is related to the same sinusoidal principles, although it is not identical to one-sided extension. Information from both boundaries can be used to constrain phase, amplitude, and continuity.
Every selected peak becomes a component of the prediction model. A missing true component leaves structured energy unexplained. A false peak introduces an oscillation that does not belong to the underlying signal.
The model order must therefore be chosen carefully:
A predicted segment should join the observed waveform without an artificial jump. Proper phase estimation is the principal requirement, but additional boundary treatment may also be beneficial.
Common boundary considerations include:
Crossfading can hide a small boundary mismatch, but it cannot correct a fundamentally inaccurate frequency model over a long extension.
The following graph illustrates a compound sinusoidal sequence observed over a finite interval. The model extension begins at the observation boundary. A small frequency-estimation error causes the predicted waveform to depart gradually from the ideal continuation as the prediction horizon increases.
Frequency accuracy is especially important because a small frequency error accumulates over time. If the
estimated frequency differs from the true frequency by Δf hertz, the additional phase error after
τ seconds is approximately:
Δφ(τ) = 2πΔfτ
A frequency error of 0.1 Hz creates a phase error of approximately 36 degrees after one second. The same frequency error creates approximately 180 degrees of phase error after five seconds.
| Frequency error | Prediction horizon | Approximate accumulated phase error |
|---|---|---|
| 0.01 Hz | 1 second | 3.6 degrees |
| 0.1 Hz | 1 second | 36 degrees |
| 0.1 Hz | 5 seconds | 180 degrees |
| 1 Hz | 0.1 second | 36 degrees |
This relationship explains why sinusoidal prediction can be convincing over a short missing segment but become inaccurate over a much longer interval.
Amplitude error changes the strength of the extended component but does not normally accumulate in the same manner as frequency error. Initial phase error produces an immediate time-alignment error at the observation boundary.
The principal parameter effects are:
| Parameter error | Immediate effect | Longer-term effect |
|---|---|---|
| Frequency error | Small phase-progression mismatch | Increasing phase divergence |
| Amplitude error | Incorrect component strength | Persistent level mismatch |
| Phase error | Boundary misalignment | Persistent waveform displacement |
| Missing component | Incomplete waveform | Loss of tonal or harmonic detail |
| False component | Artificial oscillation | Unnatural beating or tonal artifact |
A longer observation interval generally provides finer frequency discrimination. It may therefore improve frequency estimation and permit a longer useful prediction horizon.
A long interval also increases the chance that the signal will change within the frame. A short frame follows change more effectively but provides less frequency resolution.
This creates a fundamental trade-off:
Long frame: better frequency precision, weaker time localization
Short frame: better time localization, weaker frequency precision
The observed signal can be written as the sum of the fitted sinusoidal model and a residual:
x[n] = x̂[n] + e[n]
A residual containing only low-level unstructured energy suggests that the sinusoidal model accounts for much of the observed signal. A residual containing clear tonal peaks suggests that important components are missing.
A small residual within the observed interval does not guarantee accurate long-range prediction. An over-parameterized model may fit observation noise yet extrapolate poorly. Parameter stability and physical plausibility remain important.
Prediction quality should be evaluated as a function of distance from the observation boundary. A useful extension may be reliable for a few milliseconds but unsuitable for several seconds.
Practical systems should therefore specify:
A brief dropout removes a small number of waveform samples from an otherwise continuous tonal signal. A sinusoidal model estimated from a neighboring region can be extended into the missing interval.
The method is especially effective when:
Percussive attacks, clicks that coincide with a transient, and broadband textures are more difficult because their essential structure is not described by a small set of stable sinusoids.
A lost communication packet creates a short interval without received samples. During a voiced speech segment, recent harmonic components can be continued to conceal the loss.
Sinusoidal extension can preserve pitch and harmonic structure more naturally than inserting silence. Its effectiveness decreases during unvoiced consonants, plosive sounds, or rapid transitions because those segments contain substantial aperiodic or transient energy.
A stable portion of an instrument recording can be decomposed into a fundamental and partials. Extending those components can produce a longer sustained tone without repeating one waveform block exactly.
A practical musical model may also require:
A fixed-amplitude sinusoidal model is most suitable for a short, steady-state portion rather than an entire note containing attack and decay.
A tonal frame can be represented by a parameter set instead of every original sample. The parameters can be transmitted or stored and later used to synthesize the waveform.
Prediction outside the observation interval is closely related to this resynthesis process. Both operations evaluate an estimated model at desired sample positions.
A complete coding system requires additional treatment of residual noise, transients, frame transitions, parameter quantization, and perceptual relevance. The sinusoidal model is one component of such a system rather than a complete codec by itself.
A steadily rotating machine can generate shaft-frequency tones, harmonics, gear-mesh frequencies, and modulation sidebands. A model estimated from recent data can predict the expected tonal waveform or spectrum over a short following interval.
A significant difference between the predicted and measured signal may indicate:
Prediction error can support anomaly monitoring, but it does not independently identify the mechanical cause of the change.
Electrical voltage or current may contain a fundamental frequency, harmonics, and interharmonics. Once those components have been estimated, their expected continuation can be calculated.
The comparison between expected and observed continuation can reveal frequency drift, amplitude change, switching events, or new spectral components. Rapid nonlinear events may require models beyond stationary sinusoids.
Some biomedical acoustic segments contain narrowband or approximately repetitive components. Sustained wheezes, certain vascular sounds, or localized tonal phenomena may be represented partly by sinusoidal components.
Such components can be tracked or briefly extended for signal-quality analysis, artifact correction, or feature extraction. Heart sounds, breath noise, crackles, and other physiological events frequently contain strong transient or broadband structures, so a sinusoidal model should not be treated as a complete physiological description.
In biomedical use, model extension is best regarded as an analytical or reconstruction technique rather than as a diagnostic conclusion.
Such signals may still be modeled by extending the basic framework to include damping factors, amplitude envelopes, instantaneous-frequency trajectories, or shorter adaptive frames.
These signals may require transient models, autoregressive methods, noise models, waveform interpolation, sparse representations, or data-driven prediction methods.
Sinusoidal prediction is most credible when the recent signal can be explained by a small and stable set of spectral lines, and when only a modest extension beyond the observation interval is required.
| Section | Primary task | Result passed to the next stage |
|---|---|---|
| 8.1 Spectral peak selection | Locate and refine meaningful spectral components. | Candidate frequencies and harmonic relationships |
| 8.2 Clustered line spectral modeling | Fit overlapping window-shaped spectral clusters jointly. | Estimated amplitudes, phases, and modeled spectral lines |
| 8.3 Prediction of compound sinusoidal sequences | Evaluate the estimated sinusoidal model outside the observed record. | Forward extension, backward extension, or related reconstruction |
Section 8.3 cannot be separated from the accuracy of Sections 8.1 and 8.2. Incorrect peak selection produces an incorrect model. Incorrect frequency estimation produces accumulating phase error. Incorrect amplitude or phase estimation produces boundary mismatch.
The quality chain is therefore:
Peak-selection quality → parameter-estimation quality → extension quality
Chapter 8 begins by asking which spectral peaks represent meaningful sinusoidal components. It then asks how the overlapping spectral patterns of those components can be modeled. Finally, it asks what can be done with the estimated model beyond the data from which it was obtained.
In this sense, Section 8.3 completes the movement from observation to representation and from representation to controlled synthesis.
A compound sinusoidal sequence is a deterministic sum of oscillatory components. It is exactly periodic when all component frequencies possess a common period. When no common exact period exists, the sequence may still be almost periodic and retain a strong recurring structure.
The compound sequence corresponds to a discrete set of spectral lines. Each line carries frequency, amplitude, and phase information. Finite observation broadens those ideal lines into window-shaped spectral clusters, from which the underlying parameters must be estimated.
After meaningful spectral peaks have been selected and their parameters estimated, the sinusoidal model can be evaluated beyond the observation interval. The resulting extension is most reliable over a short horizon when the underlying components remain stable.
Chapter 8.3 explains that a finite observation of a structured oscillatory signal can be converted into a compound sinusoidal model, and that this model can generate a controlled continuation outside the measured interval, subject to the accuracy and stability of the estimated spectral components.
Written on June 28, 2026
Chapter 9 presents a different way of reading sound. Conventional spectral analysis usually begins with prominent peaks: resonances, harmonics, formants, and dominant frequency bands. Chapter 9 turns attention toward the opposite structure: frequencies at which the observed response becomes weak, collapses into a trough, or approaches zero.
These weak regions are not necessarily empty or unimportant. A spectral trough may be produced by destructive interference, a transfer-function zero, a source-specific temporal pattern, a sensor characteristic, or a propagation-path cancellation. Chapter 9 develops a sequence of models for understanding these possibilities.
Central thesis: A sound source may be characterized not only by frequencies that it reinforces, but also by the repeatable cancellation structures that it creates. Those structures can appear as complex zeros, spectral troughs, and characteristic time-pulse relationships.
The chapter proceeds through three levels:
Transfer-function zeros
→
clustered time-sequence structure
→
adjacent pulse-pair factors
→
spectral-trough tracking
→
source-signature selection
This progression is particularly relevant to nGeneMediaPlayer because heart sounds, lung sounds, body-transmission effects, sensor responses, environmental noise, and independent components may occupy overlapping frequency regions. A useful analysis system therefore needs more than a conventional peak detector or spectrogram. It needs a disciplined way to distinguish source behavior from path behavior.
Most acoustic analysis begins with the question:
At which frequencies is the signal strong?
Chapter 9 adds a second question:
At which frequencies does the response become weak, and what combination of source, path, timing, and phase caused that weakness?
A peak usually indicates reinforcement or resonance. A trough usually indicates cancellation or suppression. Both can carry structural information, but they describe different aspects of the signal-producing system.
Impact, valve motion, airflow, vibration, reflection, or sensor response
Pulses, delays, polarity, decay, and repeated local sequences
Frequency-dependent amplitude and phase
Frequencies at which components cancel
Selected features that recur under comparable source conditions
A deep trough does not necessarily mean that nothing occurred at that frequency. Two or more contributions may be individually strong while their complex sum becomes small.
For example:
Contribution A = 1.0ej0
Contribution B = 1.0ejπ
Sum = 0
The observed absence can therefore reveal a precise phase relationship. In some systems, this relationship is more structurally specific than the height of a resonance peak.
Chapter 9 should not be reduced to the rule that peaks belong to the system and troughs belong to the source. Such a rule would be unreliable.
The practical task is therefore not merely to detect troughs, but to determine which troughs are stable, repeatable, physically plausible, and sufficiently independent of the observation path.
A pole is a complex-frequency property associated with natural modes, resonance frequencies, and decay rates. A pole near the frequency axis commonly produces a strong spectral peak.
The visible peak, however, is not determined by the pole alone. Its height and phase also depend on damping, excitation position, observation position, residue, and sensor response.
A zero is a point in the complex-frequency plane at which a transfer function or finite-sequence transform becomes zero.
A spectral trough is an observed local minimum along the measured frequency axis. A trough can be caused by a zero near the frequency axis or unit circle, but the two terms are not mathematically identical.
A notch usually refers to a narrow and pronounced trough. An antiresonance commonly refers to a cancellation minimum occurring between resonances in a mechanical or acoustic transfer function.
A residue describes how strongly and with what phase a particular pole contributes to a selected input–output measurement. The same physical mode can appear strongly in one channel and weakly in another because the corresponding residues differ.
Residues are important because zeros can emerge when modal contributions with different residues cancel.
A measured signal may be represented schematically as:
Ym(f)
=
Hm(f)S(f)
+
Nm(f)
S(f) represents the source.Hm(f) represents the propagation path and sensor response for channel m.Nm(f) represents noise and modeling error.Ym(f) is the observation.With several sources or several propagation paths, the observation becomes a sum of source–path contributions. Cancellation can then occur even when no individual source or path has a zero at that frequency.
| Concept | Mathematical role | Observable effect | Practical question |
|---|---|---|---|
| Pole | Root of a denominator | Resonance peak and phase transition | Where does the system naturally respond? |
| Residue | Complex coefficient of a pole | Strength and phase of modal participation | How visible is the mode in this channel? |
| Zero | Root of a numerator or finite-sequence transform | Cancellation or suppression | Where does the selected response vanish? |
| Spectral trough | Measured local minimum | Notch or broad depression | Is this a stable zero, noise, or path effect? |
| Source signature | Selected recurrent feature set | Repeatable temporal and spectral pattern | Which features remain associated with the source? |
The following synthetic graph illustrates the complementary roles of resonance peaks and cancellation troughs. The graph is conceptual rather than a reconstruction of a particular measured signal.
Chapter 9.1 begins with the simplest resonant system: a mass, spring, and damper. This model establishes the basic relationship among natural frequency, damping, resonance amplitude, and phase.
For displacement caused by force:
H(s)
=
X(s)/F(s)
=
1/(ms2 + cs + k)
The denominator produces poles. These poles describe the system's natural vibration. The single-degree-of-freedom example provides a baseline before several modes and zeros are introduced.
The same physical system can produce different transfer functions depending on whether displacement, velocity, acceleration, pressure, or another variable is measured.
| Measured response | Typical numerator effect | Practical consequence |
|---|---|---|
| Displacement | Constant numerator in the ideal basic model | Emphasizes low-frequency motion |
| Velocity | Contains a factor of s |
Introduces a zero at the origin |
| Acceleration | Contains a factor of s2 |
Introduces a double zero at the origin |
| Acoustic pressure | Depends on source, boundary, and sensor geometry | Zeros may change with microphone position |
This is an important lesson for nGeneMediaPlayer: a measured trough is always associated with a particular channel, sensor, placement, and signal representation.
A multi-mode transfer function may be written schematically as:
H(s)
=
D(s)
+
Σr
Rr/(s-pr)
The poles pr describe modal dynamics. The residues Rr describe how those modes contribute to the selected measurement.
A zero can occur when:
H1(s)
+
H2(s)
+
...
+
Hn(s)
=
0
Two strong modes may therefore produce a small measured response when their phases oppose one another.
A recorded sound usually contains both source characteristics and transfer-path characteristics:
Observed sound
=
source
×
path
×
sensor
A trough in the observation may therefore be caused by:
Chapter 9.1 establishes the central inverse problem of the entire chapter: determining which observed zeros belong to the source and which belong to the measurement path.
The practical lesson is not merely that transfer functions contain zeros. The more important lesson is that the interpretation of a measured spectrum requires a source–path model.
| Observation | Possible interpretation | Required verification |
|---|---|---|
| Peak remains at the same frequency across positions | Possible stable system mode | Compare residues and amplitudes across channels |
| Trough moves with sensor position | Likely path or spatial cancellation | Repeat at controlled positions |
| Trough remains across several paths | Possible source-related feature | Confirm with calibrated sensors and repeated events |
| Trough appears only after denoising | Possible processing artifact | Compare with the unprocessed signal |
A finite sampled sequence can be written as:
X(z)
=
Σn=0N-1
x[n]z-n
The sample amplitudes are also polynomial coefficients. Changing the order, amplitude, sign, or spacing of the time samples changes the locations of the zeros.
On the unit circle:
z=ejω
the complex contributions of the time samples rotate at different rates. Spectral reinforcement and cancellation emerge from their vector sum.
Clustered time-sequence modeling can be understood as representing a finite waveform through localized groups of related pulses or samples.
A general cluster representation may be written as:
x[n]
≈
Σc=1K
Σm=0Mc-1
ac,m
δ[n-(tc+m)]
Each cluster has:
Two kinds of cancellation can occur.
This distinction is useful because a local waveform shape may reflect the source mechanism, while inter-cluster cancellation may reflect reflection, propagation delay, or repeated excitation.
A single event may be accidental. A repeatedly occurring cluster is more informative.
CTSM therefore supports a source signature composed of:
Chapter 9.2 moves the analysis away from one averaged spectrum and toward recurrent local events.
This is important for heart and lung sounds because:
CTSM therefore offers a framework for grouping similar events before attempting source identification.
The smallest finite sequence that can represent one zero consists of two adjacent coefficients:
g[n]
=
δ[n]
-
z0δ[n-1]
Its transform is:
G(z)
=
1-z0z-1
The transform becomes zero at z=z0. One adjacent pulse pair therefore represents one complex zero factor.
A zero may be written as:
z0
=
rejθ
The angle θ determines the approximate trough frequency. The radius r determines the proximity to exact cancellation.
A local complex spectrum around a candidate trough can be approximated as:
B(ω)
≈
c0
+
c1e-jω
After estimating the two coefficients:
ẑ0
=
-ĉ1/ĉ0
The fitted zero provides a compact description of the trough frequency, depth, phase relation, and local model quality.
Several troughs can be extracted iteratively. When the total response is represented as a product of zero factors, the logarithmic magnitude becomes a sum:
log|H|
=
Σq
log|Hq|
One modeled trough can therefore be subtracted from the logarithmic spectrum, exposing the remaining trough structure.
The same procedure can be extended across time frames to produce trough trajectories.
Chapter 9.3 does not require every detected trough to become a source feature. Selection is essential.
A useful trough should generally demonstrate:
Chapter 9.3 converts the theory of zeros into a calculable feature-extraction method:
Detect trough
→
fit adjacent pair
→
estimate zero
→
track recurrence
→
select source-related factors
This is the portion of Chapter 9 most directly suited to implementation in analysis software.
| Layer | Main concept | Engineering question | Software output |
|---|---|---|---|
| 9.1 | Transfer function, poles, residues, and zeros | Does the trough belong to the source or path? | Source–path interpretation framework |
| 9.2 | Clustered time sequences | Which local events recur with similar structure? | Event clusters and recurrent descriptors |
| 9.3 | Adjacent pulse-pair zero factors | Which troughs can be fitted, tracked, and selected? | Zero estimates and source-signature candidates |
Detection answers where a trough exists. Identification answers why it exists. Chapter 9 is ultimately concerned with identification.
The following synthetic chart illustrates three possible observations: a stable candidate feature, a position-sensitive feature, and an intermittent low-confidence feature.
Direct and reflected sound can cancel at selected frequencies. A deep room null cannot always be repaired by increasing equalizer gain because the added energy can cancel at the same location.
Chapter 9 encourages a more appropriate response:
Resonance peaks may remain similar while antiresonances shift because of changes in mass, stiffness, contact geometry, or boundary conditions.
Trough tracking can therefore complement ordinary vibration-peak monitoring, particularly when:
Loudspeakers, microphones, cabinets, crossovers, and room reflections can all create troughs. A zero-aware analysis system can help distinguish:
Heart and lung sounds are measured after transmission through tissue, airways, the chest wall, the stethoscope body, the sensor membrane, and the recording electronics.
A measured trough may therefore reflect:
Chapter 9 is useful in this field because it discourages immediate clinical interpretation of a single spectral minimum. It promotes repeated, multichannel, and path-aware analysis.
Trough analysis can also reveal problems in the recording process.
The most defensible development direction is not an immediate disease classifier. A more useful and technically sound direction is an explainable acoustic-analysis workstation capable of:
nGeneMediaPlayer should make it possible to click a spectral trough and obtain a clear explanation of where it occurs, how stable it is, which events contain it, how well a zero model fits it, and whether it behaves more like a source feature or a path feature.
The first high-value function should be a spectral-trough inspector with multichannel comparison.
This function is more practical than beginning with full CTSM automation or large-scale clinical classification because it creates immediate value:
| Outcome | Question answered | Practical value |
|---|---|---|
| Explain a component | Why is this ICA component considered heart-like, lung-like, or artifact-like? | Improves trust in source separation |
| Compare repeated recordings | Which temporal and trough features remained stable? | Supports follow-up and experiment reproducibility |
| Separate source from path | Did the feature move when the sensor position changed? | Reduces false interpretation of measurement artifacts |
Immutable audio and acquisition metadata
Clipping, synchronization, noise floor, polarity, and sensor calibration
Cardiac cycles, respiratory phases, transients, and artifacts
Multi-resolution magnitude and phase
Depth, width, prominence, and confidence
Recurrence and movement across frames or events
Local zero angle, radius, and residual
Recurrent event and pulse-cluster models
Source, path, sensor, artifact, or uncertain
Zero analysis is more sensitive to phase and cancellation than ordinary energy analysis. A small synchronization error, polarity inversion, sensor phase mismatch, or aggressive denoising step can create or remove troughs.
The software should therefore verify:
Noise reduction, equalization, source separation, and resampling can alter spectral troughs. Every derived signal should therefore remain linked to the untouched source recording.
The interface should permit immediate comparison among:
A short window provides accurate timing but poor frequency resolution. A long window provides better frequency resolution but can mix separate events.
| Analysis scale | Main strength | Typical use | Main risk |
|---|---|---|---|
| Short window | Transient timing | Clicks, crackle-like events, short impacts | Unstable trough frequency |
| Medium window | Balanced timing and frequency | Heart-sound components and short tonal events | May merge nearby transients |
| Long window | Fine frequency resolution | Sustained wheeze-like tones and stable background structure | Loss of event localization |
nGeneMediaPlayer should therefore support linked short-, medium-, and long-window views rather than one fixed spectrogram configuration.
This panel should run before advanced analysis and report:
A clear analysis suitability score should warn when trough fitting is likely to be unreliable.
The main analysis screen should display:
Selecting a time interval should update every linked view. Selecting a trough should highlight all frames or events in which a corresponding feature occurs.
The detector should not merely find every local minimum. It should estimate a smooth local baseline and calculate trough prominence.
For frame t:
Lt(f)
=
20log10
(|Xt(f)| + ε)
Let Bt(f) be a smoothed spectral baseline. The trough depth is:
Dt(f)
=
Bt(f)
-
Lt(f)
A candidate should satisfy:
Clicking a trough should open an inspection panel containing:
Candidate troughs should be linked across neighboring frames through a continuity cost.
A practical cost may be:
Cij
=
wf|log(fi/fj)|
+
wd|di-dj|
+
ww|wi-wj|
+
wr|ri-rj|
The tracker should permit short gaps because a valid trough may temporarily disappear below the noise floor.
Each track should report:
APTM fitting should be applied only to qualified trough candidates. Running polynomial-root estimation over every frame and every frequency bin would produce excessive noise and unstable results.
The fitting panel should show:
CTSM should operate on detected events rather than arbitrary fixed windows alone.
An event descriptor may include:
The interface should display representative events, cluster variability, and outliers. Automatic grouping should remain manually reviewable.
The source-signature builder should allow selected events and troughs to be stored as a reusable template.
A template should contain:
The same source should be measured at more than one position whenever possible. nGeneMediaPlayer should display a comparison matrix showing which features:
A trough that shifts strongly with position should receive a high path-sensitivity score.
ICA separates statistical components but does not determine their physical identity. A component-labeling assistant should combine:
The output should be probabilistic and explainable:
Reproducible source-signature analysis requires a controlled recording protocol. The experiment manager should store:
Every result should be reproducible from an analysis manifest containing:
Results should be exportable as CSV for tables, JSON for structured analysis, and image or report formats for review.
The preprocessing stage should remain conservative.
A spectral trough is meaningful relative to a baseline. Several baseline methods can be supported:
The detector should retain the chosen baseline method because trough depth depends on it.
A trough confidence score can combine normalized terms:
Qtrough
=
qdepth
qsnr
qstability
qfit
qrecurrence
Alternatively, a weighted sum can be used. The individual terms should remain visible rather than being hidden behind one score.
For complex observations b and model matrix A:
ĉ
=
(AHWA)-1
AHWb
The zero estimate is:
ẑ0
=
-ĉ1/ĉ0
The normalized fitting error may be:
Efit
=
||Aĉ-b||2
/
||b||2
Estimates with excessive fitting error, implausible radius, or inadequate signal-to-noise ratio should be rejected rather than forced into the signature.
A practical CTSM event vector may be:
ve
=
[
T,
A,
trise,
tdecay,
Δt1,
Δt2,
Eband,1,
...,
fpeak,1,
ftrough,1,
rzero,1,
phasecycle
]
Features should be normalized carefully so that amplitude alone does not dominate clustering.
A candidate trough can receive a source-likelihood score based on several observations:
Qsource
=
wrR
+
wcC
+
wsS
+
wpP
-
wxX
R: recurrence across comparable events;C: cross-channel agreement;S: synchronization with a source cycle;P: physical plausibility;X: sensitivity to sensor position or path changes.The score should be presented as evidence, not as proof.
| Field | Purpose |
|---|---|
recordingId |
Links the feature to the source recording |
channelId |
Identifies the sensor or ICA component |
eventId |
Links the trough to a physiological or mechanical event |
frameStart |
Stores the time position |
frequencyHz |
Stores the observed trough center |
depthDb |
Stores prominence below the baseline |
widthHz |
Stores effective trough width |
noiseMarginDb |
Measures distance from the noise floor |
zeroAngle |
Stores the APTM angular parameter |
zeroRadius |
Stores the APTM radial parameter |
fitError |
Measures local model adequacy |
trackId |
Connects repeated detections |
crossChannelScore |
Measures persistence across channels |
pathSensitivity |
Measures movement under position changes |
classification |
Stores source, path, sensor, artifact, or uncertain |
confidence |
Stores overall reliability |
analysisVersion |
Supports reproducibility |
A modular architecture can use responsibilities such as:
AudioIntegrityServiceCalibrationManagerTimeFrequencyEngineEventSegmenterTroughDetectorTroughTrackerAptmFitterCtsmClustererSignatureStoreIcaComponentLabelerAnalysisManifestReportExporterHeavy analysis should run in a worker or background thread. Results should be cached by audio checksum and parameter set so that identical analyses remain deterministic and fast.
A practical workflow is:
The result should not be a hidden label. The software should show the evidence supporting each label.
Two recordings of the same source can be compared at different positions.
The interface should identify:
This workflow can improve sensor-placement protocols and prevent path effects from being mistaken for source changes.
A longitudinal workflow should compare recordings only after matching protocol conditions as closely as possible.
The comparison report can include:
This supports quantitative follow-up without claiming that one feature alone proves a clinical change.
Handling noise, clothing friction, cable movement, and sensor-pressure changes often produce broad transient events.
Artifact identification can combine:
A selected event can be compared with stored signatures. The result should show:
A similarity score without these decomposed explanations would be less useful for scientific review.
The first phase should establish:
Advanced zero analysis should not begin before this foundation is reliable.
The first user-facing release should provide:
This phase can deliver practical value without depending on uncertain source attribution.
The next phase should add:
APTM should be introduced after candidate detection and tracking are stable.
This phase should include:
CTSM should then group recurring events using:
The fifth phase should combine:
The final phase should emphasize:
| Phase | Primary deliverable | Dependency | Immediate practical value |
|---|---|---|---|
| Foundation | Integrity and reproducibility layer | None | Prevents invalid downstream analysis |
| First release | Trough explorer | Reliable spectra | Manual inspection and channel comparison |
| Second release | Trough tracking | Stable detection | Recurrence and movement analysis |
| Third release | APTM fitting | Qualified candidates | Compact zero representation |
| Fourth release | CTSM grouping | Reliable event segmentation | Recurring event classes |
| Fifth release | Signature and ICA integration | Validated features | Explainable component labeling |
| Sixth release | Longitudinal validation | Controlled datasets | Repeatable research and monitoring |
The software should generate finite sequences with known zero locations.
Test cases should include:
The estimated angle, radius, and fit error should be compared with the known values.
A direct signal and delayed copy create predictable comb-filter troughs.
The test system should verify:
Synthetic source and path filters should be combined:
Ym(z)
=
Hm(z)S(z)
The same source should be observed through several path filters. A valid comparison method should identify:
Synthetic trough trajectories should include:
Evaluation should measure frequency error, continuity, false associations, missed detections, and track fragmentation.
Real recordings should be repeated under controlled conditions:
The objective is to quantify which features remain stable and which are measurement-dependent.
| Metric | Purpose |
|---|---|
| Frequency error in FFT-bin units | Measures localization accuracy independent of transform size |
| Zero-angle error | Measures APTM frequency accuracy |
| Zero-radius error | Measures trough-depth modeling accuracy |
| Normalized fit residual | Measures local model adequacy |
| Detection precision and recall | Measures candidate-detector reliability |
| Track continuity | Measures temporal association quality |
| Within-session variation | Measures short-term repeatability |
| Across-session variation | Measures longitudinal stability |
| Cross-channel agreement | Supports source–path discrimination |
| Manual-review agreement | Measures interpretability and review consistency |
A spectral trough can be caused by the source, path, sensor, position, or processing. A diagnostic classifier should not be built before repeatability and source–path discrimination have been established.
High-order root estimation over noisy frames can produce large numbers of unstable zeros. Candidate detection, signal-quality gating, and local fitting should come first.
A single similarity number without visible evidence would be difficult to audit. The score should always be decomposed into timing, spectral, trough, zero, recurrence, and channel-consistency terms.
A denoising model can remove real troughs or create artificial ones. Raw and processed signals should remain comparable, and the same analysis should be available on both.
Attempting to invert a deep cancellation can amplify noise dramatically. Deep notches should first be interpreted as possible geometric or structural cancellation, not automatically corrected by gain.
A single observation rarely provides enough information to separate source and path uniquely. Multichannel or repeated-position evidence should be preferred.
A useful first implementation can remain focused:
| Screen region | Contents |
|---|---|
| Upper left | Waveform, event markers, and playback cursor |
| Upper right | Selected-frame spectrum with peak and trough overlays |
| Center | Multi-resolution spectrogram with trough tracks |
| Lower left | Channel, ICA component, and processing-stage selector |
| Lower center | Trough table with confidence and track statistics |
| Lower right | Inspector panel and manual classification controls |
The first release should make a suspected trough reproducible, inspectable, comparable across channels, and exportable. Automatic source attribution can follow after those foundations are validated.
After the MVP is stable, APTM fitting should be added to the inspector rather than introduced as an independent black-box process.
The operator should be able to:
CTSM should then organize repeated accepted events into clusters. This stage should answer:
Chapter 9 develops a progression from frequency-domain zeros to time-domain structure and then back to source identification.
A spectral trough is not merely a weak frequency. It is evidence of a cancellation relationship. Useful software must determine whether that relationship belongs to the source, the path, the sensor, or the analysis process.
The strongest development direction is a sequence of explainable tools:
Recording integrity
→
trough inspection
→
trough tracking
→
APTM zero fitting
→
CTSM event grouping
→
source-signature comparison
→
ICA component labeling
This direction is technically grounded, immediately useful for research and signal review, and capable of growing toward more advanced classification only after the underlying measurements have been validated.
nGeneMediaPlayer should not merely display where sound energy exists. It should also explain where energy disappears, how that disappearance was produced, whether it repeats, and whether it follows the source or the measurement path.
Written on June 28, 2026
Section 9.1 develops a three-stage explanation of how resonance, modal participation, and cancellation appear in a transfer function. The discussion begins with the simplest vibrating system, proceeds to the roles of residues and zeros, and finally addresses the more difficult problem of distinguishing an external source from the path through which its sound is observed.
Central proposition: A measured sound is shaped not only by frequencies that are amplified, but also by frequencies that are suppressed through cancellation. Peaks describe resonance, residues describe modal participation, and zeros describe cancellation.
A complicated waveform can be represented as a combination of sinusoidal components. Each component has its own frequency, amplitude, and phase:
x(t) = Σ Ak cos(ωkt + φk)
For a linear time-invariant system, a sinusoidal input produces a steady-state output at the same frequency. The system changes only the amplitude and phase. This relationship is described by the transfer function:
H(jω) = Y(jω) / X(jω)
Sinusoidal modeling therefore provides a convenient way to determine which frequencies are reinforced, which are delayed in phase, and which are cancelled.
Transfer functions are commonly expressed in the complex-frequency variable:
s = σ + jω
The real component σ represents exponential growth or decay, while the imaginary component ω represents oscillation. A rational transfer function may be written as:
H(s) = N(s) / D(s)
D(s) and represent natural modes, resonance, and decay.N(s) and represent frequencies or complex-frequency conditions at which the selected output vanishes.A zero located on or near the imaginary-frequency axis can produce a deep trough or notch in an observed frequency response.
A resonance peak indicates that energy is being accumulated in a mode. It does not, by itself, explain how several modes interact or why the response becomes unexpectedly small at another frequency.
A spectral trough may contain equally important structural information. It can indicate:
Section 9.1 therefore shifts the focus from only asking where a system responds strongly to also asking where, how, and why the measured response disappears.
| Concept | Mathematical role | Physical interpretation | Typical observation |
|---|---|---|---|
| Sinusoid | Single-frequency basis component | Elementary oscillation with amplitude and phase | A spectral component at a defined frequency |
| Pole | Root of the transfer-function denominator | Natural mode or resonance | Peak and rapid phase transition |
| Residue | Coefficient associated with a pole | Strength and phase of modal participation | A mode may appear strongly, weakly, or not at all |
| Zero | Root of the transfer-function numerator | Cancellation in a selected input–output channel | Notch, trough, or antiresonance |
| Transfer function | Ratio between output and input | Dynamics of a particular measurement path | Frequency-dependent amplitude and phase |
A single-degree-of-freedom system, commonly abbreviated as SDOF, contains one independent coordinate of motion. Its standard mechanical representation consists of a mass, a spring, and a damper:
m(d2q/dt2) + c(dq/dt) + kq = f(t)
The parameters have the following meanings:
m: mass or inertia;c: damping coefficient;k: stiffness;q(t): displacement;f(t): applied force.For displacement measured in response to an applied force, the transfer function is:
Hxf(s) = X(s) / F(s) = 1 / (ms2 + cs + k)
The undamped natural frequency and damping ratio are:
ωn = √(k/m)
and
ζ = c / (2√(km))
The SDOF model establishes the fundamental behavior of a pole before the more complicated subject of zeros is introduced.
When the forcing frequency approaches the natural frequency, the displacement response increases. The amount of amplification depends strongly on damping:
The SDOF model is therefore the reference pattern against which multi-mode resonance and antiresonance can later be understood.
A transfer function is not an intrinsic property of a structure alone. It is defined by a particular input and a particular output. Even for the same mass–spring–damper system, the numerator changes when displacement, velocity, or acceleration is selected as the output.
| Measured output | Transfer function relative to force | Ideal finite-zero behavior |
|---|---|---|
| Displacement | X/F = 1 / (ms2 + cs + k) |
No finite zero in the ideal SDOF receptance |
| Velocity | V/F = s / (ms2 + cs + k) |
One zero at s = 0 |
| Acceleration | A/F = s2 / (ms2 + cs + k) |
A double zero at s = 0 |
This distinction is fundamental. Poles are closely associated with the system's natural modes, whereas zeros can change substantially with the selected response variable, excitation location, and observation location.
The following graph shows the normalized displacement response of an SDOF system. The horizontal axis is the forcing-frequency ratio r = ω/ωn. The resonance occurs near r = 1.
The SDOF model is deliberately simple. Most acoustic and mechanical systems contain many interacting modes, multiple propagation paths, and frequency-dependent losses. The model should therefore be regarded as a foundation rather than a complete description of a real sound field.
A measured resonance peak may belong to the source, the transmitting structure, the sensor, or a combination of all three. Establishing the SDOF response is the first step toward separating these possibilities.
A multi-mode transfer function can be decomposed into contributions associated with individual poles:
H(s) = D0(s) + Σ Rr / (s - pr)
In this expression:
pr is the pole of mode r;Rr is the residue associated with that pole;D0(s) represents any direct or non-resonant contribution.The term “residue” does not mean an unimportant remainder. It is the complex coefficient that determines how strongly a mode appears in a particular transfer function and what phase that modal contribution possesses.
A mode can therefore be physically present in a structure while remaining weak or invisible in a particular measurement channel. This occurs when the excitation or sensor is near a modal node, or when the corresponding residue is very small.
In a mechanical modal model, a transfer function between excitation point a and response point b may be represented schematically as:
Hab(jω) ≈ Σ Rab,r / (ωr2 - ω2 + j2ζrωrω)
The residue Rab,r depends on the mode shape at both the excitation and observation locations. Changing either location can change:
Consequently, zeros are often more dependent on measurement geometry than poles.
A transfer-function zero is a value of s for which:
H(s) = 0
In a modal sum, this condition can occur when the complex contributions of several modes cancel:
H1(s) + H2(s) + ... + Hn(s) = 0
Cancellation requires both amplitude and phase relationships. Two large modal responses may produce a small total response when their phases are nearly opposite.
This produces an important distinction:
An exact transfer-function zero is a root in the complex-frequency plane. A measured spectrum, however, is normally evaluated only along the imaginary-frequency axis. For this reason, a zero does not always appear as a perfectly vanishing spectral value.
Real damping, noise, finite record length, leakage, and additional unmodeled modes commonly produce a deep but nonzero trough. The terms zero, notch, spectral trough, and antiresonance are therefore related but should not always be treated as mathematically identical.
A zero does not necessarily mean that the entire structure contains no vibration or acoustic energy. It means that the selected output vanishes relative to the selected input.
The graph below shows two synthetic modal contributions and their combined transfer-function magnitude. Each mode produces a resonance peak. Between the two resonances, the complex modal contributions oppose one another and create an antiresonance-like trough.
Section 9.1.2 introduces a more complete interpretation of a frequency response:
Pole locations alone are therefore insufficient for reconstructing the observed response. Residues and zeros are required to explain why two measurements of the same structure can have similar resonance frequencies but very different amplitudes and trough patterns.
An externally generated sound is not normally observed in its original form. It passes through a structure, medium, room, body tissue, sensor, or combination of paths before being recorded.
For a single source and a single observation channel, the basic model is:
Ym(s) = Hm(s)S(s) + Nm(s)
S(s) represents the external source;Hm(s) represents the path to observation channel m;Ym(s) is the measured signal;Nm(s) represents noise and modeling error.With multiple sources or multiple propagation paths, the observation becomes a sum of source–path contributions:
Ym(s) = Σ Hmq(s)Sq(s) + Nm(s)
This distinction is essential because a spectral trough in the measured signal may originate from the source, the path, the sensor, or cancellation among several contributions.
An external source is an excitation whose temporal structure must be distinguished from the transfer system through which it is observed. Examples include:
The principal analytical question is not merely whether a zero exists. The more important question is whether that zero belongs to the source or to the transfer path.
| Possible origin | Mechanism | Expected behavior | Useful test |
|---|---|---|---|
| Source zero | S(s) = 0 or internal cancellation within the source |
May persist across different observation positions after path and sensor effects are considered | Change the propagation path while maintaining the same source condition |
| Path zero | Hm(s) = 0 |
Often changes with sensor position, boundary condition, or propagation geometry | Move the sensor or alter the transmission path |
| Sensor zero | Suppression caused by the instrument response | Follows the same sensor across different sources and locations | Calibrate or replace the sensor |
| Multipath cancellation | Destructive interference between delayed paths | Highly sensitive to distance, position, and reflecting boundaries | Change source–receiver geometry |
| Modal antiresonance | Cancellation among structural or acoustic modes | Usually associated with neighboring resonances and input–output geometry | Compare measurements at several excitation and response locations |
| Apparent trough | Noise, spectral leakage, windowing, or insufficient resolution | Unstable under changes in analysis parameters or averaging | Change record length, window, resolution, and averaging method |
These behaviors provide diagnostic clues rather than absolute proof. Shared paths, correlated sources, and limited signal-to-noise ratio can make the classification ambiguous.
Sinusoidal modeling represents the observed waveform as a set of oscillatory components with estimated amplitudes, frequencies, damping rates, and phases. Phase is especially important because cancellation cannot be understood from magnitude alone.
The model can support the estimation of:
A stable collection of such features may serve as a source signature. The signature is not restricted to strong spectral peaks; it may also include the locations and trajectories of zeros.
A single observation generally does not provide a unique factorization of source and path. If:
Y(s) = H(s)S(s)
many different combinations of H(s) and S(s) can produce the same measured result. Additional information is therefore required, such as:
Sinusoidal modeling provides a structured representation of the problem, but source–path separation still requires experimental variation or additional constraints.
In biomedical or diagnostic applications, a spectral trough alone should not be interpreted as a disease marker. The contributions of source, transmission path, sensor, noise, and measurement position must first be examined.
A single mode explains resonance, damping, and phase change.
Multiple modal contributions, weighted by residues, can combine to create transfer-function zeros.
An observed zero must be assigned, cautiously, to the source, path, sensor, or interaction among them.
| Subsection | Primary question | Main mathematical object | Practical meaning |
|---|---|---|---|
| 9.1.1 | How does a single mode respond to sinusoidal forcing? | Pole, natural frequency, damping ratio | Recognition and control of resonance |
| 9.1.2 | How do modal components reinforce or cancel one another? | Residues, numerator zeros, modal summation | Explanation and deliberate placement of antiresonances |
| 9.1.3 | Does an observed trough belong to the source or the path? | Source–path factorization and complex sinusoidal parameters | Source identification, calibration, and diagnostic interpretation |
A peak suggests a nearby pole or resonant contribution, but its height depends on residue, damping, excitation position, observation position, and sensor response. A high peak does not necessarily mean that the source itself contains a strong component at that frequency.
A trough suggests cancellation or attenuation, but its origin remains ambiguous until the source, path, sensor, and analysis procedure have been examined separately.
Strong positional sensitivity usually indicates a path-dependent zero, a structural node, or multipath interference. Source-related features tend to be more persistent across observation channels, although a shared path can produce similar behavior.
A trough that changes systematically with rotational speed, airflow rate, excitation timing, or another source parameter becomes a stronger candidate for inclusion in the source signature.
The mode may still exist physically. A small residue, a nodal sensor position, or cancellation with another component may make it invisible in that particular channel.
A cancellation notch cannot always be corrected by increasing gain. Additional input energy may also cancel and may overload the system elsewhere. Repositioning the source or sensor, altering the path, or changing the underlying dynamics is often more effective.
| Field | Use of the Section 9.1 concepts | Typical objective |
|---|---|---|
| Audio transducers | Model diaphragm poles, residues, crossover zeros, and enclosure cancellation | Produce a smoother and more predictable frequency response |
| Vehicle NVH | Identify resonances and design antiresonances or vibration absorbers | Reduce cabin noise and structural vibration |
| Industrial machinery | Separate source signatures from frame, enclosure, and room transfer effects | Detect faults without confusing them with measurement-path changes |
| Structural modal testing | Estimate poles, residues, nodal behavior, and transfer-function zeros | Characterize mode shapes and select sensor or actuator positions |
| Room acoustics | Distinguish loudspeaker behavior from standing-wave and reflection nulls | Improve source placement, listener placement, and acoustic treatment |
| Active control | Create controlled destructive interference at an error sensor | Suppress targeted noise or vibration |
| Biomedical sound analysis | Examine source, tissue path, stethoscope, microphone, and positional effects | Develop more reliable signal features while avoiding path-related misinterpretation |
The first subsection establishes the frequency response of the simplest resonant system. It explains natural frequency, damping, pole behavior, amplitude amplification, and phase change.
The second subsection explains why poles alone cannot describe a measured response. Residues determine modal visibility, while zeros arise when the complex modal contributions cancel.
The third subsection extends the analysis to an external source. It addresses the inverse problem of determining whether a measured zero belongs to the source, the propagation path, the sensor, or their interaction.
Section 9.1 moves from the question “Where does the system amplify?” to the more complete question “Where does the observed response cancel, and what caused that cancellation?”
Its practical value lies in treating spectral peaks and troughs as complementary evidence. Resonance reveals where a system responds strongly. Residues reveal how individual modes participate in a selected channel. Zeros reveal where contributions cancel. External-source modeling then determines whether those characteristics describe the source itself or the path through which it was measured.
Written on June 28, 2026
Section 9.2 may be understood as an attempt to connect the ordered structure of a finite time sequence with the zeros and troughs observed in its frequency representation. Instead of treating a recorded waveform as one undivided block, clustered time-sequence modeling, abbreviated as CTSM, represents it through localized groups of samples or pulses and examines how those groups combine in the frequency domain.
Central proposition: The arrangement, spacing, sign, and amplitude of time-domain pulses determine where frequency-domain reinforcement and cancellation occur. Recurrent arrangements can therefore provide a source signature.
The following discussion is a technically grounded interpretation of the structure suggested by Sections 9.2.1 through 9.2.3. It is intended to clarify the underlying signal-processing logic rather than reproduce the textbook line by line.
Section 9.1 approaches zeros through sinusoidal models, poles, residues, and transfer functions. Section 9.2 changes the viewpoint. The principal question becomes:
How does the arrangement of samples or pulses in time produce a characteristic pattern of zeros and spectral troughs?
A finite waveform contains more than energy and peak frequency. Its internal timing structure also determines phase relations. Those phase relations can cause constructive or destructive interference when the waveform is transformed into the frequency domain.
CTSM therefore treats a waveform as a structured sequence rather than as an unorganized set of spectral magnitudes.
| Term | Meaning in this context | Analytical purpose |
|---|---|---|
| Clustered | Nearby or structurally related samples are treated as a local group | Preserve the internal shape of a short acoustic event |
| Time sequence | An ordered set of pulse amplitudes and relative delays | Retain timing, polarity, and phase-generating information |
| Modeling | A compact mathematical representation of the sequence | Predict zeros, spectral troughs, and recurrent source features |
In the interpretation most consistent with the chapter structure, the word clustered does not refer only to modern machine-learning algorithms such as k-means. It primarily suggests that neighboring time pulses are grouped into meaningful local sequences. Similar local sequences may subsequently be grouped across repeated events.
CTSM can be understood at two complementary levels.
The first level creates a compact mathematical model. The second level supports source-signature analysis.
A finite and possibly nonstationary sound sequence
Localized groups of related samples or pulses
Frequency-domain cancellation implied by the sequence
Stable features observed across repeated events
A sampled time sequence may be written as:
x[n], n = 0, 1, ..., N - 1
Its z-transform is:
X(z) = Σn=0N-1 x[n]z-n
The ordinary frequency response is obtained by evaluating the transform on the unit circle:
z = ejω
Therefore:
X(ejω) = Σn=0N-1 x[n]e-jωn
Every time-domain sample becomes a complex rotating contribution in the frequency domain. The magnitude spectrum is determined by how those rotating contributions reinforce or cancel one another.
The ordered amplitudes of a finite sequence are also the coefficients of a polynomial in z-1. A zero is a value z = ζ for which:
X(ζ) = 0
This establishes a direct correspondence:
Frequency-domain zeros are therefore not independent decorations added to a spectrum. They are consequences of the ordered time sequence.
A localized cluster beginning at time index τ can be represented as:
xc[n] = Σm=0M-1 amδ[n - (τ + m)]
Its transform is:
Xc(z) = z-τA(z)
where:
A(z) = Σm=0M-1 amz-m
The cluster shape A(z) determines the nontrivial zero pattern. The delay factor z-τ changes phase but does not change the magnitude on the unit circle.
This produces an important distinction:
Consider two identical time clusters separated by D samples:
x[n] = a[n - τ1] + a[n - τ2]
where:
D = τ2 - τ1
The frequency-domain representation becomes:
X(ejω) =
A(ejω)
e-jωτ1
[1 + e-jωD]
The bracketed term can be rewritten as:
1 + e-jωD =
2e-jωD/2cos(ωD/2)
Cancellation occurs when:
ωD = (2k + 1)π
This simple relation demonstrates that the spacing of time clusters determines the spacing of frequency-domain troughs.
The following synthetic example contains two identical three-sample clusters. Their internal shapes are equal, but the second cluster occurs fourteen samples after the first.
The next graph compares the normalized spectrum of one cluster with the spectrum of the two-cluster sequence. The repeated cluster produces additional periodic troughs because of cancellation between the delayed copies.
| Time-domain property | Frequency-domain consequence | Practical interpretation |
|---|---|---|
| Short cluster duration | Broad spectral distribution | A brief impact generally affects a wide frequency range |
| Long or repetitive sequence | Narrower and more regularly spaced features | Sustained oscillation produces concentrated spectral structure |
| Large separation between repeated clusters | More closely spaced interference troughs | Longer delay creates denser comb-like cancellation |
| Small separation between repeated clusters | More widely spaced troughs | Shorter delay creates broader intervals between notches |
| Equal cluster amplitudes | Potentially deep or exact cancellation | Balanced paths can create strong spectral nulls |
| Unequal cluster amplitudes | Shallower troughs | Incomplete balance prevents exact cancellation |
| Opposite pulse polarity | Different zero locations and low-frequency behavior | Polarity carries structural information beyond energy |
| Timing jitter | Blurred or unstable troughs | Irregular repetition weakens a deterministic signature |
| Pure shift of an entire cluster | Phase change without magnitude change | Absolute event timing can be separated from local spectral shape |
A mathematical zero is an exact root in the complex plane. A measured spectral trough is an observed reduction along the real-frequency axis. The two concepts are closely related but not identical.
For a zero expressed as:
ζ = rejθ
θ is associated with the trough frequency;r indicates proximity to the unit circle;The time–frequency correspondence allows a spectral trough to be interpreted as evidence of a particular temporal relationship rather than merely as an absence of energy.
A finite waveform may be approximated as a sum of K localized clusters:
x[n] ≈
Σc=1K
Σm=0Mc-1
ac,m
δ[n - (τc + m)]
The corresponding z-transform is:
X(z) ≈
Σc=1K
z-τcAc(z)
where:
Ac(z) =
Σm=0Mc-1
ac,mz-m
Each cluster has an internal coefficient pattern, an onset time, a duration, and a zero structure. The complete waveform is formed by complex addition of all cluster contributions.
| Parameter | Meaning | Effect on the model |
|---|---|---|
K |
Number of time clusters | Controls structural complexity |
τc |
Starting time of cluster c |
Controls absolute and relative phase |
Mc |
Length of cluster c |
Controls polynomial order and possible zero count |
ac,m |
Amplitude and polarity of sample m |
Determines local waveform shape and cluster zeros |
Ac(z) |
Local cluster polynomial | Represents the cluster in the complex-frequency plane |
ζc,r |
Zero r associated with cluster c |
Indicates a potential cancellation frequency and depth |
A cluster polynomial may be factorized schematically as:
Ac(z) =
ac,0
∏r=1Mc-1
(1 - ζc,rz-1)
This factorization replaces the coefficient representation with a zero representation.
The zero representation can be more informative when the purpose is to compare spectral troughs across repeated events.
The zeros of individual cluster polynomials should not automatically be treated as the complete set of zeros of the full waveform.
For several clusters:
X(z) =
z-τ1A1(z)
+
z-τ2A2(z)
+ ...
The global zeros are solutions of the entire complex sum:
X(z) = 0
Consequently, global zeros can arise in two ways:
This distinction is central to CTSM because it separates local pulse shape from relationships among repeated or reflected events.
Cluster boundaries may be determined from several kinds of evidence:
A cluster should be long enough to preserve the relevant local structure but short enough to avoid mixing unrelated events.
Source comparison requires features that are not dominated by recording gain or arbitrary time origin. A cluster feature vector may include:
fc =
[
ãac,0, ...,
ãac,M-1,
Δτ,
log|ζc,1|, ...,
arg(ζc,1), ...,
Ec,
Tc
]
Representative feature categories are:
A model with too few clusters may merge separate physical events. A model with too many clusters may represent noise as meaningful structure.
One practical formulation is to minimize a regularized objective:
J =
Σn|x[n] - x̂[n]|2
+
λ1K
+
λ2
ΣcMc
The first term measures reconstruction error. The remaining terms penalize excessive numbers and lengths of clusters.
The exact objective may vary, but the principle remains important: the model should be complex enough to preserve stable cancellation structure without reproducing random fluctuations.
Polynomial-root estimation can be sensitive to noise, coefficient perturbation, and excessive model order. Small changes in a long coefficient sequence may move some roots considerably.
More reliable practice therefore includes:
A numerically estimated zero becomes useful only when it is stable, physically interpretable, and supported by repeated observations.
A source signature is a recurrent pattern that remains associated with a sound-producing mechanism across repeated observations. Under CTSM, the signature may contain more than dominant frequencies.
A CTSM source signature may include:
The signature is therefore a combined time–frequency structural description.
A single cluster can contain accidental noise, reflection, or measurement distortion. Repetition provides evidence that a pattern belongs to a persistent mechanism.
A candidate source feature becomes more credible when it:
CTSM therefore converts repeated local events into a statistical population of structured time sequences.
A measured signal is normally influenced by more than the source:
Ym(z) = Hm(z)S(z) + Nm(z)
S(z) represents the source;Hm(z) represents the path and sensor for channel m;Nm(z) represents noise and modeling error;Ym(z) is the measured sequence.In an ideal single-source convolution model, observed zeros may arise from either the source or the transfer path. With multiple paths or multiple sources, additional zeros may arise from cancellation among summed contributions.
Source-signature analysis must therefore ask:
Which cluster and zero features remain associated with the source when the observation path changes?
| Observed behavior | More consistent with | Interpretive reason |
|---|---|---|
| Feature remains stable across sensor positions | Source-related structure | The feature does not depend strongly on a single path |
| Feature moves when the sensor is relocated | Path-related cancellation | Relative propagation delay has changed |
| Feature follows rotational speed or repetition rate | Source-related timing mechanism | The pattern is synchronized with source operation |
| Feature follows the same microphone across different sources | Sensor-related response | The instrument remains the common element |
| Trough changes with window length or spectral resolution | Analysis artifact | The feature may not represent a stable physical zero |
| Feature recurs only in a particular acoustic location | Local path or room effect | The source remains unchanged while geometry differs |
| Cluster shape persists but overall amplitude changes | Potentially stable source signature | Gain variation does not alter normalized internal structure |
These relationships provide diagnostic evidence rather than absolute proof. A shared propagation path or correlated source behavior can make the distinction less clear.
A practical source template can be constructed through the following procedure:
The resulting template should include both a representative pattern and an uncertainty range. A source signature is more credible when variability is explicitly represented.
An unknown sound event can be compared with a source template through several forms of similarity:
A robust decision should combine several features. Dependence on a single trough or a single polynomial root can produce unstable classification.
| Feature | Physical meaning | Potential robustness |
|---|---|---|
| Normalized cluster coefficients | Local pulse shape and polarity | Moderate when timing alignment is reliable |
| Relative inter-pulse delay | Internal source timing or repeated excitation | High when synchronized with a stable mechanism |
| Zero angle | Approximate cancellation frequency | Moderate to high for stable low-order clusters |
| Zero radius | Expected depth or sharpness of a trough | Sensitive to noise and path distortion |
| Trough frequency | Observed manifestation of cancellation | Useful when repeated across events |
| Cluster duration | Temporal extent of the generating event | Moderate under consistent segmentation |
| Recurrence interval | Cycle, rotation, impact, or physiological rhythm | High when linked to a known periodic process |
| Cross-channel persistence | Independence from a particular observation path | Strong evidence when channel responses are sufficiently different |
| Field | CTSM application | Practical objective |
|---|---|---|
| Rotating machinery | Model repeated impacts or contact events as time clusters | Separate a recurring fault signature from enclosure and room effects |
| Gear and bearing monitoring | Track cluster spacing, polarity, and trough patterns | Detect changes in contact condition or damage progression |
| Musical instruments | Compare attack clusters and body-response cancellation | Characterize playing action, string excitation, or instrument construction |
| Loudspeaker testing | Separate transient source behavior from cabinet and room reflections | Identify whether a notch belongs to the transducer or the environment |
| Speech and voice analysis | Represent recurrent excitation and antiresonance patterns | Support speaker, articulation, or source–filter analysis |
| Structural acoustics | Model repeated impulses transmitted through a structure | Identify source events despite changing sensor positions |
| Biomedical acoustics | Compare recurrent cardiac, respiratory, or transient sound clusters | Separate stable acoustic patterns from tissue, sensor, and positional effects |
In cardiac and respiratory recordings, CTSM may assist in describing recurrent local events.
Such patterns can support signal separation, event classification, and longitudinal comparison. They should not be treated as direct diagnostic markers without clinical validation and careful control of sensor and propagation effects.
| Subsection | Principal question | Main analytical object | Practical result |
|---|---|---|---|
| 9.2.1 | How does a time sequence determine frequency-domain zeros and troughs? | Time samples, delays, transform coefficients, and zero locations | Physical interpretation of spectral cancellation |
| 9.2.2 | How can the relationship be expressed as a calculable model? | Clusters, local polynomials, relative delays, and feature vectors | A compact representation suitable for estimation and comparison |
| 9.2.3 | Which recurrent features belong to the sound source? | Stable cluster and zero patterns across repeated observations | Source templates, classification, and condition monitoring |
Time spacing and pulse shape determine spectral reinforcement and cancellation.
Local time sequences are represented through cluster polynomials and zeros.
Recurrent and path-resistant features are retained as source signatures.
| Method | Primary emphasis | Information commonly lost or reduced |
|---|---|---|
| Whole-record Fourier spectrum | Overall frequency content | Precise event timing and local pulse relationships |
| Short-time Fourier analysis | Frequency content within moving windows | Explicit polynomial and zero interpretation of local sequences |
| Peak tracking | Strong resonant components | Cancellation structure and spectral troughs |
| Generic feature clustering | Statistical similarity among feature vectors | Direct physical relationship between pulse arrangement and zeros |
| CTSM | Localized time structure and its zero pattern | Requires careful segmentation and stable root estimation |
Consider a machine that produces one short contact event during every rotation. The recorded signal contains the direct impact, structural ringing, enclosure transmission, and room reflection.
A CTSM analysis may proceed as follows:
| Observed CTSM change | Possible interpretation | Required confirmation |
|---|---|---|
| Impact cluster becomes larger but retains its shape | Increased excitation force or gain variation | Check load and sensor calibration |
| Relative pulse delay changes | Change in contact timing or propagation path | Compare rotational synchronization and sensor position |
| Stable zero angle shifts gradually | Change in local source or structural dynamics | Confirm across several channels and sessions |
| New trough appears only at one sensor | Local path cancellation | Relocate or replace the sensor |
| Cluster-to-cluster variability increases | Irregular contact, looseness, or unstable operating condition | Compare with operating load and mechanical inspection |
CTSM may also be applied after blind source separation or independent component analysis.
The processing sequence may be:
Multichannel recording
→
source separation
→
event segmentation
→
CTSM
→
source-signature comparison
Statistical source separation produces components, but it does not necessarily identify their physical origin. CTSM can add temporal and zero-structure evidence when labeling those components.
Repeated CTSM signatures can be compared over days, operating cycles, or treatment intervals. Longitudinal analysis is particularly valuable when absolute amplitude is unreliable but timing and normalized cluster structure remain measurable.
Useful longitudinal indicators include:
A stable trough is evidence of a stable cancellation relationship. It is not, by itself, proof of a particular physical source or condition.
The strongest interpretation arises when time-cluster structure, zero location, spectral evidence, operating synchronization, and multichannel consistency support the same conclusion.
Section 9.2.1 establishes that time-domain arrangement and frequency-domain cancellation are two representations of the same signal structure. Pulse spacing controls phase relations, while pulse shape controls the local polynomial and its zeros.
Section 9.2.2 converts that correspondence into a calculable model. A waveform is represented as a sum of localized time clusters, each described by coefficients, delays, and zeros. Recurrent models can then be compared quantitatively.
Section 9.2.3 uses stable CTSM patterns as candidate source signatures. Features that recur across events and remain reasonably consistent under changing observation conditions are treated as more likely to reflect the source.
The identity of a sound source is not contained only in its strongest frequencies. It may also be encoded in the ordered timing of its pulses and in the spectral cancellations produced by that timing.
CTSM therefore provides a conceptual bridge from localized waveform structure to complex zeros, from complex zeros to spectral troughs, and from recurrent trough patterns to a possible source signature.
Written on June 28, 2026
Section 9.3 introduces adjacent pairing time-pulse modeling, abbreviated as APTM, as a compact way to represent spectral zeros and troughs through elementary time-domain pulse pairs. The method proceeds from a local mathematical model of one zero, to the sequential extraction of several spectral troughs, and finally to the selection of troughs that may represent a sound-source signature.
Central proposition: A spectral trough can be represented by an elementary pair of adjacent time pulses. Several such pairs can be combined to represent a longer waveform, and selected troughs can provide a compact description of the source that generated the sound.
The principal sequence of ideas is:
Adjacent pulse pair
→
one complex zero
→
one spectral trough
→
iterative trough extraction
→
selected source signature
The following discussion is a technically grounded interpretation of Sections 9.3.1 through 9.3.3. It is intended to clarify the mathematical and practical logic of the method rather than reproduce the original text line by line.
Section 9.1 explains zeros through transfer functions, poles, residues, and modal cancellation. Section 9.2 connects a clustered time sequence with its zero structure. Section 9.3 reduces that broader theory to the smallest useful time-domain unit: a pair of adjacent pulses.
| Section | Principal viewpoint | Main question |
|---|---|---|
| 9.1 | Transfer-function representation | How do poles, residues, and modal interactions produce zeros? |
| 9.2 | Clustered time-sequence representation | How does a finite time sequence correspond to zeros in the frequency region? |
| 9.3 | Adjacent time-pulse representation | How can individual troughs be modeled, extracted, and selected as source features? |
| Term | Meaning | Analytical role |
|---|---|---|
| Adjacent | Separated by one discrete-time sample | Forms the elementary first-order factor |
| Pairing | Two pulse coefficients are treated together | Represents one complex zero |
| Time pulse | A discrete impulse or coefficient in the time sequence | Provides the time-domain realization of a zero factor |
| Modeling of zeros | Estimation of zero location from a local spectral region | Explains the position and depth of a spectral trough |
In the formal APTM model, “adjacent pairing” primarily means a direct discrete-time pulse and its one-sample-delayed companion. It does not necessarily mean two visibly separated acoustic peaks detected at arbitrary times.
Two physically separated impacts or reflections can also produce spectral troughs, but that is a broader delay-interference model. APTM begins with the elementary two-coefficient sequence associated with a first-order zero factor.
A narrow spectral interval surrounding a candidate minimum
A two-coefficient model fitted to the complex spectrum
Angle determines trough frequency; radius influences depth
Stable and meaningful troughs retained as source features
The elementary APTM sequence can be written as:
g[n] =
δ[n]
-
z0δ[n-1]
This sequence contains:
1;-z0;Its z-transform is:
G(z) =
1 -
z0z-1
The transform becomes zero at:
z = z0
One adjacent pulse pair therefore represents one zero.
A complex zero may be written in polar form:
z0 =
rejθ
Evaluating the factor on the unit circle gives:
G(ejω) =
1 -
rej(θ-ω)
Its squared magnitude is:
|G(ejω)|2 =
1 + r2 -
2r cos(ω - θ)
This equation provides the central interpretation of APTM:
θ: determines the frequency at which the trough is centered.r: determines how closely the zero approaches the unit circle.r = 1: produces exact cancellation at ω = θ in the ideal model.r near 1: produces a deep but nonzero trough.r far from 1: produces a shallower spectral depression.The following graph shows three elementary zero factors with the same zero angle but different radii. The trough frequency remains fixed, while the trough depth changes.
A single non-real zero generally requires its complex-conjugate partner when the complete time-domain sequence must remain real:
z0 =
rejθ,
z0* =
re-jθ
Their product is:
(1-z0z-1)
(1-z0*z-1)
=
1
-
2r cos(θ)z-1
+
r2z-2
The corresponding real-valued sequence contains three coefficients:
[1,\; -2r cos(θ),\; r2]
An individual adjacent pair is therefore most naturally interpreted in a complex representation. A real waveform combines conjugate factors so that the final coefficients remain real.
A finite sequence with several zeros can be factorized as:
X(z) =
Kz-d
∏q=1Q
(1-zqz-1)
Each factor represents one adjacent pulse pair. Multiplication of the factors in the z-domain corresponds to convolution of their pulse pairs in the time domain.
Consequently:
Section 9.3.1 formulates the estimation of a single zero from observed complex spectral data surrounding a trough. The central task is to approximate the local spectrum with a two-coefficient time sequence.
The local model may be expressed as:
B(ω) ≈
c0
+
c1e-jω
The two coefficients form an adjacent pulse pair:
c =
[c0,\;c1]T
After normalization by c0, the fitted zero is:
ẑ0 =
-
ĉ1 /
ĉ0
This relation follows from:
c0
+
c1z-1
=
c0
(1-z0z-1)
Suppose that complex spectral samples are collected at frequencies:
ω0,
ω1,
...,
ωL-1
The observation vector is:
b =
[
B(ω0),
B(ω1),
...,
B(ωL-1)
]T
The model matrix is:
A =
[
[1,\;e-jω0],
[1,\;e-jω1],
...,
[1,\;e-jωL-1]
]
The local model is:
Ac ≈ b
A complex least-squares estimate is:
ĉ =
(AHA)-1
AHb
where AH denotes the conjugate transpose. A weighted formulation may be used when the spectral samples have unequal reliability:
ĉ =
(AHWA)-1
AHWb
Larger weights can be assigned to samples close to the trough or to samples with higher signal-to-noise ratio.
A spectral trough is caused by cancellation, and cancellation depends on both magnitude and phase. Magnitude-only fitting can locate a depression, but it generally contains less information about the underlying complex zero.
Complex fitting preserves:
This makes APTM conceptually different from merely detecting a local minimum in a power spectrum.
| Property | Peak-oriented line-spectrum modeling | APTM |
|---|---|---|
| Primary target | Prominent spectral peak | Prominent spectral trough |
| Principal complex feature | Pole or resonant component | Zero or cancellation component |
| Time-domain interpretation | Oscillatory or decaying response | Adjacent pulse pair |
| Local observation | Spectral region around a peak | Spectral region around a trough |
| Physical meaning | Resonant reinforcement | Destructive interference or suppression |
| Typical result | Resonance frequency and bandwidth | Trough frequency, depth, and zero location |
| Estimated quantity | Mathematical meaning | Possible physical interpretation |
|---|---|---|
arg(ẑ0) |
Zero angle | Center frequency of the modeled trough |
|ẑ0| |
Zero radius | Potential depth or sharpness of cancellation |
ĉ1/ĉ0 |
Relative complex pulse coefficient | Amplitude and phase relationship of the adjacent pair |
| Local residual error | Difference between observation and fitted model | Reliability of the single-zero approximation |
| Fitted frequency interval | Region used by the least-squares model | Spectral extent over which one zero is dominant |
A spectral trough can be modeled locally by fitting two adjacent time coefficients. The normalized coefficient ratio provides an estimate of the zero responsible for the trough.
The formulation transforms a visible spectral depression into a compact mathematical object that can be compared, removed, tracked, and selected.
In the immediate context of APTM, spectral trough tracking is best understood primarily as the sequential pursuit of prominent troughs across a spectrum. After one trough is modeled, its contribution is removed from the logarithmic spectral representation so that another trough can be exposed and modeled.
Tracking a trough from one time frame to the next is a useful practical extension, but it is not the only or necessarily the primary meaning of the subsection.
Suppose that a spectral response contains several zero factors:
H0(z) =
H1(z)
H2(z)
...
HQ(z)
The magnitude response is multiplicative:
|H0(ejω)|
=
∏q=1Q
|Hq(ejω)|
Taking the logarithm converts the product into a sum:
log|H0|
=
∑q=1Q
log|Hq|
After estimating the first trough factor:
log|H0|
-
log|Ĥ1|
≈
log|H2H3...HQ|
The residual spectrum can then be searched for the next trough.
Possible stopping criteria include:
The graph below presents a synthetic spectrum formed by three zero factors and a smooth baseline. Removing the first modeled factor exposes the remaining troughs. Removing the second factor leaves the final trough and the baseline.
Before an APTM fit is attempted, candidate local minima must be found. A practical detector may consider:
A low spectral value alone is insufficient. A frequency region near the measurement noise floor can resemble a trough without containing a reliably estimable zero.
Each extracted trough can be stored as a structured record:
Tq =
{
θq,
rq,
dq,
wq,
eq,
cq
}
where:
θq is the zero angle or trough frequency;rq is the zero radius;dq is the trough depth;wq is the effective trough width;eq is the local fitting error;cq is a confidence or persistence score.The ordered collection:
{T1, T2, ..., TQ}
provides a compact representation of the prominent trough structure.
When the signal changes over time, APTM may be applied to successive short-time frames. Troughs can then be associated between neighboring frames according to frequency, radius, depth, and model similarity.
A simple association cost may take the form:
Cij =
α|θi,t - θj,t+1|
+
β|ri,t - rj,t+1|
+
γ|di,t - dj,t+1|
This extension produces trough trajectories such as:
Tq(t) =
[θq(t), rq(t), dq(t)]
Such trajectories can describe a changing source, but they should be distinguished from the basic iterative spectral extraction procedure.
| Observed behavior | Possible interpretation | Recommended response |
|---|---|---|
| Trough remains stable after changes in spectral resolution | Potentially robust zero structure | Retain for further source analysis |
| Trough disappears after slight smoothing | Possible noise fluctuation or leakage artifact | Reduce confidence or reject |
| Trough location is stable but depth fluctuates | Stable zero angle with varying gain, noise, or radius | Separate frequency stability from depth stability |
| Trough shifts with microphone position | Possible propagation-path or room zero | Do not assign directly to the source |
| Trough follows a source operating parameter | Possible source-related structure | Test the relationship across repeated trials |
| Two troughs merge into one broad depression | Overlapping zero factors or insufficient resolution | Use a wider model or higher-resolution observation |
A complicated spectral envelope can be analyzed progressively by fitting one prominent zero factor, removing its logarithmic contribution, and repeating the procedure for the remaining troughs.
Not every measured trough belongs to the sound source. A recorded spectrum may contain zeros produced by:
Section 9.3.3 therefore moves beyond detection. Its central task is to select the troughs that provide a useful and sufficiently stable representation of the source.
A source signature is a recurrent signal pattern associated with the mechanism that initiates or generates the observed response. Under APTM, the signature can be represented by a selected collection of zero factors:
Ŝsig(z) =
K
∏q∈Ωs
(1-ẑqz-1)
Here, Ωs denotes the selected subset of zeros considered relevant to the source.
An alternative feature-vector representation is:
s =
[
f1, d1, r1,
f2, d2, r2,
...,
p1, p2, ...
]
where f denotes trough frequency, d denotes depth, r denotes zero radius, and p denotes persistence or confidence.
A resonant response can strongly emphasize the poles of the receiving structure. The source excitation may be more difficult to recognize from peak magnitudes alone because those magnitudes are dominated by resonant amplification.
A source-generated zero can influence a broad portion of the spectral envelope and may remain visible between resonance peaks. Trough analysis can therefore complement pole and peak analysis by preserving information that is weakly represented in the dominant resonances.
In the piano-string example motivating the method, prominent troughs are associated with the initial cyclic waveform that contains information about the excitation source. APTM provides a compact representation of those trough-producing features.
| Criterion | Meaning | Reason for inclusion |
|---|---|---|
| Prominence | The trough is sufficiently deep relative to its local baseline | Reduces sensitivity to small random fluctuations |
| Model fit | An adjacent-pair factor accurately reconstructs the local complex response | Supports interpretation as a meaningful zero |
| Repeatability | The trough recurs across repeated source events | Distinguishes persistent structure from accidental noise |
| Frequency stability | The zero angle remains within an acceptable range | Provides a reproducible signature coordinate |
| Source synchronization | The feature follows a known source cycle or operating condition | Strengthens source attribution |
| Path resistance | The feature persists under moderate changes in observation position | Reduces confusion with a local transfer-path zero |
| Sensor independence | The feature is not tied to one measurement device | Reduces instrument-response contamination |
| Physical plausibility | The feature is compatible with the expected source mechanism | Prevents purely numerical interpretation |
| Observed behavior | More consistent with | Interpretive basis |
|---|---|---|
| Trough recurs across several sensor positions | Possible source-related zero | The feature is not confined to one observation path |
| Trough moves substantially when the sensor is relocated | Path or spatial-interference zero | Propagation geometry has changed |
| Trough follows rotational speed or excitation timing | Source-related mechanism | The feature is synchronized with source operation |
| Trough appears with the same microphone in unrelated recordings | Sensor-related zero | The measurement device is the common element |
| Trough changes when the analysis window changes slightly | Possible analysis artifact | The feature lacks numerical stability |
| Trough remains stable while the total level changes | Potential structural signature | Zero position is less dependent on overall gain |
| Representation | Contents | Suitable use |
|---|---|---|
| Ordered zero list | {z1, z2, ..., zQ} |
Mathematical comparison and signal reconstruction |
| Trough-feature vector | Frequency, depth, width, radius, and confidence | Classification and statistical analysis |
| Factorized polynomial | Product of selected adjacent-pair factors | Compact source-waveform modeling |
| Frequency mask | Selected trough regions over a normalized frequency axis | Rapid matching and visualization |
| Temporal trajectory | Selected trough parameters as functions of time | Nonstationary or changing-source analysis |
| Statistical template | Mean values, covariance, and occurrence probabilities | Recognition under measurement variability |
The full collection of measured troughs should not automatically be treated as a source signature. A source signature is formed by selecting the troughs that are prominent, repeatable, well modeled, and reasonably independent of the observation path.
| Subsection | Principal question | Main operation | Result |
|---|---|---|---|
| 9.3.1 | How can one spectral trough be represented? | Fit an adjacent two-pulse model by least squares | One estimated complex zero |
| 9.3.2 | How can several troughs be extracted? | Remove one modeled log-spectrum contribution and repeat | An ordered collection of trough factors |
| 9.3.3 | Which troughs describe the source? | Evaluate prominence, stability, recurrence, and path dependence | A selected source-signature representation |
One adjacent pulse pair represents one local spectral zero.
Successive trough factors are identified through iterative logarithmic subtraction.
Stable and source-related troughs are retained as a compact signature.
A struck string produces an initial source-related waveform followed by a longer resonant response. Resonance peaks are strongly determined by the string and instrument structure, while the initial excitation can influence the spectral envelope and its troughs.
APTM can be used to:
In structural testing, a measured vibration is the product of the applied force spectrum and the structural transfer function:
Y(ω) =
H(ω)F(ω)
Resonance peaks are commonly dominated by H(ω). Troughs associated with F(ω) may provide information about:
Measurements from several structural locations are needed to distinguish force-related zeros from path-related zeros.
Repeated mechanical events can generate stable trough patterns. Changes in contact geometry, looseness, wear, or impact timing may alter the corresponding APTM factors.
| Observed change | Possible meaning | Required confirmation |
|---|---|---|
| Stable trough frequency shifts gradually | Change in source or structural dynamics | Confirm across sensors and operating conditions |
| New trough appears at every operating cycle | New repeatable excitation component | Compare with mechanical inspection |
| Trough appears at only one sensor | Local transfer-path cancellation | Relocate the sensor |
| Zero radius becomes more variable | Unstable cancellation or irregular excitation | Compare with load and speed variation |
| Overall amplitude changes but zero angles remain stable | Gain or force-level change without major structural change | Check calibration and operating load |
A measured loudspeaker response contains contributions from the driver, crossover network, cabinet, room, microphone, and source–receiver geometry. APTM can assist in decomposing prominent troughs into compact zero factors.
Practical questions include:
A trough that changes strongly with observation position is more likely to belong to the propagation path than to the source signature.
Direct and reflected sound can produce comb-filter troughs. APTM can provide a local zero representation of those troughs, although the resulting zeros describe the source–room–receiver configuration rather than the source alone.
This distinction has practical value:
Speech contains resonances, antiresonances, source excitation, and time-varying articulation. Selected troughs can complement formant-peak analysis, particularly when antiresonant structure is relevant.
Possible uses include:
Speech is highly nonstationary, so frame alignment, phonetic context, and path normalization remain necessary.
APTM may be explored as a feature-extraction method for short cardiac or respiratory sound events. Potential targets include:
A suitable processing sequence may be:
Multichannel recording
→
denoising or source separation
→
event segmentation
→
complex spectral estimation
→
APTM trough extraction
→
recurrent-feature selection
In biomedical use, an APTM trough should be treated as an exploratory signal feature rather than a direct disease marker. Clinical interpretation requires validation across subjects, sensors, body positions, and recording sessions.
Blind source separation or independent component analysis can produce statistically separated components without determining their physical identity. APTM features can provide supplementary labeling evidence.
| Component behavior | Possible interpretation |
|---|---|
| Stable low-frequency trough pattern synchronized with cardiac cycles | Potential cardiac-related component |
| Broadband transient clusters with recurrent adjacent-pair factors | Potential crackle-like or impact-like component |
| Troughs change strongly with sensor position | Possible path-dominated component |
| Features recur without physiological synchronization | Possible environmental or handling artifact |
| Output field | Purpose |
|---|---|
| Event or frame identifier | Connects the estimate to the original recording |
| Zero angle and equivalent frequency | Specifies the trough location |
| Zero radius | Describes proximity to exact cancellation |
| Trough depth and width | Describes the observed spectral manifestation |
| Adjacent-pair coefficients | Preserves the time-domain representation |
| Local fit error | Measures model adequacy |
| Recurrence count | Measures repeatability |
| Cross-channel stability | Supports source–path discrimination |
| Selection status | Indicates source signature, path feature, sensor feature, or uncertain |
A normalized magnitude response may not uniquely distinguish a zero outside the unit circle from a related reciprocal-conjugate zero inside the unit circle. Phase information, causality assumptions, minimum-phase constraints, or time-domain support may be required.
This is another reason that APTM is most meaningful when complex spectral data and a physically justified time-sequence model are available.
For a single source and a single path:
Y(z) =
H(z)S(z)
Zeros of the observation may originate from either H(z) or S(z). Several source–path factorizations can explain the same measured response.
More reliable interpretation requires:
A well-fitted spectral trough demonstrates a stable cancellation pattern in the selected observation. It does not, by itself, prove which physical component created that cancellation.
Section 9.3.1 establishes the elementary model. One zero is represented by a direct time pulse and a one-sample-delayed pulse. A least-squares fit around a spectral trough estimates the complex coefficient ratio and therefore the zero location.
Section 9.3.2 extends the model from one trough to several troughs. A fitted zero factor is removed in the logarithmic spectral domain, the residual is searched, and the procedure is repeated.
Section 9.3.3 converts the extracted trough collection into a source representation. Only the troughs that are prominent, reproducible, well fitted, and reasonably resistant to path changes are retained.
A source signature may be encoded not only in strong spectral peaks, but also in the adjacent time-pulse relationships that generate stable spectral troughs.
APTM provides the final bridge in Chapter 9:
Time-pulse coefficients
→
complex zeros
→
spectral troughs
→
selected source signature
Its practical significance lies in turning the apparent absence of spectral energy into a structured and testable signal feature. Peaks describe where a response is reinforced. APTM describes how local time-domain relationships produce cancellation and how selected cancellation patterns may help identify the originating source.
Written on June 28, 2026