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>>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to