Metronome marks with more options: Difference between revisions
Appearance
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 "≈". 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 "≈". 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. | ||
' | Arnold's original code is available in snippet [[Tempo (metronome) marks with approximation sign]]. | ||
<lilypond version="2.24 | <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 propertytempoEquationText. - change the default
-sign between tempo values (e.g. 100-120) to, say, 100~120, you can use the propertytempoBetweenText. - hide the default parenthesis in metronome marks, you can set the property
tempoHideParenthesisastrue. - 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.