-
Notifications
You must be signed in to change notification settings - Fork 114
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
Interval.direction() doesn't distinguish accidentals of same note #105
Comments
Hey Eagor. I can see why that might be confusing behaviour. But actually it is working as "expected": The I'm not sure that there is such an interval as "diminished unison", but I kind of had to make it up to make the theory "complete". And to me a diminished is smaller than a perfect - and to make a perfect unison smaller a diminished unison must be a half-step lower. At least that's the reasoning. I'm very open to listen to other suggestions on this behaviour if you have any input :) |
Yeah, it's a bit misleading, as initially I would think that if you play two notes one after another, you would hear whether the melody goes up or down, hence the direction of the interval. Or, maybe there is some other theoretical meaning of interval direction? Or what might be the use case expecting current behavior? ps. anyways, great lib. The idea with .coord is genius!!! |
maybe, this should go to a different thread, but I've just found this:
|
Well spotted! This should produce some kind of an error. Please open a new issue on this though.
|
interval from A# to Ab returns direction "up", even though Ab is 2 semitones down from A#.
The text was updated successfully, but these errors were encountered: