lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book setup for windows


From: MonAmiPierrot
Subject: Re: lilypond-book setup for windows
Date: Mon, 26 Oct 2009 15:16:32 -0700 (PDT)


I reply to a private message o JZ on this topic and post it here for
everyone.
JZ, you told me you couldn't run lilypond on LyX.
Actually, there's nothing bad, you simply didn't run lilypond-book and tried
to instant preview a LyX file with lilypond-book code in it! It couldn't
work!

To use Lilypond in a LyX you have 2 very different solutions
1- (the one I use): insert EXTERNAL .ly files in your docs. (Insert - File -
External material - LilyPond). LyX will RUN lilypond every time is needed
(when you select a new file or edit it) to produce the image it will show in
the PDF preview.
2- use lilypond-book (which I don't know if is compulsory for you). From
your mail You did it ok, BUT you can't have an instant PDF preview. Each
time you want to see the result you HAVE to export a .tex file, run
lilypond-book on it, cross fingers, and then run latex. (and that's not a
INSTANT preview, of course...).

PRO for (1):
- complete WYSIWYG(M) of musical excerpts in your LyX environment.
- edit with rightclick-EDITEXTERNALLY on your .ly files.
- use external .ly files (if it's better for you)
CONS for (1)
- AFAIK, you CAN'T use music which is more than a page long (!!!). To do it
you have to import it as PDF, but I can't help you with this. (or produce
each page in a different .ly file)
- some minor tweak needed: if music excerpts should fit inside the text (not
in his own page) you have to include this in EACH .ly file (I actually have
a ExcerptsSettings.ly file I always include in my .ly excerpts):
"\paper{
  indent=0\mm 
            %[or whatever size]
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
}
\layout {
\context {
    \Score
    \remove "Bar_number_engraver"
  }
}"

PRO for (2):
- Complete freedom from small excerpts to many pages of music
- you can have all your .ly code in one document (if it sounds good for you)
- your music can be always the right size.

CONS for (2):
- You have to manually run lilypond-book AND LaTeX
- No preview of music in LyX environment
- No PDF preview from LyX!!!

One half-solution to this latter problem may be to use Branches: create a
LylypondBookCode branch, and use it to wrap each LB code you insert in your
LyX doc. Keep the branch turned off. You will be able to preview your book
(of course, shorter and without your music!!!!) and when you really need to
see the actual final result, just turn the branch on and do the manual run
of Lilypond-book and LaTeX... 

I know that there have been some (theoric?) effort to tweak LyX in order to
have it directly run lilypond-book. I didn't eve try cause I know my
dissertation is far too complicated to believe it may work for me without
HEAVY and DEEP tweaks. Thus, I don't use lilypond-book, just plain lilypond
(1).

Hope it helps, but keep this in the mailing list.

Regards,
Piero



-----
Piero Faustini

Main Software used:
- LyX 1.6.2 on WinXP sp3; EndNote & JabRef
- MikTex
- LaTeX class: Koma book
- Lilypond 2.12 for example excerpts
- BibLaTeX for bibliographies 


-- 
View this message in context: 
http://www.nabble.com/lilypond-book-setup-for-windows-tp22726746p26068745.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

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