In message <[email protected]>, Anthony W. Youngman
<[email protected]> writes
In message <[email protected]>, David Kastrup <[email protected]>
writes
"Anthony W. Youngman" <[email protected]> writes:
I'm sure I've seen it somewhere, but I can't find it in the manuals,
snippets, or searching the lists :-(
I'm trying to do what is very typical for my sort of music (band
parts). Namely, end the line with a double bar (often with a segno or
coda sign). Then the next line starts with the word "CODA" or "TRIO"
before the music starts again. Has anybody got an example I can crib?
I've found one of my examples using stop/start staff and cadenza, but
it's a mess :-(
<URL:http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Repeats#
Repeats>
Scroll down to "positioning segno and coda". Personally, I find it
appalling that you have to plaster together markup like that without any
predefined makros. In particular since this will not be reflected in
the MIDI output.
Thanks. I'd seen that, but didn't see how it applied (not least because
part of the example is hidden to the left of the left margin!). I'll
have to play with it.
I need the line break BEFORE the blank space, not after. I need the
text LEVEL with the staff, not above. It would be nice if the double
bar was clean, not with lines sticking out of it. And from my previous
attempt, I ended up with the clef and key signature not moving, so my
line had them hanging in empty space before the start of the staff :-(
Thanks anyway. I'll play with that and see where it gets me (not that
far, I expect :-(
I'm surprised ... after a bit of work it got me where I needed to be!
Thanks very much.
I'm still not totally happy, in that because I separate layout and
notes, I now need to insert dummy bars all over the place, but at least
it looks like I want.
Next job - move text inside a volta alternative rather than above it ...
I think I've seen how to do it, all I need to do is find it again ...
Anyways, I attach the modded snippet so anybody who wants it can see
what I've done - it's a pretty typical layout on a march card ...
Cheers,
Wol
{
\clef treble
\key g \major
\time 4/4
\relative c'' {
\repeat unfold 2 {
| c4 c c c
}
% Set segno sign as rehearsal mark and adjust size if needed
% \once \override Score.RehearsalMark #'font-size = #3
\mark \markup { \musicglyph #"scripts.segno" }
\repeat unfold 2 {
| c4 c c c
}
% Set coda sign as rehearsal mark and adjust size if needed
\once \override Score.RehearsalMark #'font-size = #4
\mark \markup { \musicglyph #"scripts.coda" }
\repeat unfold 2 {
| c4 c c c
}
% Should Coda be on anew line?
% Coda NOT on new line: use \nobreak
% Coda on new line: DON'T use \nobreak
% \noBreak
\bar "||"
% Set segno sign as rehearsal mark and adjust size if needed
\once \override Score.RehearsalMark #'break-visibility =
#begin-of-line-invisible
% \once \override Score.RehearsalMark #'font-size = #3
\mark \markup { \musicglyph #"scripts.segno" }
% Here begins the trickery!
% \cadenzaOn will suppress the bar count and \stopStaff removes the staff
lines.
\cadenzaOn
\stopStaff
\once \override Staff.KeySignature #'stencil = ##f
\once \override Staff.Clef #'stencil = ##f
\break
% Some examples of possible text-displays
% text line-aligned
% ==================
% Move text to the desired position
% \once \override TextScript #'extra-offset = #'( 2 . -3.5 )
% | s1*0^\markup { D.S. al Coda } }
% text center-aligned
% ====================
% Move text to the desired position
% \once \override TextScript #'extra-offset = #'( 6 . -5.0 )
% | s1*0^\markup { \center-column { D.S. "al Coda" } }
% text and symbols center-aligned
% ===============================
% Move text to the desired position and tweak spacing for optimum text
alignment
%\once \override TextScript #'extra-offset = #'( 8 . -5.5 )
\once \override TextScript #'word-space = #1.5
% \once \override TextScript #'X-offset = #8
% \once \override TextScript #'Y-offset = #1.5
\once \override TextScript #'Y-offset = #-0.5
| s1*0^\markup { \center-column { "CODA" } }
% Increasing the unfold counter will expand the staff-free space
% \repeat unfold 1 {
% s4 s4 s4 s4
\bar ""
% }
% Resume bar count and show staff lines again
\startStaff
\cadenzaOff
% Should Coda be on new line?
% Coda NOT on new line: DON'T use \break
% Coda on new line: use \break
% \break
% Show up, you clef and key!
\once \override Staff.KeySignature #'break-visibility =
#end-of-line-invisible
\once \override Staff.Clef #'break-visibility = #end-of-line-invisible
% Set coda sign as rehearsal mark and adjust size and position
% Put the coda sign ontop of the (treble-)clef dependend on coda's
line-position
% Coda NOT on new line, use this:
% \once \override Score.RehearsalMark #'extra-offset = #'( -2 . 1.75 )
% Coda on new line, use this:
% \once \override Score.RehearsalMark #'extra-offset = #'( -8.42 . 1.75 )
% \once \override Score.RehearsalMark #'font-size = #5
% \mark \markup { \musicglyph #"scripts.coda" }
% The coda
\repeat unfold 5 {
| c4 c c c
}
\bar"|."
}
}
--
Anthony W. Youngman - [email protected]
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user