[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Putting marks over bar lines in LilyPond version 2.18.2.
From: |
Thomas Morley |
Subject: |
Re: Putting marks over bar lines in LilyPond version 2.18.2. |
Date: |
Thu, 22 Dec 2016 01:31:10 +0100 |
2016-12-20 21:14 GMT+01:00 Mirosław Doroszewski
<address@hidden>:
> \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.
Probably.
> 2. I tried do so according to manuals (\left-align, right-align), but
> without effect.
Then you misunderstood \left-align, \right-align. Those
markup-commands or _not_ suitable for your use-case.
> 3. It happens that the mark is printed at the begining of next line,
> instead of the end of the same line.
That's the (changeable) default, yes.
> 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).
Nope.
You can do:
\version "2.18.2"
mark-not-at-the-end-of-line = {
\once \override Score.RehearsalMark.break-visibility = ##(#t #t #f)
\once \override Score.RehearsalMark.self-alignment-X = #RIGHT
\mark \markup { \italic \small "3x" }
}
mark-at-the-end-of-line = \mark-not-at-the-end-of-line
\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!
}
}
> 6. At the end of score there is no need to put second solution, as above in
> b).
> %}
wikiharm is closed for tonight
-Harm