lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically building music-function names


From: Chris Yate
Subject: Re: Programmatically building music-function names
Date: Fri, 15 Jan 2016 20:05:25 +0000


On 15 Jan 2016 17:26, "David Kastrup" <address@hidden> wrote:
>
> Chris Yate <address@hidden> writes:
>
> > Hi,
> >
> > I'm trying to typeset a number of short pieces into multiple scores in one
> > file. I can do this manually, as:
>
>
> > This doesn't work; my substitution syntax is clearly wrong here, but
> > I'd be interested to see if there's a way to do it.  Or does the way
> > the code is parsed mean music functions can't be referenced in this
> > way?
>
> A score is not music.
>
> And you cannot splice identifiers like
>
>     \music#number
>
> That's just nonsensical.  Try something like
> --
> David Kastrup

Thanks David (and Caio too for your suggestion), that's the syntax I was looking for. Basically, forming a symbol by concatenation and to have it evaluated in the input file.

However, for its simplicity I think I probably prefer Urs's method, even if it makes the input file a bit longer.

Chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]