Let me begin by encouraging the developers of the LilyPond Music Type-setting System. What a wonderful program! They also appear to provide great support for issues that are raised. In an email exchange with LilyPond developer Graham Percival, this problem was cleared up. This posting is to help future users clear up any confusion.

In the LilyPond documentation for v2.10.33 Chapter 14 "lilypond-book: Integrating text and music" covers the use of LilyPond book functionality. Specifically ยง14.11 "Inserting LilyPond output into other programs" describes the inclusion of some code to remove extra spacing around a music score (or, in the case of many book graphics, fragments). This code was described as:

\paper{
  indent=0\mm
  line-width=120\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
}

If this is used with lilypond and NOT lilypond-book, then LilyPond will not output a MIDI file if "lilypond-book-preamble.ly" is included in the source file.

Here is an illustration of the issue.  Using the command:

lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts foobar.ly

-------------------------------------------------------------------------------
% foobar.ly that DOESN'T OUTPUT MIDI
\version "2.10.33"
\include "lilypond-book-preamble.ly"
\paper{
  indent=0\mm
  line-width=120\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
}

\score{
\relative c'' { a4 b c d }
\layout{}
\midi{}
}
-------------------------------------------------------------------------------
% foobar.ly that OUTPUTS MIDI
\version "2.10.33"

\paper{
  indent=0\mm
  line-width=120\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
}

\score{
\relative c'' { a4 b c d }
\layout{}
\midi{}
}
-------------------------------------------------------------------------------

Hope this can help anyone who encounters the problem.

Clifford



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to