-
Notifications
You must be signed in to change notification settings - Fork 31
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
re: Change encoding of pitch classes #20
re: Change encoding of pitch classes #20
Conversation
I came here to finally take care of this just now and it's already been done! Thanks! |
That's super cool @henryksloan! Left some comments for the Let me know what you think! 💪 |
@ozankasikci good points, all done! I removed that I also extended |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, I'm really happy that we now have accidentals support! 👍
Original PR is #15 by @jagen31
On top of #15, this PR:
Changes from
master
NoteLetter
: A, B, C, etc. Just the letters of the white keys on a pianoPitch
: A note letter and an accidentalPitchSymbol
, an enum { Cb, C, Cs, Db...} convertible to Pitch for code brevityNote
wraps aPitch
with an octaveSome notes going forward (pun intended)
Cb
breaks everything as a result of the current design of integer conversionsC4
is flatted, does it produceCb4
orCb3
. It's enharmonic toB3
but relative toC
. Either solution brings up some dependency questions.@ozankasikci tests run perfectly, but the actual test code and style consistency could use a good lookover