Il 13/05/2012 13:46, wjm ha scritto:
Greetings Federico,
You wrote
+++
I'm writing a legenda for tablature and I'm using \markup over each bar
to explain the notation. As you can see in the attached example, the
markup blocks are moved vertically to avoid collisions. I'd like to
stretch the bars so that there's enough room for markup.
+++
I haven't tested anything but try "Dialogue over music" in the Notation
Reference

NR 2.1.6

Yes, it helped, thanks!

It solved the collision problem, but there's still one thing I don't like much:
- markup is not left aligned: \override LyricText #'self-alignment-X = 
#LEFT is not working?
\version "2.15.38"

\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
  \override Score.RehearsalMark #'self-alignment-X = #LEFT
  \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
  \noBreak
  
}

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 #'self-alignment-X = #LEFT
    \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
    \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
    }
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to