I would like to write a script which would print lead sheets from a list of songs.

Lanny