%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/musicxml/31d-Directions-Compounds.xml"
\sourcefileline 0
\version "2.26.0"
% automatically converted by musicxml2ly from -
\pointAndClickOff

%% additional definitions required by the score:
Cresc = #(make-music 'CrescendoEvent 'span-direction START
                                     'span-type 'text)

#(define-markup-command (square layout props arg)
   (markup?)
   (let* ((stil (interpret-markup layout props arg))
          (x-size (interval-length (ly:stencil-extent stil X)))
          (y-size (interval-length (ly:stencil-extent stil Y)))
          (axis (if (> x-size y-size) Y X)))
     (interpret-markup
      layout props
      #{
        \markup \box \with-dimension-from #axis \rotate #90 #arg #arg
      #})))


%% additional macros required by the score:
"meno f" =
#(make-dynamic-script #{
  \markup {
    \normal-text \concat { \italic "meno " \dynamic f }
  }
#})
"molto f (rectangle)" =
#(make-dynamic-script #{
  \markup {
    \box \normal-text \concat { \fontsize #-0.579 \italic "molto " \dynamic f }
  }
#})
"molto f" =
#(make-dynamic-script #{
  \markup {
    \normal-text \concat { \fontsize #-0.579 \italic "molto " \dynamic f }
  }
#})
"p subito" =
#(make-dynamic-script #{
  \markup {
    \normal-text \concat { \dynamic p \fontsize #-0.579 \italic " subito" }
  }
#})

\header {
  texidoc = "This tests various combinations of <direction> children. The lyrics
    for each note describe the compound elements assigned to that note.

    The first ‘molto f’ uses <words>molto <words>, i.e., it omits the
    ‘xml:space’ attribute. This makes the rendering of the space between ‘molto’
    and ‘f’ implementation-dependent (and might be thus not rendered). The
    second ‘molto f’, together with ‘meno f’, uses ‘xml:space=\"preserve\"’.

    For demonstration purposes, there is no space between the words ‘bold’ and
    ‘italic’.

    A trailing up-arrow indicates a ‘placement=\"above\"’ attribute, a
    down-arrow means ‘placement=\"below\"’."
}
\layout {
  \context {
    \Staff
    printKeyCancellation = ##f
  }
  \context {
    \Score
    \override TextMark.font-size = 2
    autoBeaming = ##f
  }
}
PartPOneVoiceOne = \relative c' {
  \clef "treble" \time 4/4 \key c \major \tempo \markup \normal-text \concat {
    Adagio " " \normal-text \smaller { \fontsize #-2 \rhythm { \longa } \char
      ##x2009 = \char ##x2009 100 } } c2 c2 _\"molto f" | % 1
  c2 _\"p subito" c2 ^\"molto f (rectangle)" | % 2
  c2 _\ppp _\< c2 \! _\fff \break | % 3
  c2 \tweak text \markup \normal-text \italic "cresc." ^\Cresc <>\! c2
  ^\"meno f" | % 4
  \mark \markup \square \concat { "12" \italic bis } c2 c2 _\markup \concat {
    \bold bold \italic italic } | % 5
  \textMark \markup \fontsize #2 \segno c2 \textMark \markup \concat { \fontsize
    #2 \coda \fontsize #2 \coda } c2 \bar "|."
}

PartPOneVoiceOneLyricsOne = \lyricmode {
  \set ignoreMelismata = ##t
  \set includeGraceNotes = ##t
  Adagio "molto↓" "p↓" "molto f↑" "ppp↓" -- to "cresc.↑" -- to "reh. 12+bis"
  "bold+" segno coda
}

PartPOneVoiceOneLyricsTwo = \lyricmode {
  \set ignoreMelismata = ##t
  \set includeGraceNotes = ##t
  "long=100" f subito "(rectangle)" "cresc." -- "fff↓" dashes -- "meno f↑"
  "(square)" italic \skip1 "×2"
}


% The score definition
\score {
  <<
    \new Staff = "P1" <<
      \context Staff <<
        \override Staff.BarLine.allow-span-bar = ##f
        \mergeDifferentlyDottedOn
        \mergeDifferentlyHeadedOn
        \context Voice = "PartPOneVoiceOne" {
          \PartPOneVoiceOne
        }
        \new Lyrics \lyricsto "PartPOneVoiceOne" {
          \PartPOneVoiceOneLyricsOne
        }
        \new Lyrics \lyricsto "PartPOneVoiceOne" {
          \PartPOneVoiceOneLyricsTwo
        }
      >>
    >>
  >>
  \layout {}
  % To create MIDI output, uncomment the following line:
  % \midi { \tempo 4 = 100 }
}




% ****************************************************************
% end ly snippet
% ****************************************************************
