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

Emphasize Pitches in Interval classes #1396

Merged
merged 7 commits into from
Aug 19, 2022
Merged

Conversation

mscuthbert
Copy link
Member

Store only Pitch elements in Interval(), not Notes, and depend on Pitch._client to get the notes back.

Simplifies the Interval object and speeds it up if we're not constantly looking at Pitch or Note at any moment. Improves typing.

More importantly, the client for the Pitch will not change when transposed inPlace and therefore chordAttached on the note will also not change. This was important with cached methods like isConsonant when one of the individual pitches in the Chord was being transposed. Now client is informed.

@mscuthbert mscuthbert closed this Aug 19, 2022
@mscuthbert mscuthbert reopened this Aug 19, 2022
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.058% when pulling b57fa23 on intervals-with-pitches into ace3b80 on master.

@mscuthbert mscuthbert merged commit 9744786 into master Aug 19, 2022
@mscuthbert mscuthbert deleted the intervals-with-pitches branch August 19, 2022 01:03
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.

2 participants