|
From: | dfro |
Subject: | Re: move discant symbol |
Date: | Sun, 14 May 2023 00:29:46 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
[...]How can I move the discant symbol and the accordion pull symbol to avoid them to stack on top of each other?[...]
I just learned from Jean how to use \overlay and \translate-scaled together to control exactly where text and glyphs are placed, and make them scale with changes in fontsize. If you change the fontsize in the example below, everything keeps its spacing.
[...]
Thanks David (and Jean), it works!
I have been practicing using \translate-scaled with \overlay. I like that you can use \translate-scaled and \overlay to make an arrangement of symbols, and then you can encapsulate and move the whole arrangement around with another \translate-scaled , i. e.:
\version "2.24.1"
\score {
\fixed c'' {
\tempo Vivace
cis16-3^\markup \translate-scaled #'(-2.7 . 0) \fontsize
#0 \overlay {\musicglyph "accordion.discant"
\translate-scaled #'(-1 . 1.5) \musicglyph
"accordion.dot"
\translate-scaled #'(1 . 1.5) \musicglyph
"accordion.dot"
\translate-scaled #'(3 . 0) \musicglyph
"accordion.pull"} d-2 e-3 fis-4 r4 r4 r4
}
}
The first, \translate-scaled command moves the whole set of accordion symbols. If you make the Y number above a certain point , \translate-scaled #'(-2.7 . 3.8),
"Vivace" will move underneath the accordion symbols.
Peace,
David
[Prev in Thread] | Current Thread | [Next in Thread] |