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: Sun, 04 Oct 2009 13:29:23 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Mats Bengtsson wrote:

Have you read the documentation of the markup commands, available at http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands ?


I missed that and it helped a lot..
What I was looking for was (especially) \null

I've reworked on the file.
Now it's quite ok, even though I'm sure it can be emproved.
I'll study more the doc and try to do something more elegant.

A legenda for tablature may be put in the LSR.. I guess it can be useful..

--
http://www.gnurag.net/blog/
\version "2.13.5"
\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)) 
}

%%%%% Music definitions %%%%%

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 { }
  }
}

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 { }
  }
}

slide = \markup {
  \score {
    \new StaffGroup <<
      \new Staff \with { \remove "Time_signature_engraver" }
      { \clef "G_8" a4 ( \glissando b\3 )  b\3 ( \glissando a ) }
      \new TabStaff 
      { \clef "moderntab" a4 ( \glissando b\3 )  b\3 ( \glissando a ) }
    >>
    \layout { }
  }
}


%%%% Layout  %%%%%

\markup {
  \column {
    \null \null \null 
    %% Hammer-On
    \bold \huge "Hammer-On"
    \fill-line {
      \line {
        \hammeron 
      }
      \line \override #'(line-width . 65) \general-align #Y #3 {
        \justify { 
          A hammer-on is executed by hammering one of the fingers 
          of the left hand bla bla bla bla bla
        }
      }
    }
    \null \null \null 
    
    %% Pull-Off
    \bold \huge "Pull-Off"
    \fill-line {
      \line {
        \pulloff  
      }
      \line \override #'(line-width . 65) \general-align #Y #3 {
        \justify { 
          The finger of the left hand which plays the first note 
          is pulled to one side ...  ...  ...
        }
      }
    }
    \null \null \null 
    
    %% Slide
    \bold \huge "Slide"
    \fill-line {
      \line {
        \slide  
      }
      \line \override #'(line-width . 65) \general-align #Y #7 {
        \justify { 
          Slide definition here ...  ...  ... ... ...
          bla bla bla bla bla bla ... ...
        }
      }
    }
    
  } % column end
} % markup end

reply via email to

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