OT: script to transpose chord charts (ID)

This is admittedly off-topic, but I thought it was pretty cool and would interest some users here. I’m preparing some Dorico lead sheets and piano scores for a big project, but I did the chord charts in InDesign. We are offering every song in multiple keys, so a colleague helped me write a script to automatically transpose the keys in the chart (it still requires a little spacing afterwards):

Jun-04-2025 17-17-02

I know it’s a little niche, but if anyone wants to use it, it’s here. You’re welcome to modify, rename, whatever.
dankreider.zip (5.5 KB)

10 Likes

This is amazing, thank you very much! I, for one, didn’t know this was possible in InDesign.

Does one have to use a certain paragraph/character style for the chord symbols in order for the script to recognize them? Could you possibly provide an example InDesign document here?

Yes, there is a specified paragraph style (I think it’s called “Chord Symbol font”), but its name can be easily edited in the Java script. I can’t share the InDesign document because it’s under copyright. I’m not skilled at JS but I found it very easy to understand and modify if needed.

2 Likes

Dan… very cool! Thanks for sharing. However, don’t forget to change it in the upper right corner of the header.

1 Like