From 44506eed14ae04ae50513b127b14412ae4c7f684 Mon Sep 17 00:00:00 2001 From: Michael Winter Date: Wed, 25 Mar 2026 10:23:44 +0100 Subject: [PATCH] Add source_node and destination_node to path_steps.json --- src/io.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/io.py b/src/io.py index 40e846e..4194603 100644 --- a/src/io.py +++ b/src/io.py @@ -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)},' )