Hi Kieren,

I would suggest to split it in two phases.

Phase 1 would be to parse the input, and collect the syllables and
durations in a structure similar to (e.g. JSON):

  [
    { "chords"  : [ "C",  "D",          "E" ],
      "phrases" : [ "Aw", "ay in the ", "manger" ]
    },
    ...next line...
    ...and so on...
  ]

Phase 2 would do the formatting.

This would provide an intermedeate data structure that can easiliy be
checked (visually) and tweaked (manually) for development and fun.

... and it is similar to the structure that is used internally by ChordPro
so it would become possible to have LilyPond do the parsing and ChordPro do
the formatting, and vice versa. The sky is the limit :) .

-- Johan


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to