From 2df55d8c16d819161133b41aa6f7700c39e9b50b Mon Sep 17 00:00:00 2001 From: Michael Winter Date: Fri, 13 Mar 2026 04:33:17 +0100 Subject: [PATCH] Fix outdated docstring in _build_movement_maps Update docstring to reflect index-based movement format: {src_idx: dest_idx} instead of old pitch-based format. --- compact_sets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compact_sets.py b/compact_sets.py index 7e6277a..2d8e4f0 100644 --- a/compact_sets.py +++ b/compact_sets.py @@ -586,11 +586,10 @@ class HarmonicSpace: """ Build all valid movement maps for c1 -> c2_transposed. - A movement map shows which pitch in c1 maps to which pitch in c2, - including the cent difference for each movement. + A movement map shows which position in c1 maps to which position in c2. Returns: - List of movement maps. Each map is {source_pitch: {"destination": dest_pitch, "cent_difference": cents}} + List of movement maps. Each map is {src_idx: dest_idx} There may be multiple valid maps if multiple changing pitches can be permuted. """ # Find common pitches (same pitch class in both)