Parsing lyrics in a music function

2011-09-15 Thread Michael Ellis
I've written some music functions I use frequently to operate on lyrics. For example, there's one call lacc that allows me to intermix lyrics and notation by accumulating the lyrics into a list I can instantiate later in the \score block. Very nice and convenient, but the usage is a little

Re: Parsing lyrics in a music function

2011-09-15 Thread David Kastrup
Michael Ellis michael.f.el...@gmail.com writes: I've written some music functions I use frequently to operate on lyrics.  For example, there's one call lacc that allows me to intermix lyrics and notation by accumulating the lyrics into a list I can instantiate later in the \score block.  

Re: Parsing lyrics in a music function

2011-09-15 Thread Michael Ellis
On Thu, Sep 15, 2011 at 3:16 PM, David Kastrup d...@gnu.org wrote: Michael Ellis michael.f.el...@gmail.com writes: I've written some music functions I use frequently to operate on lyrics. For example, there's one call lacc that allows me to intermix lyrics and notation by accumulating

Re: Parsing lyrics in a music function

2011-09-15 Thread David Kastrup
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.

Re: Parsing lyrics in a music function

2011-09-15 Thread Michael Ellis
On Thu, Sep 15, 2011 at 4:46 PM, David Kastrup d...@gnu.org wrote: 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

Re: Parsing lyrics in a music function

2011-09-15 Thread David Kastrup
Michael Ellis michael.f.el...@gmail.com writes: Did ly:parse-string-expression go away in 2.14.1?  I get an undefined variable error if I try something like: It became available later than that. Something like three weeks ago or so. -- David Kastrup