Skip to content

Fix musical key names for F minor and D-flat major - #195

Open
v1vendi wants to merge 1 commit into
xsco:mainfrom
v1vendi:worktree-musical-key-printing
Open

Fix musical key names for F minor and D-flat major#195
v1vendi wants to merge 1 commit into
xsco:mainfrom
v1vendi:worktree-musical-key-printing

Conversation

@v1vendi

@v1vendi v1vendi commented Aug 25, 2026

Copy link
Copy Markdown

operator<< for musical_key writes two keys under the wrong name:

  • f_minor prints as "F", dropping the minor suffix — which is the name of f_major.
  • d_flat_major prints as "D♭m", gaining one — which is the name of d_flat_minor.

In both cases the output collides with a different key in the same enum, so neither can be told apart from its neighbour by anything reading the stream. Noticed while reading real key names off a rekordbox device, where three tracks in F minor were displayed as F major.

The stream operator for `musical_key` wrote `f_minor` as "F" and
`d_flat_major` as "D♭m", each dropping or gaining the minor suffix.  Both
collided with the name of a different key -- "F" is `f_major` and "D♭m" is
`d_flat_minor` -- so neither could be told apart from its neighbour by
anything reading the output.

The other twenty-two entries are correct.

Co-Authored-By: Claude Opus 5 <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.

1 participant