X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fsnippets%2Fpositioning-segno-and-coda-with-line-break.ly;h=18138232703b6e02b25e1e17b47c4b74751100cc;hb=16ac0db39d8cca1de68ce79154386764172aca10;hp=270553ff61a0b6a2cfa7c90f023bdf9f1b979422;hpb=70ff1f9ec002479b4b34e6e470c0e479d6060a57;p=lilypond.git diff --git a/Documentation/snippets/positioning-segno-and-coda-with-line-break.ly b/Documentation/snippets/positioning-segno-and-coda-with-line-break.ly index 270553ff61..1813823270 100644 --- a/Documentation/snippets/positioning-segno-and-coda-with-line-break.ly +++ b/Documentation/snippets/positioning-segno-and-coda-with-line-break.ly @@ -1,7 +1,10 @@ -%% Do not edit this file; it is automatically +%% DO NOT EDIT this file manually; it is automatically %% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% %% This file is in the public domain. -\version "2.13.4" +\version "2.14.0" \header { lsrtags = "repeats, breaks" @@ -17,7 +20,7 @@ line. doctitle = "Positioning segno and coda (with line break)" } % begin verbatim -{ +{ \clef treble \key g \major \time 4/4 @@ -25,51 +28,51 @@ line. \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! + + % Here begins the trickery! % \cadenzaOn will suppress the bar count and \stopStaff removes the staff lines. - \cadenzaOn - \stopStaff - % Some examples of possible text-displays - + \cadenzaOn + \stopStaff + % 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 @@ -78,7 +81,7 @@ line. \once \override TextScript #'X-offset = #8 \once \override TextScript #'Y-offset = #1.5 | s1*0^\markup { \center-column { "D.S. al Coda" \line { \musicglyph #"scripts.coda" \musicglyph #"scripts.tenuto" \musicglyph #"scripts.coda"} } } - + % Increasing the unfold counter will expand the staff-free space \repeat unfold 4 { s4 s4 s4 s4 @@ -87,26 +90,26 @@ line. % 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 - + \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" }