%% 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/metronome-text.ly"
\sourcefileline 0
\version "2.25.4"

\header{
  texidoc="
The tempo command supports text markup and/@/or `duration=count'.  Using
@code{Score.tempoHideNote}, one can hide the `duration=count' in the tempo mark.
"
}

\relative {
  \tempo "Allegro" c''1
  \tempo "Allegro" c1
  $(make-event-chord (list (make-music 'TempoChangeEvent
                                        'text "blah")))
  d1
  \tempo \markup { \italic \normal-weight "Allegro" } c1 \break
  \tempo 4 = 120 c1
  \tempo "Allegro" 4 = 120 c1
  \tempo "Allegro" 4 = 120 c1
  \tempo "Allegro" 4 = 110 c1
  \tempo "Allegretto" 4 = 110 c1 \break

  \set Score.tempoHideNote = ##f
  \tempo "Allegro" 4 = 120 c1
  \set Score.tempoHideNote = ##t
  \tempo "No note" 8 = 160 c1
  \tempo "Still not" c1
  % No text and also no note => \null markup
  \tempo 4 = 100 c1
  \tempo "Allegro" 4 = 120 c1
  \set Score.tempoHideNote = ##f
  \tempo "With note" 8 = 80 c1 \break

  % Unsetting the tempoText using only note=count:
  \tempo 8 = 80 c1
  \tempo "Allegro" 8 = 80 c1
  \tempo 8 = 80 c1
  
  % Unsetting the count using only text
  \tempo "no note (text-only)" c1
}



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