[JW Lua] Counting number of verses

Marc Cerisier marc at cerisier.net
Fri May 18 04:49:03 CEST 2018


HI,

Does anyone have a snippet, or any suggestions, on counting how many verses (verse, chorus, or section) there are in a file?  Ideally, it could found per system.  The goal is to set the bottom system margin based on how many verses are present, and I do this using  variable at the start of the script right now, along with the variable I use to set the distance between baselines, but would love to automate it to some degree or another.

Many thanks,
Marc Cerisier



More information about the JWLua mailing list