|
From: | Simon Albrecht |
Subject: | Re: How to align text and dynamixs |
Date: | Tue, 2 Feb 2016 23:16:44 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 02.02.2016 08:43, Carl-Henrik Buschmann wrote:
Thank you! (Stupid brain seizing to work in the night, of course it is articulations...) It did the trick but i only understand half of what's going on in what you wrote. In the interest of learning, would you mind to decipher or give a pointer where to read?
See some comments below. Other then that, I can recommend scouring the NR command index: <http://lilypond.org/doc/v2.19/Documentation/notation/lilypond-command-index> (which is NR section D), or the full index (section E).
2. feb. 2016 kl. 00.42 skrev Thomas Morley <address@hidden>: 2016-02-02 0:08 GMT+01:00 Carl-Henrik Buschmann <address@hidden>:I wonder how to align text and dynamics? I need it to explain a certain action when using a certain symbol. I guess this question could be answered several ways: 1) is it possible to write dynamic/other symbols in markup? 2) How to gently force horizontal alignment between a dynamic/other mark and \markup? MWE \version "2.19.35" { c'->_\markup { \tiny \italic (stomp) } } { c'_\markup { > \tiny \italic (stomp) } } CarlHi Carl, your examples doesn't show any dynamic but articulations, i.e. accents. Maybe you'll find the below helpful though: %%1 DynamicText stompMrkp = \markup { \musicglyph #"scripts.sforzato" \normal-text \vcenter \tiny \italic (stomp) }
This defines a markup, specifying the appearance of the desired object.
stompSfz = #(make-dynamic-script stompMrkp)
This takes the markup, turns it into a dynamic script and stores the result in a variable, to be used in music as follows:
{ c'-\tweak self-alignment-X #LEFT -\tweak parent-alignment-X #LEFT _\stompSfz } %%2 markup { c'_\markup \concat { \null \musicglyph #"scripts.sforzato" \hspace #0.6 \vcenter \tiny \italic (stomp) } }
This uses slightly different markup formatting, and creates a TextScript grob instead of a DynamicText grob. This will behave differently, e.g. with the first approach \stompSfz will terminate an eventual (de)crescendo.
HTH, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |