Expand description
Direct/ambience signal separation algorithm.
This module implements the coherence-based separation of direct sound from room ambience using inter-bin phase analysis.
§Algorithm Overview
The separation is based on the observation that:
- Direct sound has coherent phase relationships between neighboring frequency bins (the phase progression follows a predictable pattern related to time-of-arrival)
- Ambience/reverb has random, diffuse phase relationships
We use multiple cues:
- Inter-bin phase coherence: Direct sound shows correlated phase between neighbors
- Spectral flux: Transients (direct attacks) have higher positive flux
- Temporal stability: Ambience is more temporally stable
- Magnitude correlation: Direct sound often shows correlated magnitude envelopes
Structs§
- Coherence
Analyzer - Coherence analyzer for bin-to-bin relationships.
- Separation
Config - Configuration for signal separation.
- Signal
Separator - Signal separator that applies the coherence analysis to split signals.
- Stereo
Separator - Stereo separation for maintaining spatial information.