Closed egginabucket closed 1 year ago
@egginabucket Please add a small example.
Sorry for the issues earlier, I was in a rush :( example:
>>> abjad.NamedPitchClass('g') - abjad.NamedPitchClass('c')
NamedInversionEquivalentIntervalClass('+P4')
>>> abjad.NamedPitchClass('c') - abjad.NamedPitchClass('g')
NamedInversionEquivalentIntervalClass('+P4')
The behavior you're seeing is correct.
Try subtracting pitches, rather than pitch-classes, to see a different behavior.
Thank you, I solved my problem using PitchClass.number. This just seemed like unusual behaviour at the time.
I think you were probably thinking in pitches instead of pitch-classes.
When subtracting
PitchClass
fromPitchClass
and an interval of P4 is expected, P5 is returned and vice versa.