Skip to content

Fix simplify interval docs - #486

Open
danigb wants to merge 1 commit into
mainfrom
feat/fix-internavl-simplify-docs
Open

Fix simplify interval docs#486
danigb wants to merge 1 commit into
mainfrom
feat/fix-internavl-simplify-docs

Conversation

@danigb

@danigb danigb commented Jan 18, 2026

Copy link
Copy Markdown
Collaborator

Fixes #477

danigb pushed a commit that referenced this pull request Jul 18, 2026
Several README code examples printed outputs that don't match the
actual behavior of the published `tonal` package (v6.4.3), verified
by running each snippet against the installed npm package:

- packages/tonal/README.md: Note.midi("A4") documented as 60, actual
  is 69; Note.freq("a4").freq called .freq on a number (undefined),
  fixed to Note.freq("A4") // => 440.
- packages/pcset/README.md: Pcset.num(["c","d","e"]) and related
  chroma/num round-trip examples documented 2192, actual is 2688
  (consistent with the set's own chroma "101010000000" and with the
  Pcset.get() example earlier in the same file); Pcset.intervals(
  ["c","d","e"]) documented ["1P","5P","7M"], actual is
  ["1P","2M","3M"].
- packages/scale-type/README.md: examples called the nonexistent
  ScaleType.scale(...), corrected to the real API ScaleType.get(...).

packages/interval/README.md intentionally left untouched (maintainer
has an open docs PR #486 there). chord-type/README.md's Chord.detect
example was re-checked and found to already be correct as documented,
so it was left alone.

Co-authored-by: ymxlx <272607612+ymxlx@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.

Discrepancy between docs and actual result of Interval.simplify

1 participant