Rename _calc_symdiff_expanded to _calc_symdiff
Since projection now happens in generate_connected_sets, the function is simpler.
This commit is contained in:
parent
2df55d8c16
commit
40a8996b4e
|
|
@ -517,8 +517,8 @@ class HarmonicSpace:
|
|||
# Transpose c2
|
||||
c2_transposed = c2.transpose(trans)
|
||||
|
||||
# Check symmetric difference on transposed pitches (not collapsed)
|
||||
symdiff = self._calc_symdiff_expanded(c1, c2_transposed)
|
||||
# Check symmetric difference
|
||||
symdiff = self._calc_symdiff(c1, c2_transposed)
|
||||
|
||||
if not (symdiff_range[0] <= symdiff <= symdiff_range[1]):
|
||||
continue
|
||||
|
|
@ -656,10 +656,10 @@ class HarmonicSpace:
|
|||
|
||||
return all_maps
|
||||
|
||||
def _calc_symdiff_expanded(self, c1: Chord, c2: Chord) -> int:
|
||||
"""Calculate symmetric difference on transposed (expanded) pitches.
|
||||
def _calc_symdiff(self, c1: Chord, c2: Chord) -> int:
|
||||
"""Calculate symmetric difference between two chords.
|
||||
|
||||
Uses the transposed pitches directly without collapsing.
|
||||
Uses the pitches directly.
|
||||
"""
|
||||
set1 = set(c1.pitches)
|
||||
set2 = set(c2.pitches)
|
||||
|
|
|
|||
Loading…
Reference in a new issue