How hana225-hub/prime-anc works
PRIME-ANC is a research implementation for active-noise-control filter design: it turns calibrated primary/secondary paths into causal FIR filters, optionally refines them, and scores frozen filters against evaluation paths and audio. The README also documents training-objective development, calibration, WMMSE and adaptive reference methods. Relationships below follow excerpts, SOURCE INDEX references, or README statements; unsampled internals are represented only where documented.
Main entry points: synthesis.py Path-to-FIR synthesis · replay_adaptive_table.py Adaptive replay · synthesize.py Synthesis command · fast_gn.py Gauss–Newton solver
Components 15
Filter synthesis
- Synthesis command
scripts/synthesize.py - Path-to-FIR synthesis
prime_anc/synthesis.py - Path features
prime_anc/features.py - Generator and realization
prime_anc/models.py - Path calibration
prime_anc/calibration.py
Filter refinement
- Gauss–Newton solver
prime_anc/refinement/fast_gn.py - Fused GPU PCG
prime_anc/refinement/fused_pcg.py
Scoring and references
- Evaluation command
scripts/evaluate.py - Frozen-FIR scorer
prime_anc/evaluation.py - Direct WMMSE
prime_anc/baselines/wmmse.py - Adaptive references
prime_anc/baselines/adaptive.py - Adaptive replay
scripts/replay_adaptive_table.py
Method development
- Training objective
prime_anc/training.py - Output controls
prime_anc/ablations.py
Other components
- Engineer
Connections 15
- Engineer → Synthesis command: runs
README.md - Synthesis command → Path-to-FIR synthesis: calls
scripts/synthesize.py - Path-to-FIR synthesis → Path features: builds features
prime_anc/synthesis.py - Path-to-FIR synthesis → Generator and realization: loads and realizes
prime_anc/synthesis.py - Engineer → Path calibration: calibrates paths
README.md - Engineer → Gauss–Newton solver: refines FIR
README.md - Gauss–Newton solver → Fused GPU PCG: dispatches fused solve
prime_anc/refinement/fast_gn.py - Engineer → Evaluation command: runs scoring
README.md - Evaluation command → Frozen-FIR scorer: calls
scripts/evaluate.py - Engineer → Direct WMMSE: designs comparison FIR
README.md - Engineer → Adaptive replay: replays references
README.md - Adaptive replay → Frozen-FIR scorer: scores FIR banks
scripts/replay_adaptive_table.py - Adaptive replay → Adaptive references: replays methods
README.md - Engineer → Training objective: develops objective
README.md - Engineer → Output controls: compares controls
README.md