Remove movement_size weight as redundant with melodic threshold
This commit is contained in:
parent
e13e9ba3bc
commit
b7b95bb849
|
|
@ -744,7 +744,6 @@ class PathFinder:
|
|||
def _default_weights_config(self) -> dict:
|
||||
"""Default weights configuration."""
|
||||
return {
|
||||
"movement_size": True,
|
||||
"contrary_motion": True,
|
||||
"direct_tuning": True,
|
||||
"voice_crossing": True,
|
||||
|
|
@ -809,15 +808,6 @@ class PathFinder:
|
|||
weights.append(w)
|
||||
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
|
||||
if config.get("contrary_motion", False):
|
||||
if len(cent_diffs) >= 3:
|
||||
|
|
|
|||
Loading…
Reference in a new issue