Add source_node and destination_node to path_steps.json

This commit is contained in:
Michael Winter 2026-03-25 10:23:44 +01:00
parent c1ff66265d
commit 44506eed14

View file

@ -93,9 +93,15 @@ def write_path_steps(path: "Path", output_path: str) -> None:
lines.append(" {")
lines.append(f' "step": {step_idx},')
lines.append(
f' "source_node": {_format_chord_line(step.source_node.pitches)},'
)
lines.append(
f' "source_chord": {_format_chord_line(step.source_chord.pitches)},'
)
lines.append(
f' "destination_node": {_format_chord_line(step.destination_node.pitches)},'
)
lines.append(
f' "destination_chord": {_format_chord_line(step.destination_chord.pitches)},'
)