lilypond-user
[Top][All Lists]
Advanced

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

Re: problems with layout variables in 2.13.4


From: Federico Bruni
Subject: Re: problems with layout variables in 2.13.4
Date: Fri, 02 Oct 2009 17:25:14 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Federico Bruni wrote:
Thanks to Francisco's link I managed to put the music in a markup block. Now I have problems with aligning text on the right. I've made several tries, but nothing is working as expected.

Any suggestion? (see example attached)


I've resolved the aligning problems (both vertically and horizontally).

But now I can't put the proper distance between the items of the legenda.
In fact, when I used just \score I could use after-title-spacing and before-title-spacing to put some space between the items of the list.

Now the \score(s) are inside a \markup block, so that does not work anymore.

How can I break a line in the \markup block?
I've tried an empty fill-line block, but does not work.

--
http://www.gnurag.net/blog/
\version "2.13.4"
%\include "hp.ly"

#(set-global-staff-size 22.45)

\header {
  title = "Legenda"
}

\paper {
  indent = 0
  line-width = 170\mm 
  top-title-spacing = #'((space . 5))
  %after-title-spacing = #'((space . 10)) 
  %before-title-spacing = #'((space . 5)) 
  between-title-spacing = #'((space . 2)) 
}

%%% Hammer-On 
\markup { \bold \huge "Hammer-On" }

hammeron= \markup {
  \score {
    \new StaffGroup  <<
      \new Staff \with { \remove "Time_signature_engraver" }  { \clef "G_8"  s4 
c'4 ( d' ) s4 }
      \new TabStaff { \clef "moderntab"  s4 c'4 ( d' ) s4 }
    >>
    \layout { }
  }
}
\markup {
  \fill-line {
    \line {
      \hammeron 
    }
    \line \override #'(line-width . 65) \general-align #Y #3 {
      \wordwrap { 
        A hammer-on is executed by hammering one of the fingers 
        of the left hand bla bla bla bla bla
      }
    }
  }
  \fill-line { }
}


%%% Pull-Off
\markup { \bold \huge "Pull-Off" }

pulloff = \markup { 
  \score {
    \new StaffGroup <<
      \new Staff \with { \remove "Time_signature_engraver" }
        { \clef "G_8"  s4 d'4 ( c' ) s4 }
      \new TabStaff { \clef "moderntab"  s4 d'4 ( c' ) s4 }
    >>
    \layout { }
  }
}

\markup {
  \fill-line {
    \line {
      \pulloff  
    }
    \line \override #'(line-width . 65) \general-align #Y #3 {
      \wordwrap { 
        The finger of the left hand which plays the first note 
        is pulled to one side ...  ...  ...
      }
    }
  }
}

reply via email to

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