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 mes

Re: Parsing lyrics in a music function

2011-09-15 Thread David Kastrup
Michael Ellis 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.   Very nice and convenien

Re: Parsing lyrics in a music function

2011-09-15 Thread Michael Ellis
On Thu, Sep 15, 2011 at 3:16 PM, David Kastrup wrote: > Michael Ellis 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 > > c

Re: Parsing lyrics in a music function

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

Re: Parsing lyrics in a music function

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

Re: Parsing lyrics in a music function

2011-09-15 Thread David Kastrup
Michael Ellis 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 ___ lilypond-user ma