lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: align dynamic with text


From: Noeck
Subject: Re: align dynamic with text
Date: Mon, 20 Aug 2018 07:55:29 +0200

Dear Ben,

how about this version. It combines some of the already proposed features:

- mixes dynamic text symbols and text
- behaves like a dynamic script (DynamicText)
- centers the symbol on the note head


\version "2.19.80"

% combine dynamic as markup that looks like what you want it to look like
markupText = \markup { f \normal-text \italic "stretto" }

% turn this markup (i.e. text) into a dynamic text like \f or \pp
dynamicText = #(make-dynamic-script markupText)

% self-align it to the anchor point such that the f is under the note head
fstretto = -\tweak DynamicText.self-alignment-X #-0.8 \dynamicText

{
  c'\fstretto c' c' c'
}


Best,
Joram



reply via email to

[Prev in Thread] Current Thread [Next in Thread]