Add source_node and destination_node to path_steps.json
This commit is contained in:
parent
c1ff66265d
commit
44506eed14
|
|
@ -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)},'
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue