Michael Ellis <michael.f.el...@gmail.com> writes:

> Thanks, David.  I figured it must be a parsing issue so it's nice to
> have it clarified by someone knowledgable.   I like the
> ly:parser-parse-string idea.  Does that function return a music object
> if the parsing is successful?

No.  ly:parse-string-expression does, so that would be the smarter idea.

> Would it work to have my \lacc function massage the string so that it
> becomes 
>
> "\lyricmode { This is a lyric line }" 
>
> and then call ly:parser-parse-string to return the result?

Yes.  With parser-parse-string, you'd do something like
"parseStringResult = \lyricmode { ... }" and then look up the parser
variable parseStringResult.  ly:parse-string-expression is, of course,
much more suitable.

-- 
David Kastrup


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

Reply via email to