Remove movement_size weight as redundant with melodic threshold

This commit is contained in:
Michael Winter 2026-03-12 19:41:48 +01:00
parent e13e9ba3bc
commit b7b95bb849

View file

@ -744,7 +744,6 @@ class PathFinder:
def _default_weights_config(self) -> dict: def _default_weights_config(self) -> dict:
"""Default weights configuration.""" """Default weights configuration."""
return { return {
"movement_size": True,
"contrary_motion": True, "contrary_motion": True,
"direct_tuning": True, "direct_tuning": True,
"voice_crossing": True, "voice_crossing": True,
@ -809,15 +808,6 @@ class PathFinder:
weights.append(w) weights.append(w)
continue continue
# Movement size weight
if config.get("movement_size", False):
if cent_diffs:
max_diff = max(cent_diffs)
if max_diff < 100:
w *= 1000
elif max_diff < 200:
w *= 10
# Contrary motion weight # Contrary motion weight
if config.get("contrary_motion", False): if config.get("contrary_motion", False):
if len(cent_diffs) >= 3: if len(cent_diffs) >= 3: