Skip to content

[Bug]: Scale detection and reporting #726

Closed

Description

@wastedbits

Before reporting

  • I'm on the latest release and the issue still happens.
  • I searched existing issues and didn't find a duplicate.

What happened?

I played the song Plug in Baby by Muse. Its scale as recorded is B harmonic minor scale. However Stemdeck engine reports it as D Major. Technically it not wrong as D Major is the relative major of B harmonic minor scale.

On one hand I could view this as Not a Bug but then every minor scale has a relative major scale, so in a sense everything could be just stated as Major. That doesn't seem right.

However, I picked this song to not only see what Stemdeck reports and to also see if it shows it well in the UI. I was pretty sure it wouldn't as the Scale Field in the UI feels like it is short in length

Steps to reproduce

  1. Please check why it doesn't detect the scale correctly
  2. Also this song was detected as Major and it seems that info is redundant in many places In the UI. See image

My suggestion for UI is

  1. I believe the Fields for BPM Duration, and Dynamic Range are unnecessarily too long.
  2. lose the field called Scale. Make Key Field long enough to show for instance.... B Harmonic MInor XXX%

Operating system

Windows

StemDeck version

0.19.0

How did you install it?

Windows ZIP

Logs / screenshots

Image

Activity

  1. thcp commented on Oct 1, 2026

    @thcp
    Collaborator

    The detector now listens to how the song starts and ends, which is where a song usually sits on its home chord, and after separation it checks again using the bass stem on its own. It can now also report harmonic minor. On a set of test songs with known keys, it went from 21 to 30 out of 33 correct.

    On the display, Key and Scale are now one field, so a song reads "B minor" or "B harmonic minor" once instead of three times, and the field is wider so it fits.

    Songs already in your library keep the key they were given; separating one again picks up the new detection. This is in the next release. Let me know what it says for Plug in Baby.

  2. self-assigned this
    on Oct 1, 2026
  3. added a commit that references this issue on Oct 1, 2026
    d78fa34
  4. added a commit that references this issue on Oct 2, 2026
    939d66e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions