bug-lilypond
[Top][All Lists]
Advanced

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

Putting marks over bar lines in LilyPond version 2.18.2.


From: Mirosław Doroszewski
Subject: Putting marks over bar lines in LilyPond version 2.18.2.
Date: Tue, 20 Dec 2016 20:49:45 +0100

\version "2.18.2"
\include "deutsch.ly"

%{
Putting marks over bar lines in LilyPond version 2.18.2.

1. When mark is put over bar line, it is placed centrally by default.
But sometimes there is need to place the mark left or right aligned,
i.e. in repeats.
2. I tried do so according to manuals (\left-align, right-align), but
without effect.
3. It happens that the mark is printed at the begining of next line,
instead of the end of the same line.
4. Solution by manual: treat mark as rehearsal mark and use overriding for it:
a) if the mark is not at the end of line:
        \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
        \mark \markup { \italic \small "3x" }
b) if the mark is at the end of line:
        \once \override Score.RehearsalMark.break-visibility = 
#end-of-line-visible
        \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
        \mark \markup { \italic \small "3x" }
5. If the mark is not at the end of line, it is not possible to use
universal way by putting settings as described above in b), because
then is nothing printed. So it is necessary to manually put first or
second solution, as described above in a) and b).
6. At the end of score there is no need to put second solution, as above in b).
%}

mark-not-at-the-end-of-line = {
        \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
        \mark \markup { \italic \small "3x" }
}
mark-at-the-end-of-line = {
        \once \override Score.RehearsalMark.break-visibility = 
#end-of-line-visible
        \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
        \mark \markup { \italic \small "3x" }
}

\paper {
        #(set-paper-size "a6" 'portrait)
        indent = 0\mm
        ragged-bottom = ##t
        ragged-last-bottom = ##t
        top-margin = 1 \cm
        bottom-margin = 1 \cm
        line-width = 8.8 \cm
        tagline = ##f
        print-all-headers = ##t
        markup-system-spacing = #'((basic-distance . 5) (padding . 1)
(stretchability . 30))
}
#(set-global-staff-size 12.0)

\score {
        \layout {
                \context { \Staff \remove "Time_signature_engraver" }
                ragged-last = ##t
        }
        \relative c' {
                \transpose e d' {
                        \key e \minor
                        \time 1/8       
                        \autoBeamOff
                        \cadenzaOn      
                        \bar ".|:" e8 e dis4 e \bar "'" e8 e dis4 e \bar "'"
                        g8 g g4 fis8 e fis4 fis \bar "'"
                        fis8 fis g e dis!4 e \noBreak \bar ":|.|:"
                        \mark-not-at-the-end-of-line
                        \bar ":|.|:" e8 fis g g g g g fis e fis4 fis \bar "'"
                        fis g8[ fis] e dis!4 e \bar ":|.|:"
                        \mark-not-at-the-end-of-line
                        \bar ":|.|:" e8[ fis] g g g g g fis e fis4 fis \bar "'"
                        fis8 fis g[ fis] e dis!4 e \bar ":|."
                        \mark-at-the-end-of-line
                        \cadenzaOff
                }
        }
        \addlyrics {
                Świę- ty Bo- że, Świę- ty moc- ny,
                Świę- ty, a nie- śmier- tel- ny,
                zmi- łuj się nad na- mi!
                Od po- wie- trza, gło- du, o- gnia i woj- ny
                wy- baw nas, Pa- nie!
                Od na- głej, a nie- spo- dzia- nej, śmier- ci
                za- cho- waj nas, Pa- nie!
        }
}

Attachment: Putting marks over bar lines.pdf
Description: Adobe PDF document


reply via email to

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