lilypond-user
[Top][All Lists]
Advanced

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

stems and barlines


From: luis jure
Subject: stems and barlines
Date: Mon, 20 May 2013 22:22:15 -0300

hello list,

i wanted to include in my score a reference timeline with a tick at every
beat. the code below is the best i could come up with:

\version "2.17.18"

\new Staff = "timeline" \with {
  \remove "Bar_number_engraver"
  \remove "Time_signature_engraver"
  \remove "Clef_engraver"
  \override StaffSymbol.line-count = #1 
  \override BarLine.break-visibility = ##(#t #f #f)
}

{
  \override NoteHead.transparent = ##t
  \override NoteHead.no-ledgers = ##t
  \override Stem.length = #3.25
  \override Staff.BarLine.bar-extent = #'(-0.8125 . 0.8125)
  \override Staff.BarLine.hair-thickness = #'1.3

  \repeat unfold 20 { d''4 } \break 
  }


may be it's kludgy, but i got what i wanted: i have a stem at every beat
and a barline at the end of the line (see attached preview image).

i zoomed the pdf in inkscape to check that the lines are the same length
and width and that they are perfectly centered and aligned with the
horizontal line. 

everything looks fine except for one small detail: the stem has rounded
tips, while the barline is rectangular (see the second image).

can this be changed?


best,

lj


Attachment: timeline.png
Description: image/apple-ios-png

Attachment: stem_barline.png
Description: image/apple-ios-png


reply via email to

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