lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat signs / bar lines in markup


From: Nick Payne
Subject: Re: Repeat signs / bar lines in markup
Date: Sat, 09 Feb 2013 06:56:09 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 08/02/13 23:01, Eluze wrote:
Thomas Morley wrote
below a markup-command to print bar-lines.
For now it is limited to bar-lines containing thick-bar-line,
thin-bar-line and/or colon-bar-line.
Every additional bar-line (dashed, dotted etc) would need an
additional construction-procedure.

\bar-line follows the procedures in bar-line.scm, heavily simplified.
Some comments are included, where I'm not sure about the used values.

Please note: it is a first sketch, maybe there are some undetected issues.

Works with "2.16.1" and "2.17.10"

%%%%%%%%%%%%%%%%%%%%%%%%%
and also "2.17.11" - thanks!

this seems much better than the solution with \markup \score …
also, the resulting bar lines are scalable!

You can scale the staff size and bar lines in a markup if instead of using #(layout-set-staff-size nn) in the layout block you use magstep and fontsize:

\version "2.16.2"

\relative c' {
  d^\markup\tiny\concat { "Some Music " \raise #2.5
    \score {
      \relative c'' { c1 \repeat volta 2 { b4 a g f } }
      \layout {
        indent = 0\cm
        \context {
          \Staff
            fontSize = #-4
            \override StaffSymbol #'staff-space = #(magstep -4)
            \override StaffSymbol #'thickness = #(magstep -4)
            \remove "Time_signature_engraver"
            \remove "Clef_engraver"
        }
      }
    }
  }
}

Attachment: test.png
Description: PNG image


reply via email to

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