1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "breaks, repeats, symbols-and-glyphs, workaround"
13 If you want to place an exiting segno sign and add text like @qq{D.S.
14 al Coda} next to it where usually the staff lines are you can use this
15 snippet. The coda will resume in a new line. There is a variation
16 documented in this snippet, where the coda will remain on the same
20 doctitle = "Positioning segno and coda (with line break)"
32 % Set segno sign as rehearsal mark and adjust size if needed
33 % \once \override Score.RehearsalMark.font-size = #3
34 \mark \markup { \musicglyph #"scripts.segno" }
39 % Set coda sign as rehearsal mark and adjust size if needed
40 \once \override Score.RehearsalMark.font-size = #4
41 \mark \markup { \musicglyph #"scripts.coda" }
46 % Should Coda be on anew line?
47 % Coda NOT on new line: use \nobreak
48 % Coda on new line: DON'T use \nobreak
53 % Set segno sign as rehearsal mark and adjust size if needed
54 \once \override Score.RehearsalMark.break-visibility =
55 #begin-of-line-invisible
56 % \once \override Score.RehearsalMark.font-size = #3
57 \mark \markup { \musicglyph #"scripts.segno" }
59 % Here begins the trickery!
60 % \cadenzaOn will suppress the bar count
61 % and \stopStaff removes the staff lines.
64 % Some examples of possible text-displays
68 % Move text to the desired position
69 % \once \override TextScript.extra-offset = #'( 2 . -3.5 )
70 % | <>^\markup { D.S. al Coda } }
73 % ====================
74 % Move text to the desired position
75 % \once \override TextScript.extra-offset = #'( 6 . -5.0 )
76 % | <>^\markup { \center-column { D.S. "al Coda" } }
78 % text and symbols center-aligned
79 % ===============================
80 % Move text to the desired position
81 % and tweak spacing for optimum text alignment
86 \once \override TextScript.extra-offset = #'( 0 . -3.0 )
87 \once \override TextScript.word-space = #1.5
88 <>^\markup { \center-column { "D.S. al Coda"
90 \musicglyph #"scripts.coda"
91 \musicglyph #"scripts.tenuto"
92 \musicglyph #"scripts.coda"} } }
94 % Increasing the unfold counter will expand the staff-free space
99 % Resume bar count and show staff lines again
103 % Should Coda be on new line?
104 % Coda NOT on new line: DON'T use \break
105 % Coda on new line: use \break
108 % Show up, you clef and key!
109 \once \override Staff.KeySignature.break-visibility = #end-of-line-invisible
110 \once \override Staff.Clef.break-visibility = #end-of-line-invisible
112 % Set coda sign as rehearsal mark and adjust size and position
114 % Put the coda sign on top of the (treble-)clef
115 % depending on coda's line-position
117 % Coda NOT on new line, use this:
118 % \once \override Score.RehearsalMark.extra-offset = #'( -2 . 1.75 )
120 % Coda on new line, use this:
121 \once \override Score.RehearsalMark.extra-offset = #'( -5 . .5 )
123 \once \override Score.RehearsalMark.font-size = #5
124 \mark \markup { \musicglyph #"scripts.coda" }