lilypond-user
[Top][All Lists]
Advanced

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

problems with layout variables in 2.13.4


From: Federico Bruni
Subject: problems with layout variables in 2.13.4
Date: Tue, 29 Sep 2009 10:25:23 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi,

I'm setting up a legenda for tablature (see attached files).
I have problems with layout variables.

I have seen on the web documentation that names are changed:
http://lilypond.org/doc/v2.13/Documentation/notation/Page-formatting#Page-formatting

But even though I'm using the new command names, nothing happens.
For example, if I use 2.12.1 this command works as expected:
\paper {
  between-title-space = 30\mm
}

If I use 2.13.4 and the new command, nothing happens:
\paper {
  between-title-spacing = 30\mm
}

Am I missing something?
For example, I did not understand how the components (space, padding, stratchability, minimum-distance) work: if they are automatically defined or should be explicitly defined instead.

Thanks for your help,

Federico
\version "2.13.4"
\include "mytabsettings.ly"

\header {
  title = "Legenda"
}

\paper {
  indent = 0
  line-width = 180\mm 
  after-title-spacing = 30\mm 
  %between-title-spacing = 30\mm 
  %before-title-spacing = 20\mm 
  between-scores-system-spacing = 40\mm 
}


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

hammeron = {
  s2 c'4 ( d' ) |
}
\score {
  \new StaffGroup <<
    \new Staff { \clef "G_8" \hammeron }
    \new TabStaff { \clef "moderntab" \hammeron }
  >>
}


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

pulloff = {
  s2 d'4 ( c' ) |
}
\score {
  \new StaffGroup <<
    \new Staff { \clef "G_8" \pulloff }
    \new TabStaff { \clef "moderntab" \pulloff }
  >>
}


\markup { \bold \huge "Slide" }

slide = {
  a4 ( \glissando b\3 )  b\3 ( \glissando a ) |
}
\score {
  \new StaffGroup <<
    \new Staff { \clef "G_8" \slide }
    \new TabStaff { \clef "moderntab" \slide }
  >>
}


\markup { \bold \huge "Non Legato Slide" }

nonlegatoslide = {
  a4 \glissando b\3  b\3 \glissando a |
}
\score {
  \new StaffGroup <<
    \new Staff { \clef "G_8" \nonlegatoslide }
    \new TabStaff { \clef "moderntab" \nonlegatoslide }
  >>
}

\markup { \bold \huge "Slide from/into" }

slidefrominto = {
  s4 \grace { \hideFretNumber a \glissando s }  b4\3  b4\3 \glissando \grace { 
\hideFretNumber a s } s4 |
}
\score {
  \new StaffGroup <<
    \new Staff { \clef "G_8" \slidefrominto }
    \new TabStaff { \clef "moderntab" \slidefrominto }
  >>
}
%% code to print hammeron and pulloff in TabStaff
%% 27/08/09
#(define-public (slur::draw-lowered-slur grob)
  (let* ((staff-symbol (ly:grob-object grob 'staff-symbol))
         (staff-space (ly:grob-property staff-symbol 'staff-space))
         (control-points (ly:grob-property grob 'control-points))
         (new-control-points (map (lambda (p)
                                          (cons (car p) (- (cdr p)
                                                        (* staff-space
                                                           (ly:grob-property 
grob 'direction)
                                                           0.35))))
                                  control-points)))
        (ly:grob-set-property! grob 'control-points new-control-points)
        (ly:slur::print grob)))

%% Hide fret number: useful to draw slide into/from a casual point of
%% the fretboard.
hideFretNumber = { \once \override TabNoteHead #'transparent = ##t 
                 \once \override NoteHead #'transparent = ##t 
                 \once \override Stem #'transparent = ##t
}


\layout {
 \context {
    \TabStaff
    \revert Arpeggio #'stencil
    \override NoteColumn #'ignore-collision = ##t
 }


 \context {
    \Staff
    \override StringNumber #'transparent = ##t
 }

 \context {
   \TabVoice
   \override Slur #'direction = #UP
   \override Stem #'direction = #DOWN
   \override Slur #'stencil = #slur::draw-lowered-slur
 }

} 

reply via email to

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