Tempo (metronome) marks with approximation sign: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
Account for LilyPond change _ → G_ |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 93: | Line 93: | ||
(ly:error "error in call of define-translator-property")) | (ly:error "error in call of define-translator-property")) | ||
(if (not (equal? (object-property symbol 'translation-doc) #f)) | (if (not (equal? (object-property symbol 'translation-doc) #f)) | ||
(ly:error ( | (ly:error (G_ "symbol ~S redefined") symbol)) | ||
(set-object-property! symbol 'translation-type? type?) | (set-object-property! symbol 'translation-type? type?) | ||
| Line 175: | Line 175: | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Snippet]] | |||
Latest revision as of 16:42, 4 December 2025
If you want to display an approximation sign in your (numeric) tempo marks, or if you want to display the tempo number in a different color, or if you want to hide the parentheses in your combined tempo mark (both name and number), this example demonstrates how the translation functions found in .../scm/translation-functions.scm can be adopted, doing it in a tunable way with new optional context properties.