Skip to content

Release 1.3.0: AUDMOD loudness, binary desensitization, repo cleanup - #3

Merged
euphonic-euphemism merged 97 commits into
masterfrom
release-1.3.0
Oct 3, 2026
Merged

euphonic-euphemism merged 97 commits into
masterfrom
release-1.3.0

Conversation

@euphonic-euphemism

@euphonic-euphemism euphonic-euphemism commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Prepares SII 1.3.0 for CRAN.

Package changes

  • Loudness now uses the C++ AUDMOD port (Bramslow, 2004), validated against AMT 1.6.0 bramslow2004 at every stage (23 test cases).
  • open_nl() uses a normal-hearing loudness cap by default; the previous rule remains available as cap_rule = "legacy".
  • open_nl() optimizes the Johnson & Dillon (2011) desensitized SII by default (objective_sii).
  • Desensitization is binary: "none" (ANSI S3.5) or "johnson2011_desensitized". The "johnson2011_smoothed" option and the desensitization_scale argument are removed. The old name "johnson2011_complete" still works with a deprecation warning.
  • sii() no longer floors negative insertion gain at 0 dB.
  • DESCRIPTION: version 1.3.0, updated description, clinical-use note restated as a disclaimer.

Repository cleanup

  • Removed compiled objects, the bundled Typst binary, and scratch files; tightened .gitignore and .Rbuildignore.
  • Restored normal file permissions.
  • Rewrote reproducibility_scripts/README.md to map each script to the manuscript result it produces and the package version it runs on.
  • Added the AMT harness used to generate the AUDMOD reference output.

Before merging

  • R CMD check passes (GitHub Actions)
  • devtools::check(args = "--as-cran") passes locally
  • win-builder (R-devel) passes

euphonic-euphemism and others added 28 commits September 20, 2026 12:06
A sync of the working folder had marked every file executable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Drops compiled objects from src/, a stray open_nl.R.bak, the Typst
binary and tarball, test/pasted Typst files and other scratch output.
Extends .gitignore and .Rbuildignore so they stay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Bump version and date, drop the hand-set Repository field, fix the
duplicated ANSI citation, describe the AUDMOD loudness engine, and
restate the clinical-use note as a disclaimer rather than a usage
restriction (GPL-3 does not allow added use restrictions). Add a
NEWS entry for the AUDMOD switch and track cran-comments.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
The Rd still described desensitization as a logical flag and gave no
meaning for desensitization_scale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
run_amt_harness.m and its log were excluded by the *.m and *.txt
ignore rules, so the AMT fixtures could not be regenerated from the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
…llon

sii() and open_nl() no longer take desensitization_scale. Desensitization
is "none" (ANSI S3.5) or "johnson2011_complete"; there is no partial
blend. Passing the old argument now stops with an error instead of being
silently absorbed by '...'.

Drops test-desens-scale.R, removes the argument from report_sii() and
from reproducibility scripts that fixed it at 1. Scripts that swept the
scale or scored the removed smoothed SII are left as a record of earlier
analyses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Renamed in sii(), open_nl(), their docs, data-raw and the reproducibility
scripts. The old name still works with a deprecation warning.

Also repoints the objective-line anchor in rerun_complete_objective.R and
rerun_ansi_objective.R, which the previous commit broke by dropping the
trailing comma from that line in open_nl().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Maps each script to the result it produces and says which run on 1.3.0:
the JAAA manuscript scripts (from Supplement Table S5) and the package
verification checks. Earlier JAAA analyses and the JASA-manuscript scripts
are listed with the commit to check out, or noted as having run on
uncommitted states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
loss = NULL was passed to sii() inside the objective, which stopped with a
length error on every evaluation; the error was caught and scored as a
constant, so Nelder-Mead returned the starting gains. Treat a missing loss
as zero, as the other prescription functions do. Adds a regression test
that a binding cap lowers gain and that omitted loss equals loss = 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
They were passed by position and landed in the unused age and age_months
arguments, so MPO ignored conductive loss. No change for sensorineural
losses (loss = 0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
calculate_loudness() on the sii() result estimated the speech level from a
6-band spectrum without bandwidth correction (~25 dB low); the target
carries the input level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
The old expectation was the unoptimized starting gains returned while
open_nl() skipped optimization. Exact Nelder-Mead output is also fragile
across platforms, so check the property the rule guarantees.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YHh2bEK6jM9B1z22Y56h7h
@euphonic-euphemism
euphonic-euphemism merged commit 805d7f5 into master Oct 3, 2026
1 check passed
@euphonic-euphemism
euphonic-euphemism deleted the release-1.3.0 branch October 3, 2026 15:50
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.

1 participant