Skip to content

Add proc_audio harmonic spectrum export contract regression tests.#61

Merged
LuisMRaimundo merged 1 commit into
mainfrom
phase12/proc-audio-harmonic-spectrum-export
Jun 13, 2026
Merged

Add proc_audio harmonic spectrum export contract regression tests.#61
LuisMRaimundo merged 1 commit into
mainfrom
phase12/proc-audio-harmonic-spectrum-export

Conversation

@LuisMRaimundo

Copy link
Copy Markdown
Owner

Adds a Phase 12 proc_audio harmonic spectrum / candidate export contract layer.

New file:
tests/phase_12/test_proc_audio_harmonic_spectrum_contract_additional.py

Adds 17 helper-level regression tests covering:

  • harmonic candidate row construction
  • raw amplitude/power column contracts
  • per-note export schema validation
  • harmonic / inharmonic / subbass candidate separation
  • subbass harmonic protection DataFrame construction
  • residual pipeline DataFrame separation
  • debug-count export fields
  • harmonic candidate DataFrame determinism and non-mutation

Validation:

  • 17 passed for the new file
  • 1212 passed, 3 skipped for the full suite
  • proc_audio.py coverage: 66.4% → 66.6%

Production code untouched.

Pin export-schema validation, Amplitude_raw/Power_raw column contracts, sub-bass harmonic protection DataFrames, and non-harmonic residual pipeline separation before compile.

Co-authored-by: Cursor <cursoragent@cursor.com>
@LuisMRaimundo LuisMRaimundo merged commit f62ca58 into main Jun 13, 2026
4 checks passed
@LuisMRaimundo LuisMRaimundo deleted the phase12/proc-audio-harmonic-spectrum-export branch June 13, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants