diff --git a/src/graph.py b/src/graph.py index 79f64bf..30bf276 100644 --- a/src/graph.py +++ b/src/graph.py @@ -362,8 +362,11 @@ class PathFinder: max_path = config.get("max_path", 50) target_cents = target_octaves * 1200 + start_avg_cents = sum(p.to_cents() for p in path[0].pitches) / len( + path[0].pitches + ) progress = len(path) / max_path - current_target = progress * target_cents + current_target = start_avg_cents + (progress * target_cents) current_chord = path[-1] current_avg_cents = sum(p.to_cents() for p in current_chord.pitches) / len(