Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine the melody key #94

Open
oggy22 opened this issue Feb 20, 2022 · 2 comments
Open

Determine the melody key #94

oggy22 opened this issue Feb 20, 2022 · 2 comments

Comments

@oggy22
Copy link
Owner

oggy22 commented Feb 20, 2022

Given a melody determine the key of the melody. Key is the pair of the note and either major or minor, for example C major or e minor. Alternatively minor can include scale such as melodic, harmonic or natural.

@oggy22
Copy link
Owner Author

oggy22 commented Mar 17, 2022

Algorithm draft:

  • Make a toneset of all the melody tones
  • Determine what major/minor scale is superset of the toneset. Possibly include harmonic and melodic. If there is none, try with removing some notes from the tonset.
  • If there is one candidate, determine if it's major or paralel minor by examining key notes.
  • If there are more candidates, there are 2x key candidates.

@oggy22
Copy link
Owner Author

oggy22 commented Mar 26, 2022

Duplicate of #54

@oggy22 oggy22 marked this as a duplicate of #54 Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant