Repository navigation
Forensic Hardening, Multichannel DSP & O(1) Clipping Memory (Engine 14.6)
- Multichannel (
>=3ch), anti-phase (L = -R) & zero-energy spectral guard (_motor_espectral.py): Multichannel FLAC streams (3.0, 5.1, 7.1) now detect and measure active full-range channels instead of reading only channels0and1(preventing silent Front L/R channels from producing a flat-floorceiling = Nyquistverdict), out-of-phase stereo signals fall back to Side-channel energy when Mono cancels, and_spectral_metricsrejects all-floor spectra with no real signal energy (ENGINE_VERSION = "14.6"). - Per-channel
O(1)-memory clipping tracker (_motor_bits.py,motor_flac.py): Fixed a block-boundary edge case in_streakswhere an open saturation run was dropped if the next block's first run started atindex > 0, isolated clipping run tracking per channel so alternating single-sampleL / R / Lpeaks never merge into false 3-sample runs, and replaced the unbounded run-length list with_ClippingAccumulator(dropping 4-minute alternating-clipping heap usage from44.24 MiBto0.0115 MiB). - Cache, atomic PNG & path hardening (
_motor_cache.py,_motor_espectral.py,_motor_veredicto.py,motor_flac.py): BumpedCACHE_SCHEMA_VERSION = "2.5.0". Malformed cache JSON files or non-dict nested fields now degrade cleanly to cache misses without aborting batch runs; spectrogram PNGs are mode-scoped, written atomically, and verified against the 8-byte PNG signature on read; cache hits refresh callerruta/archivofields; and digital-silence orSTREAMINFO MD5mismatch files short-circuit before running STFT or writing PNGs. - CLI, PDF, build & POSIX/GUI lifecycle (
build.py,verificar_flac.py,informe_pdf.py,gui.py):build.pynow fails on non-zero--versionexit codes,verificar_flac.pyincludesindeterminatecounts in folder summaries,informe_pdf.generate()guardsindice_originalsorting insidetry/except,gui.pyterminates full POSIX worker process groups (start_new_session=True/os.killpg) on Cancel and surfaces partial multi-album queue failures, and the test suite expands from 383 to 401 tests.
Validation: 401 unit tests (OK), 260-track real-encoder & adversarial benchmark PASS (TP=150/150 sensitivity 100.0%, TN=110/110 specificity 100.0%, album coherence PASS), and 12/12 frozen executable checks (FLAC_Verifier.exe / flac_motor.exe). SHA-256 of FLAC_Verifier_2.10.1-win64.zip: 8bfff06d31fd7e7d3d1bc30fc25d987370fedbaf76700a065ce28446a4589b17.