lilypond-devel
[Top][All Lists]
Advanced

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

two pass spacing patch


From: Nicolas Sceaux
Subject: two pass spacing patch
Date: Sat, 30 Sep 2006 13:55:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

Hello,

Here is a patch defining a few functions for using the two-pass vertical
spacing scheme. Example:

/------------------------------------------------------
\version "2.9.20"
%{
 For the first pass, use the dump-tweaks option:
   $ lilypond -b null -d dump-tweaks <file>.ly
 This will write the <file>-page-layout.ly tweak file.
 Second pass:
   $ lilypond <file>.ly
 The <file>-page-layout.ly will be included, and tweaks
 used in the score. The <file>-page-layout.ly file will
 not be overwritten.
%}

\includePageLayoutFile

\score {
  \new StaffGroup <<
    \new Staff <<
      %% Use this score tweaks:
      \scoreTweak "A"
      { \clef french c''1 \break c''1 } 
    >>
    \new Staff { \clef soprano g'1 g'1 }
    \new Staff { \clef mezzosoprano e'1 e'1 }
    \new Staff { \clef alto g1 g1 }
    \new Staff { \clef bass c1 c1 }
  >>
  \header { piece = "Score with vertical spacing tweaks" }
  %% Define how to name the tweaks for this score:
  \layout { #(define tweak-key "A") }
}
\------------------------------------------------------

make web runs fine, and this two-pass stuff has been tested against
something consequent.

nicolas

Attachment: two-pass.patch
Description: Text Data


reply via email to

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