Mojca Miklavec <mojca.miklavec.li...@gmail.com> writes: > Dear Phil, > > On 30 November 2016 at 16:47, Phil Holmes wrote: >> I think the use of \context is getting the vertical spacing engine >> confused. I _think_ my attached version of your music does what you want - >> it would seem to point in the right direction, at the very least. > > I changed your document slightly and rearranged it in the way I want it. > > But the problem is still present. So no, it doesn't seem to fix it. > > > I need a horizontally aligned list of button labels / fingerings. Most > of the time I need two labels, but every so often I need three or four > (when a chord consists of three or four pitches). > > I would prefer to use something like the following (please excuse me, > the syntax is not functional, but it should demonstrate what I want): > > <f-\x{"B4"} a-\x{"B5"}>4 > <f-\x{"B4"} a-\x{"B5"} c'-\x{"B6"}>4 > > Here's a working syntax (demonstrating the problem / why I cannot use it): > > \score { > \fixed c' { > % > % looks almost perfect, but I'm unable to use anything but simple > numbers > % > f4-4 <f-4 a-5> <f-4 a-5 c'-6> f-4 > % > % proper text, but horrible output > % > f4^\markup{\column{"B4"}} > <f a>^\markup{\column{"B5" "B4"}} > <f a c'>^\markup{\column{"B6" "B5" "B4"}} > f^\markup{\column{"B4"}} > } > }
How about
B = #(define-event-function (parser location d) (index?) #{ \tweak text #(format "B~d" d) -1#}) \score { \fixed c' { % % looks almost perfect, but I'm unable to use anything but simple numbers % f4-4 <f-4 a-5> <f-4 a-5 c'-6> f-4 % % proper text, but horrible output % f4^\markup{\column{"B4"}} <f a>^\markup{\column{"B5" "B4"}} <f a c'>^\markup{\column{"B6" "B5" "B4"}} f^\markup{\column{"B4"}} %% %% sugar and spice and everything nice %% f4\B4 <f\B4 a\B5> <f\B4 a\B5 c'\B6> f\B4 f\B4 } }
You'll probably want more than \B but probably still a very limited number of fingerings. -- David Kastrup
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user