lilypond-user
[Top][All Lists]
Advanced

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

Re: how to stretch the bar width?


From: wjm
Subject: Re: how to stretch the bar width?
Date: Mon, 14 May 2012 14:07:02 +1200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi Federico,
You wrote:-
+++
I want to use \center-column.
The problem is the different alignment of rehearsal marks and markup:
- in my first example I used rehearsal marks, which are aligned to the bars: I like them because they use all the space available over the bar - in the second example I used markup blocks inside \lyricmode, which are aligned to the notes: therefore some space before the notes is wasted
+++

See the following code...
All references to Left alignment of Lyrics are removed
Added an offset in the lyrics context in the layout

Does this achieve the required result?

Regards
Bill
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
\version "2.15.30"

\header {
  title = "Tablature Legenda"
}

\paper {
  ragged-last = ##t

  markup-system-spacing =
      #'((basic-distance . 15) (padding . 10))
   system-system-spacing =
#'((basic-distance . 12) (minimum-distance . 10) (padding . 8) (stretchability . 15))

}


music =  \relative c' {
  \override Staff . TimeSignature #'stencil = ##f
  \time 1/4

  % Hammer-on
  e8\2( f\2)

  %% Pull-off
  f8\2( e\2)

  %% Slide
  e8\2\glissando f\2

  %% Legato slide
  e8\2\glissando ( f\2)

  \time 2/4
  %% Grace slide
  s
  \hideNotes \grace { e\2\glissando } \unHideNotes g8\2
  g8\2\glissando \hideNotes \grace { e\2 } \unHideNotes s


}

text = \lyricmode {
  \markup \center-column {
    \bold "Hammer-on"
    "(First note picked)"
  }4

  \markup \center-column {
    \bold "Pull-off"
    "(First note picked)"
  }4

  \markup \center-column {
    \bold "Slide"
    "(Both notes picked)"
  }4

  \markup \center-column {
    \bold "Legato slide"
    "(First note picked)"
  }4

  \markup \center-column {
    \bold "Grace slide"
    "(Slide into/from note"
    "from undetermined fret)"
  }2

}

\score {
  <<
  \new Lyrics \with {
     \override LyricText #'font-size = #.2
    }
  { \text }
  \new StaffGroup <<
    \new Staff <<
      \context Voice { \clef "G_8" \music }
    >>
    \new TabStaff  <<
      \context TabVoice { \clef "moderntab" \music }
    >>
  >>
  >>
  \layout {
    indent = #0

    %added the following:-

    \context {
%fiddle the " -4 " value to suit ( -ve = leftwards )
     \Lyrics \override LyricText #'extra-offset = #'(-4 . 0) }

    \context {
      \Staff
      \override StringNumber #'transparent = ##t
    }
    \context {
      \Score
      \override Glissando #'minimum-length = #4
      \override Glissando #'springs-and-rods =
                          #ly:spanner::set-spacing-rods
      \override Glissando #'thickness = #2
    }
  }
}



reply via email to

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