lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom markup for \tempo


From: Simon Bailey
Subject: custom markup for \tempo
Date: Fri, 4 Apr 2014 10:19:40 +0200

hello, the list!

i have constructed the following:

%%% SNIP %%%
#(define-markup-command
  (nbTempo layout props _expression_ beat tempo)
  (markup? string? markup?)
  (interpret-markup layout props
    #{  
      \markup {
        \override #'(baseline-skip . 2)
        \column {
          \concat { \teeny { \raise #0.5 { \note #beat #UP } } \normal-text { " = " #tempo } } 
          \normal-text #_expression_
        }
      }   
    #}  
    )   
  )

\relative c' {
  \tempo \markup \nbTempo "a tempo" #"4" "90"
  c1 c1
}
%%% SNAP %%%

however, I would like to replace the convoluted call "\tempo \markup \nbTempo" with just "\nbTempo". 

How would I go about this? As an added bonus, the midi tempo could also be set in this function.

Thanks, regards,
sb

--
Do not meddle in the affairs of trombonists, for they are subtle and quick to anger.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]