On 12/04/2024 11:51, Aaron Hill wrote:
On 2024-04-12 12:21 am, YTG 1234 wrote:
Hello List,
I want to override the default text markup used with commands such as
\f, \p, \mf, etc.
However, trying to define f = #(make-dynamic-script ...) doesn't work
because Lilypond interprets f as a note-name.
Additionally, how would I be able to change the text while
maintaining the MIDI effect? I tried using \tweak DynamicText.text
but it doesn't seem to override the text...
Since f is a pitch, you need to put it in quotes. Consider:
%%%%
\version "2.25.13"
"f" =
-\tweak color #red
-\tweak text \markup \circle f
\f
{ b'4 4 2\f }
%%%%
-- Aaron Hill
Thank you, that was exactly what I was looking for.
I had already found the quote method in the Lilypond source code, but I
wasn't sure what \tweak I should use.
Thanks!