Jump to content

Metronome marks with more options: Difference between revisions

From LilyPond wiki
m Consistent spelling of LilyPond
mNo edit summary
 
Line 15: Line 15:
This snippet is based on a snippet by Arnold Theresius. The original snippet create a formatter called <code>format-metronome-markup-approx</code>, and the default value to <code>tempoEquationText</code> in that snippet is &quot;≈&quot;. I changed back this default to LilyPond default, and added the <code>tempoBetweenText</code> property. Also, I changed the sizing of some elements, as described above.
This snippet is based on a snippet by Arnold Theresius. The original snippet create a formatter called <code>format-metronome-markup-approx</code>, and the default value to <code>tempoEquationText</code> in that snippet is &quot;≈&quot;. I changed back this default to LilyPond default, and added the <code>tempoBetweenText</code> property. Also, I changed the sizing of some elements, as described above.


'''[http://lsr.di.unimi.it/LSR/Item?id=869 Original snippet by Arnold Theresius]'''
Arnold's original code is available in snippet [[Tempo (metronome) marks with approximation sign]].


<lilypond version="2.24" full="">
<lilypond version="2.24">
%%
%%
%  Metronome markup formatter, with more options than the LilyPond
%  Metronome markup formatter, with more options than the LilyPond

Latest revision as of 06:09, 1 February 2026

If you need, in metronome marks:

  • change the default = sign to other symbol, you can use the property tempoEquationText.
  • change the default - sign between tempo values (e.g. 100-120) to, say, 100~120, you can use the property tempoBetweenText.
  • hide the default parenthesis in metronome marks, you can set the property tempoHideParenthesis as true.
  • change the color of the tempo value, you can use the property tempoNumberColor.

This snippet also changes the size of metronome marks:

  • the text (e.g., Allegro) is a bit larger than the default of LilyPond.
  • the note (e.g., ♪) is a bit smaller than the default of LilyPond.

IMPORTANT:

This snippet is based on a snippet by Arnold Theresius. The original snippet create a formatter called format-metronome-markup-approx, and the default value to tempoEquationText in that snippet is "≈". I changed back this default to LilyPond default, and added the tempoBetweenText property. Also, I changed the sizing of some elements, as described above.

Arnold's original code is available in snippet Tempo (metronome) marks with approximation sign.

LilyPond rendering error

No release of LilyPond 2.24 found.