lilypond-user
[Top][All Lists]
Advanced

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

Re: \include inside function


From: David Wright
Subject: Re: \include inside function
Date: Tue, 1 Feb 2022 10:46:27 -0600
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue 01 Feb 2022 at 16:09:01 (+0100), Leo Correia de Verdier wrote:
> 
> Is there a way to have an \include inside a function?
> In the attached file includeinfunction.ly the commented out line doesn’t work 
> (probably for some very logical reason, but still unknown to me). Is there a 
> way to work around that and have includes inside functions?

NR § 3.1.5 File structure

At any point in a file, any of the following /lexical/ instructions can be 
entered:
• \version
• \include
[ … ]

(my emphasis)

So it's not going to work, because you can't "call" it.
It just inserts the contents of the file at that point.

Cheers,
David.



reply via email to

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