Skip to content

Cleanup TestHTML#308

Merged
mscuthbert merged 2 commits into
masterfrom
cleanup_testHTML
May 12, 2026
Merged

Cleanup TestHTML#308
mscuthbert merged 2 commits into
masterfrom
cleanup_testHTML

Conversation

@mscuthbert

Copy link
Copy Markdown
Member

Update README.md to link to demos.

Several long-dormant bugs found while making the testHTML demos actually work:

  • Pitch.frequency returned wildly wrong values — a ** operator-precedence bug introduced when Math.pow(2, (ps-69)/12) was migrated to 2 ** (ps-69) / 12 (regression test added).
  • audioSearch.sampleCallback overrides were silently ignored since the AMD→ES port; dispatch now goes through config.sampleCallback, the default is empty, the callback type is void, fix a bug capping minimum pitch detection at ~F#3. Remove ability to cancel the animationLoop by returning -1 from the callback -- added docs about how to do so.
  • editableAccidentalDOM captured a stale svg reference; toolbar now walks the DOM each click.

testHTML files cleaned: script tags moved into <head>, ids double-quoted, inline style= consolidated. README + CDN snippets fixed (music21.debug.js, jsDelivr GH). Version bumped to 0.23.0; releases/ rebuilt.

AI-Assisted (Claude) - human supervised and reviewed (MSAC)

@mscuthbert mscuthbert merged commit 5aaf0f2 into master May 12, 2026
4 checks passed
@mscuthbert mscuthbert deleted the cleanup_testHTML branch May 12, 2026 09:04
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