lilypond-user
[Top][All Lists]
Advanced

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

Re: Including Lilypond files (Was: \partial only on first measure?)


From: Alberto Simões
Subject: Re: Including Lilypond files (Was: \partial only on first measure?)
Date: Wed, 28 Sep 2011 11:51:59 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2



On 28/09/2011 11:48, Dmytro O. Redchuk wrote:
On Wed 28 Sep 2011, 11:17 Alberto Simões wrote:


On 28/09/2011 10:49, Urs Liska wrote:
Is there any way to write some kind of the equivalent to the latex
.sty file, where I can define these files? Or is it just a standard
.ly file, \include'd?

If so, is there any INCLUDEPATH I can set, so I do not need to copy it
for each music I use?

Put this function in a standard .ly file (some prefer to name these
include files .ily) and include it.
You can run lilypond with the -dinclude option and specify includepaths
where you can store your library.

Yes, I can also use -I, it seems. But defining an environment
variable would make it a lot cleaner  :)
Can you make an alias?

I guess it's possible in bash (don't know about your system):
alias lilypond='lilypond -Ifoo.lyi'

However, i have prepared some "templates" for myself; every one contains
`\include "macro.lyi"` within. I'd say it's better that making an alias.


Note that -I is for search path, for not a specific file. So, I can add, indeed,

alias lilypond='lilypond -I$HOME/lib/lilypond'

but I would still prefer,

export LILY_PATH=$HOME/lib/lilypond

:)

--
Alberto Simoes
CEHUM



reply via email to

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