Hi all,

>> 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...
> This is my file that defines assorted dynamic markups (it's an old lilypond 
> version so I'm sure it can be improved ...

Optimally, dynamics are defined as dynamics not markup:

\version "2.25.11"

%  just dynamics
fzp = #(make-dynamic-script "fzp")
ffzp = #(make-dynamic-script "ffzp")
sfzp = #(make-dynamic-script "sfzp")
sffz = #(make-dynamic-script "sffz")
sfffz = #(make-dynamic-script "sfffz")

% dynamic–dynamic
pdashff = #(make-dynamic-script "p–ff")
mfdashff = #(make-dynamic-script "mf–ff")
fdashp = #(make-dynamic-script "f–p")

%  text+dynamic
piuf = -\tweak self-alignment-X #0.85 #(make-dynamic-script (markup #:concat ( 
#:normal-text #:italic #:fontsize 0.8 "più" #:hspace 0.3 "f" )))
moltoff = -\tweak self-alignment-X #0.8 #(make-dynamic-script (markup #:concat 
( #:normal-text #:italic #:fontsize 0.8 "molto" #:hspace 0.3 "ff" )))

%  examples
\layout { ragged-right = ##f indent = 0 }
{
  c1\fzp
  c1\sfffz
  c1\pdashff
  c1\moltoff
  c1\piuf
}

Hope that helps!
Kieren.
______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to