Skip to content

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.

3 participants